FormerLurker / Octolapse

Stabilized timelapses for Octoprint
GNU Affero General Public License v3.0
638 stars 99 forks source link

Cannot install Octolapse on Python 3.10.6 #888

Open dl9sec opened 1 year ago

dl9sec commented 1 year ago

If this is a feature request describe it here

_REPLACE_THISFEATURE_REQUEST_DESCRIPTION_GOES_HERE

Version of Octolapse

Octolapse Version: 0.4.1

Version of OctoPrint

OctoPrint Version: 1.8.7 (via paukstelis installation script)

When you ran into the problem, did you have diagnostic logging enabled?

Diagnostic Logging was Enabled: YES

What were you doing when the problem occurred

  1. Install Octolapse via OctoPrint Plugin Manager

What should have happened?

Octolapse should be installed without errors.

What happened instead?

The Octolapse installation throws some errors (complaining there is something deprecated and that a "wheel" could not be created). Installation finished, but Octolapse is unusable. I am not sure if it has something to do with this, but there is no remark ab out a "wheel" problem.

Operating System running OctoPrint and Octolapse

OS Name: Armbian (64 bit) on Odroid C2 Os Version: 23.02.2 running Python 3.10.6

Printer model & used firmware incl. version

Printer Model: Prusa MK3S+ (not relevant) Printer Firmware Version: 3.12.2 (not relevant)

Browser and version of browser, operating system running browser

Browser: Firefox (not relevant) Browser OS: 111.0 (64 bit) (not relevant)

Link to the gcode file you were printing when the problem occurred

Link to Gcode File: _REPLACE_THISGCODE_FILE_LINK_GOES_HERE

Link to settings.json

Link to settings.json with all passwords removed: _REPLACE_THISSETTINGS_JSON_LINK_GOES_HERE

Link to plugin_octolapse.log

Link to plugin_octolapse.log: LINK_GOES_HERE

Link to octoprint.log

Link to octoprint.log: Octolapse_installation_OdroidC2_Armbian23.02_OP1.8.7_Py3.10.6

Link to contents of Javascript console in the browser

Link to javascript console output: _REPLACE_THISLINK_GOES_HERE

Screenshots and/or videos of the problem:

Screenshot/Video Links: _REPLACE_THISLINKs_GO_HERE

Please consider becoming a patron

If you like this project, please support my work by becoming a patron, and consider adding a 'star' to the repository. It takes a lot of time and effort to maintain the project and respond to issues. The cost of test prints, software, cameras, printer parts, etc. can quickly add up, so every bit helps.

You can find various videos and tutorials by subscribing to my Youtube channel. You can also follow me on Twitter.

dl9sec commented 1 year ago

Solved with Alex McFadyen's fork (https://github.com/a-c-m/Octolapse). Just put the link "https://github.com/a-c-m/Octolapse/archive/refs/heads/master.zip" into the PluginManager's "... from URL" line and it installs like a charm and works great. Many thanks to Alex for that fix...

gald33 commented 1 year ago

where is "... from URL" you refer to? can't find it, I'm using an updated octo4a installation.

dl9sec commented 1 year ago

where is "... from URL" you refer to? can't find it, I'm using an updated octo4a installation.

See https://docs.octoprint.org/en/master/bundledplugins/pluginmanager.html Figure 19

Regards, Thorsten

maclaine-san commented 1 year ago

@dl9sec Thank you, i was having trouble installing octolapse on my octo4a app as well. This solved it for me.

FormerLurker commented 1 year ago

All, this issue should be fixed with the latest release. You might not see it yet in the plugin manager. Please let me know if you continue to have problems, and SO SORRY for the delays!!!!!

dl9sec commented 1 year ago

Unfortunately no. The wheel for octolapse still cannot be build.

The last message is: DEPRECATION: Octolapse was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 23.1 will enforce this behaviour change. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368

