Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in bottle.py after URL call #66

Open
neurons9 opened this issue Dec 30, 2024 · 2 comments
Open

Error in bottle.py after URL call #66

neurons9 opened this issue Dec 30, 2024 · 2 comments

Comments

@neurons9
Copy link

I get the following error message as soon as the URL is called up in the browser:

2024-12-30 22:53:00,228 - DEBUG: command line arguments: {'indi_port': 7624, 'port': 8624, 'host': '0.0.0.0', 'fifo': '/tmp/indiFIFO', 'conf': '/home/teleskop/.indi', 'xmldir': '/usr/share/indi/', 'verbose': True, 'logfile': None, 'server': 'standalone'}
2024-12-30 22:53:00,231 - INFO: using Bottle as standalone server
Traceback (most recent call last):
File "/usr/local/bin/bottle.py", line 995, in _handle
out = route.call(**args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/bottle.py", line 2025, in wrapper
rv = callback(*a, **ka)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/indiweb/main.py", line 140, in main_form
return template(os.path.join(views_path, 'form.tpl'), profiles=profiles,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/bottle.py", line 4493, in template
TEMPLATES[tplid] = adapter(name=tpl, lookup=lookup, **settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/bottle.py", line 4076, in init
self.filename = self.search(self.name, self.lookup)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/bottle.py", line 4091, in search
raise depr(0, 12, "Use of absolute path for template name.",
DeprecationWarning: Warning: Use of deprecated feature or API. (Deprecated in Bottle-0.12)
Cause: Use of absolute path for template name.
Fix: Refer to templates with names or paths relative to the lookup path.

System: Raspberry Pi 5 with Bookworm. I have tested both a virtual environment and a system-wide installation with the same result

@samubd
Copy link

samubd commented Jan 7, 2025

I have the same issue.
I'm using a Dell XPs13 PC with the following OS:
NAME="Zorin OS"
VERSION="16.3"
ID=zorin
ID_LIKE=ubuntu
PRETTY_NAME="Zorin OS 16.3"
VERSION_ID="16"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

@bobb16
Copy link

bobb16 commented Jan 7, 2025

Hi,
it works for me with python version 3.8.10 and bottle version 0.12.25.
Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants