feelfreelinux / octo4a

Use your old Android device as an OctoPrint server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OctoPrint 1.9.x --> 1.10 Not Updating

atkeeler opened this issue Β· comments

I've been unable to update OctoPrint on Octo4a from 1.9 to 1.10, continues to give me an error message. When looking into it, I could that it has something to do with Python. I tried to update after clearing the app data to see if that would help, but it gave me a "FATAL ERROR" message when it was installing the dependencies onto my Samsung Galaxy S20 FE. Error log is attached as an text file.
Octo4a Log.txt

same issue here with fire hd 8 plus
any help is appreciated <3

Same here, updating a Pixel which was running 1.9.

Same error as the log file already attached.

Will work on this tomorrow

commented

Also failing for me, updating a Samsung Galaxy S8. I'm getting a different error regarding ethtool.h being missing. I updated pip just prior to attempting to update OctoPrint, since the release notes mentioned that.

"psutil/_psutil_linux.c:13:10: fatal error: linux/ethtool.h: No such file or directory"
plugin_softwareupdate_console.log

Will work on this tomorrow

Hi alufers, is possible for now (as a workaround) to force download only Octoprint 1.9.x instead of the last Octoprint?
TYIA
Mario

Just released octo4a 1.2.6 which should resolve this issue :)

The 1.2.6 didn't work for me, even in safe mode

Just released octo4a 1.2.6 which should resolve this issue :)

Thank you! it worked for me (Sasung S8 unmodified)

Just updated my pixel 3 and all working fine.

Thank you for the speed update.

This didn't help with my s7. Similar issues to when I first set it up. Thanks though. Love octo4a.

Didn't help on Samsung s10+

Error log.txt
psutil not installed
Thank you for all this work.
Hope you can fix this issue soon

Hello, updated Octo4a to 1.2.6 but still unable to update Octoprint due to psutil also

I was not able to upgrade due to errors during the upgrade with 1.2.6. I made a backup in OctoPrint 1.9, uninstalled everything and restored the backup once 1.10 was freshly installed it even downloaded all my plugins including psutil.

I was not able to upgrade due to errors during the upgrade with 1.2.6. I made a backup in OctoPrint 1.9, uninstalled everything and restored the backup once 1.10 was freshly installed it even downloaded all my plugins including psutil.

It worked ! Thank you !

See my comment here to solve this manually OctoPrint/OctoPrint#4998 (comment)

commented

See my comment here to solve this manually OctoPrint/OctoPrint#4998 (comment)

I was excited to try this, but I think I'm now chasing my own tail:

apk del is saying 'no such package' for ps3-psutil or for psutil

the updater in octoprint and a manual pip3 install keeps saying

Attempting uninstall: psutil
Found existing installation: psutil 5.9.4
ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

so I tried:
pip3 install --ignore-installed psutil

Collecting psutil
Using cached psutil-5.9.8-cp310-abi3-linux_aarch64.whl
Installing collected packages: psutil
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
octoprint 1.9.3 requires zeroconf==0.39.4, but you have zeroconf 0.132.2 which is incompatible.
Successfully installed psutil-5.9.4

Like you, I didn't want to wipe out everything and start fresh, but that's looking like the only option. Or is there a way to uninstall psutil using the same method that originally installed it? It was a couple of octo4a versions ago I think.

See my comment here to solve this manually OctoPrint/OctoPrint#4998 (comment)

I was excited to try this, but I think I'm now chasing my own tail:

apk del is saying 'no such package' for ps3-psutil or for psutil

the updater in octoprint and a manual pip3 install keeps saying

Attempting uninstall: psutil Found existing installation: psutil 5.9.4 ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

so I tried: pip3 install --ignore-installed psutil

Collecting psutil Using cached psutil-5.9.8-cp310-abi3-linux_aarch64.whl Installing collected packages: psutil ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. octoprint 1.9.3 requires zeroconf==0.39.4, but you have zeroconf 0.132.2 which is incompatible. Successfully installed psutil-5.9.4

