Astroprint Plugin Install Issue

I've tried installing the plugin multiple times with both the plugin manager and the terminal. When I install the plugin with the plugin manager in Octoprint, It shows a successful install but shows "Successfully Installed: Unknown" and then prompts to restart Octoprint. I restart it but the plugin is no where to be found. I am new to linux and Octoprint. Below is a copy of what it shows after installing with the plugin manager. Any help would be greatly appreciated. Thanks!

Update:
Also noticed that it is doing the same thing with the Filament Manager plugin.
When I put Octoprint into safe mode the astroprint plugin appears in the plugin manager. I disable it in safe mode and restart the server normally and again astroprint shows up in the plugin manager. I enable it and restart octoprint normally and its gone.

Installing plugin "AstroPrint Cloud" from https://github.com/AstroPrint/OctoPrint-AstroPrint/archive/master.zip...

/home/pi/OctoPrint/venv/bin/python3 -m pip --disable-pip-version-check install file:///tmp/tmp7vl1y6__/OctoPrint-AstroPrint-master.zip --no-cache-dir

Processing /tmp/tmp7vl1y6__/OctoPrint-AstroPrint-master.zip

Preparing metadata (setup.py): started

Preparing metadata (setup.py): finished with status 'done'

Requirement already satisfied: OctoPrint in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from AstroPrint==1.6.5) (1.9.0)

Requirement already satisfied: Pillow in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from AstroPrint==1.6.5) (9.5.0)

Requirement already satisfied: requests_toolbelt==0.8.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from AstroPrint==1.6.5) (0.8.0)

Requirement already satisfied: ws4py==0.3.4 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from AstroPrint==1.6.5) (0.3.4)

Requirement already satisfied: requests<3.0.0,>=2.0.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from requests_toolbelt==0.8.0->AstroPrint==1.6.5) (2.30.0)

Requirement already satisfied: OctoPrint-FileCheck>=2021.2.23 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2021.2.23)

Requirement already satisfied: OctoPrint-FirmwareCheck>=2021.10.11 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2021.10.11)

Requirement already satisfied: OctoPrint-PiSupport>=2022.6.13 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2022.6.13)

Requirement already satisfied: argon2-cffi<22,>=21.3.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (21.3.0)

Requirement already satisfied: Babel<2.13,>=2.12.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.12.1)

Requirement already satisfied: cachelib<0.11,>=0.10.2 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.10.2)

Requirement already satisfied: Click<9,>=8.1.3 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (8.1.3)

Requirement already satisfied: colorlog<7,>=6.7.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (6.7.0)

Requirement already satisfied: emoji<3,>=2.2.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.4.0)

Requirement already satisfied: feedparser<7,>=6.0.10 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (6.0.10)

Requirement already satisfied: filetype<2,>=1.2.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.2.0)

Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.0)

Requirement already satisfied: Flask-Babel<4,>=3.1.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (3.1.0)

Requirement already satisfied: Flask-Login<0.7,>=0.6.2 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.6.2)

Requirement already satisfied: Flask-Limiter<4,>=3.3.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (3.3.1)

Requirement already satisfied: flask<2.3,>=2.2.3 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.2.5)

Requirement already satisfied: frozendict<3,>=2.3.7 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.3.8)

Requirement already satisfied: future<1,>=0.18.3 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.18.3)

Requirement already satisfied: markdown<4,>=3.4.3 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (3.4.3)

Requirement already satisfied: netaddr<0.9,>=0.8 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.8.0)

Requirement already satisfied: netifaces<1,>=0.11 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.11.0)

Requirement already satisfied: passlib<2,>=1.7.4 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.7.4)

Requirement already satisfied: pathvalidate<3,>=2.5.2 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.5.2)

Requirement already satisfied: pkginfo<2,>=1.9.6 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.9.6)

Requirement already satisfied: psutil<6,>=5.9.4 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (5.9.5)

Requirement already satisfied: pydantic<2,>=1.10.7 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.10.8)

Requirement already satisfied: pylru<2,>=1.2.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.2.1)

Requirement already satisfied: pyserial<4,>=3.5 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (3.5)

Requirement already satisfied: PyYAML<6,>=5.4.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (5.4.1)

Requirement already satisfied: sarge==0.1.7.post1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.1.7.post1)

Requirement already satisfied: semantic-version<3,>=2.10.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.10.0)

Requirement already satisfied: sentry-sdk<2,>=1.19.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.22.1)

Requirement already satisfied: tornado<7,>=6.2 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (6.3.1)

Requirement already satisfied: watchdog<3,>=2.3.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.3.1)

Requirement already satisfied: websocket-client<2,>=1.5.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.5.1)

Requirement already satisfied: werkzeug<2.3,>=2.2.3 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2.2.3)

Requirement already satisfied: wrapt<1.16,>=1.15 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.15.0)

Requirement already satisfied: zeroconf==0.39.4 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.39.4)

Requirement already satisfied: zipstream-ng<2.0.0,>=1.5.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.5.0)

Requirement already satisfied: blinker<2,>=1.6.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.6.2)

Requirement already satisfied: class-doc<0.3,>=0.2.6 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.2.6)

Requirement already satisfied: regex in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (2023.5.5)

Requirement already satisfied: unidecode in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (1.3.6)

Requirement already satisfied: wheel in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from OctoPrint->AstroPrint==1.6.5) (0.40.0)

Requirement already satisfied: async-timeout>=4.0.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from zeroconf==0.39.4->OctoPrint->AstroPrint==1.6.5) (4.0.2)

Requirement already satisfied: ifaddr>=0.1.7 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from zeroconf==0.39.4->OctoPrint->AstroPrint==1.6.5) (0.2.0)

Requirement already satisfied: argon2-cffi-bindings in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from argon2-cffi<22,>=21.3.0->OctoPrint->AstroPrint==1.6.5) (21.2.0)

Requirement already satisfied: more-itertools>=5.0.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from class-doc<0.3,>=0.2.6->OctoPrint->AstroPrint==1.6.5) (9.1.0)

Requirement already satisfied: sgmllib3k in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from feedparser<7,>=6.0.10->OctoPrint->AstroPrint==1.6.5) (1.0.0)

Requirement already satisfied: Jinja2>=3.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from flask<2.3,>=2.2.3->OctoPrint->AstroPrint==1.6.5) (3.1.2)

Requirement already satisfied: itsdangerous>=2.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from flask<2.3,>=2.2.3->OctoPrint->AstroPrint==1.6.5) (2.1.2)

Requirement already satisfied: webassets>=2.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from Flask-Assets<3,>=2.0->OctoPrint->AstroPrint==1.6.5) (2.0)

Requirement already satisfied: pytz>=2022.7 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from Flask-Babel<4,>=3.1.0->OctoPrint->AstroPrint==1.6.5) (2023.3)

Requirement already satisfied: limits>=2.8 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (3.4.0)

Requirement already satisfied: ordered-set<5,>4 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (4.1.0)

Requirement already satisfied: rich<14,>=12 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (12.6.0)

Requirement already satisfied: typing-extensions>=4 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (4.5.0)

Requirement already satisfied: charset-normalizer<4,>=2 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.1->requests_toolbelt==0.8.0->AstroPrint==1.6.5) (3.1.0)

Requirement already satisfied: idna<4,>=2.5 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.1->requests_toolbelt==0.8.0->AstroPrint==1.6.5) (3.4)

Requirement already satisfied: urllib3<3,>=1.21.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.1->requests_toolbelt==0.8.0->AstroPrint==1.6.5) (1.26.15)

Requirement already satisfied: certifi>=2017.4.17 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from requests<3.0.0,>=2.0.1->requests_toolbelt==0.8.0->AstroPrint==1.6.5) (2023.5.7)

Requirement already satisfied: MarkupSafe>=2.1.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from werkzeug<2.3,>=2.2.3->OctoPrint->AstroPrint==1.6.5) (2.1.2)