It seems, that in setup.py the comma at the pillow dependency (between the versions) is still missing: plugin_requires = ["pillow >=6.2.0<7.0.0", "sarge", "six", "OctoPrint>1.3.8", "psutil", "file_read_backwards", "setuptools>=6.0", "awesome-slugify>=1.6.5,<1.7"]

Need more log infos?

Regards, Thorsten

gald33 commented 1 year ago

where is "... from URL" you refer to? can't find it, I'm using an updated octo4a installation.

See https://docs.octoprint.org/en/master/bundledplugins/pluginmanager.html Figure 19

Regards, Thorsten

Thanks a lot! I managed to install this way. I did get a bunch of errors but the installation of the fork ended up successfully. I ran many tests and octolapse works great now!

KlutchKyle commented 1 year ago

Still having problems installing due to Pillow versioning.

FormerLurker commented 1 year ago

I will add the comma and will let you know when I push it.

dl9sec commented 1 year ago

That would be great, thanks :-)

FormerLurker commented 1 year ago

So, there was a bit more work to do in order to get Pillow working. The versions listed weren't 100% compatible with Python 11, and the import has changed. I bumped the requirements to Pillow >= 9.3, <11 (see this link), added imports for both namespaces (pil and PIL). I have tested this in Python 3.9.2 (latest octopi) and Python 3.11.2 (windows). So far so good.

Try installing from the plugin manager by clicking 'get more' and using this url: https://github.com/FormerLurker/Octolapse/archive/refs/heads/devel.zip

like so:

image

Please let me know what kind of system you are installing this on (raspberry pi running OctoPi, Windows, Ubuntu, etc...). Just helps me feel confident putting this on the main branch later.

Thanks!

dl9sec commented 1 year ago

Great stuff, thank you very much! Installation was running without problems on my Odroid-C2 with Armbian 23.02.2 (Jammy) and Python 3.10.6. Octolapse v0.4.3+u.d8b2b5b seems to work at least with all the settings stuff (didn't make a print and timelapse yet).

Regards, Thorsten

FormerLurker commented 1 year ago

@dl9sec,

Glad to hear it's working!

Off topic - I have a question if you have a sec: How is your Odroid working for you? Many of my projects are suffering for a lack of affordable Raspberry Pis, and I've been looking for an alternative.

Also, fyi, I looked at your site, and learned that I lived close to you a long while ago (if you were there in 2002ish) during a year abroad at Stuttgart Uni. I visited again a few years back, and things changed a lot! Still a beautiful part of the country, and I look forward to visiting again!

MFG

dl9sec commented 1 year ago

@FormerLurker

"The world is a village" :-D Agree, beautiful area here.

The Odroid-C2 is working really great. It's a mature device, several years old, but is has a better performance than the (currently very expensive) RasPi 3B I used before. It runs an Armbiam OS (the original Hardkernel OS lacks a bit of support and up-to-date kernel and OS). Sometimes it is a bit tricky to get that RasPi-oriented stuff working, but that's not a problem of the Odroid itself. So my personal conlusion is: If you get an up-to-date kernel/OS for an Odroid, it's a really good (maybe better and cheaper) alternative to the RasPi...

JDMorrison75 commented 1 year ago

So, there was a bit more work to do in order to get Pillow working. The versions listed weren't 100% compatible with Python 11, and the import has changed. I bumped the requirements to Pillow >= 9.3, <11 (see this link), added imports for both namespaces (pil and PIL). I have tested this in Python 3.9.2 (latest octopi) and Python 3.11.2 (windows). So far so good.

Try installing from the plugin manager by clicking 'get more' and using this url: https://github.com/FormerLurker/Octolapse/archive/refs/heads/devel.zip

like so:

image

Please let me know what kind of system you are installing this on (raspberry pi running OctoPi, Windows, Ubuntu, etc...). Just helps me feel confident putting this on the main branch later.

Thanks!

I am having issues I have tried this current link I have tried to install the wheel, pillow etc through ssh. it always gets to installing the wheel and throws me errors. I am use octoprint 1.9.2 I have octoprint on a blu view 2 android phone. plugin_pluginmanager_console (1).log