Like you, I didn't want to wipe out everything and start fresh, but that's looking like the only option. Or is there a way to uninstall psutil using the same method that originally installed it? It was a couple of octo4a versions ago I think.

Sorry, typo. It's py3-psutil not ps3-psutil so apk del py3-psutil

commented

I finally made it through the update process, thanks. I'll try to do some test prints tonight or tomorrow.

Oh well. the upgrade completes but it won't show logs or uploaded files. I'm guessing it's got something to do with this:

πŸ™ οΏ½[31m[2024-05-09 21](tel:2024-05-09 21):06:03,344 - octoprint - ERROR - Exception on /plugin/logging/ [GET]οΏ½[0m
πŸ™ Traceback (most recent call last):
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app
πŸ™ response = self.full_dispatch_request()
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
πŸ™ rv = self.handle_user_exception(e)
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
πŸ™ rv = self.dispatch_request()
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
πŸ™ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/server/util/flask.py", line 1645, in decorated_view
πŸ™ return func(*args, **kwargs)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/access/permissions.py", line 175, in _decorated
πŸ™ rv = f(*args, **kw)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 46, in get_all
πŸ™ free, total = self._get_usage()
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 135, in get_usage
πŸ™ usage = psutil.disk_usage(settings().getBaseFolder("logs", check_writable=False))
πŸ™ AttributeError: module 'psutil' has no attribute 'disk_usage'
πŸ™ οΏ½[31m[2024-05-09 21](tel:2024-05-09 21):06:06,106 - octoprint - ERROR - Exception on /api/files [GET]οΏ½[0m
πŸ™ Traceback (most recent call last):
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app
πŸ™ response = self.full_dispatch_request()
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
πŸ™ rv = self.handle_user_exception(e)
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
πŸ™ rv = self.dispatch_request()
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
πŸ™ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/vendor/flask
principal.py", line 196, in _decorated
πŸ™ rv = f(*args, **kw)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/server/util/flask.py", line 1369, in decorated_function
πŸ™ response = f(*args, **kwargs)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/server/api/files.py", line 161, in readGcodeFiles
πŸ™ usage = psutil.disk_usage(settings().getBaseFolder("uploads", check_writable=False))
πŸ™ AttributeError: module 'psutil' has no attribute 'disk_usage'
πŸ™ [2024-05-09 21](tel:2024-05-09 21):06:06,826 - octoprint.plugins.tracking - INFO - Sent tracking event webui_load, payload: {'browser_name': 'Chrome', 'browser_version': '124.0.0.0', 'os_name': 'Windows', 'os_version': '10'}οΏ½[0m
πŸ™ οΏ½[31m[2024-05-09 21](tel:2024-05-09 21):06:30,705 - octoprint - ERROR - Exception on /plugin/logging/ [GET]οΏ½[0m
πŸ™ Traceback (most recent call last):
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app
πŸ™ response = self.full_dispatch_request()
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
πŸ™ rv = self.handle_user_exception(e)
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
πŸ™ rv = self.dispatch_request()
πŸ™ File "/usr/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
πŸ™ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/server/util/flask.py", line 1645, in decorated_view
πŸ™ return func(*args, **kwargs)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/access/permissions.py", line 175, in _decorated
πŸ™ rv = f(*args, **kw)
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 46, in get_all
πŸ™ free, total = self._get_usage()
πŸ™ File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 135, in _get_usage
πŸ™ usage = psutil.disk_usage(settings().getBaseFolder("logs", check_writable=False))
πŸ™ AttributeError: module 'psutil' has no attribute 'disk_usage'

zaventh manual workaround worked for me.
Samsung galaxy s7.

See my comment here to solve this manually OctoPrint/OctoPrint#4998 (comment)

Hi, Thank you for this fix, I was able to update to Octoprint 1.10 with the new APK 1.2.6 but now with the new release 1.10.1 the psutil install/uninstall problem is still there, but with your suggestion I finally was able to update to 1.10.1. Thank You again.