Requirement already satisfied: deprecated>=1.2 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from limits>=2.8->Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (1.2.13)

Requirement already satisfied: importlib-resources>=1.3 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from limits>=2.8->Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (5.12.0)

Requirement already satisfied: setuptools in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from limits>=2.8->Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (59.6.0)

Requirement already satisfied: packaging<24,>=21 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from limits>=2.8->Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (23.1)

Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from rich<14,>=12->Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (0.9.1)

Requirement already satisfied: pygments<3.0.0,>=2.6.0 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from rich<14,>=12->Flask-Limiter<4,>=3.3.0->OctoPrint->AstroPrint==1.6.5) (2.15.1)

Requirement already satisfied: cffi>=1.0.1 in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from argon2-cffi-bindings->argon2-cffi<22,>=21.3.0->OctoPrint->AstroPrint==1.6.5) (1.15.1)

Requirement already satisfied: pycparser in /home/pi/OctoPrint/venv/lib/python3.10/site-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi<22,>=21.3.0->OctoPrint->AstroPrint==1.6.5) (2.21)

Building wheels for collected packages: AstroPrint

Building wheel for AstroPrint (setup.py): started

Building wheel for AstroPrint (setup.py): finished with status 'done'

Created wheel for AstroPrint: filename=AstroPrint-1.6.5-py3-none-any.whl size=98771 sha256=dac46d9c7c82d85048344f131b66509c77c65a01274e4e961c895c1dd056d708

Stored in directory: /tmp/pip-ephem-wheel-cache-cwtp02ot/wheels/c0/9c/77/974391d045578900faece5f368ceb4fb445515a2d4e102e72d

Successfully built AstroPrint

Installing collected packages: AstroPrint

Attempting uninstall: AstroPrint

Found existing installation: AstroPrint 1.6.5

Uninstalling AstroPrint-1.6.5:

Successfully uninstalled AstroPrint-1.6.5

Successfully installed AstroPrint-1.6.5

Done!


octoprint-systeminfo-20230527180559.zip (1.3 MB)

Please include the systeminfo bundle.

octoprint-systeminfo-20230527180559.zip (1.3 MB)

So I managed to get it working. At least to where I can access the plugin and the tab shows up as it should.

In the file:

(~/Octoprint/venv/lib/python3.10/site-packages/requests_toolbelt/_compat.py)

I changed:

from collections import Mapping, MutableMapping

to:

from collections.abc import Mapping, MutableMapping

I did this because after looking through the logs I found that while it was trying to initialize the Astroprint plugin, it had an error:

ImportError: cannot import name 'Mapping" from collections (usr/lib/python3.10/collections/init.py)

After searching around the web, I found that it is a compatibility issue with Python 3.10 and older versions of Python. It needs to be directed to collections.abc with Python 3.10

I haven't connected it to my Astroprint account just yet. I am about to start that process now and continue testing. I'll report back if I have any other issues with it.

Seems to be working as it should now.

Hi Bill,

You have run into an issue that have been reported by a few others including myself.

The root cause in from my own investigative efforts is in this instance running against a very old version of sqlalchemy.

Your solution can work but any updates will over write your code fix.

You can also install the version 2 or later of sqlalchemy. Not sure why the pip installer for python 3.10 downgrades this to such an old version.

1 Like

Thank you for sharing that! I reinstalled sqlalchemy and it is now version 2.0.2. I will let you know if I run into any issues. So far, so good though. Thanks again Jattie!

Brilliant, that is good feedback, did you get to see what version of sqlalchemy was on your system before you upgraded?

Unfortunately I did not

Hello, please share the instructions for your fix.

How to uninstall/reinstall sqlalchemy?
Can this be done from within octoprint or do we need to ssh?

Others probably have the same issue and since you found a solution it would be nice to share not just what is the fix, but also how to do it for an average user.

Thanks
Oliver

1 Like

I have the same problem. I tried pip install sqlalchemy, but nothing changes.

Edit:
Use this URL to install the Plugin
https://github.com/MagischerStock/OctoPrint-AstroPrint/archive/refs/heads/master.zip