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 message #17

Open
abbottcam opened this issue Feb 7, 2022 · 3 comments
Open

Error message #17

abbottcam opened this issue Feb 7, 2022 · 3 comments

Comments

@abbottcam
Copy link

Hello

I've reinstalled my raspberry OS, but when reinstalling the Octopus Agile script, it throws up a message, which I didn't encounter before....

Detected Red pHAT (High-Temp)
Traceback (most recent call last):
File "octoprice_main_inky.py", line 28, in
DB_URI = 'file:{}?mode=rw'.format(pathname2url('agileprices.sqlite'))
NameError: name 'pathname2url' is not defined

any ideas? Sorry if its obvious, my coding skills are limited.

thanks

James

@jerbzz
Copy link
Contributor

jerbzz commented Feb 7, 2022

Hi. Your Python version may have changed.

Try running with 'python3' instead of 'python', or vice versa.

🙂

@abbottcam
Copy link
Author

Hey, thanks for your reply!

So I tried both ways

pi@raspberrypi:~ $ /usr/bin/python3 octoprice_main_inky.py

and it still throws up an error message and my inky screen doesn't change.

@DarthBlackA1
Copy link

I fixed this by adding the line "from urllib.request import pathname2url" at the top of the file

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