FormerLurker / Octolapse

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

[Bug]: Cannot install on Python 3.12 #949

Open JohnyPeaN opened 3 months ago

JohnyPeaN commented 3 months ago

If this is a feature request describe it here

_REPLACE_THISFEATURE_REQUEST_DESCRIPTION_GOES_HERE

Version of Octolapse

Octolapse Version: 0.45

Version of OctoPrint

OctoPrint Version: 1.10.1

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

Diagnostic Logging was Enabled: NO

What were you doing when the problem occurred

  1. Upgraded to octoprint 1.10.1, system upgraded python to 3.12
  2. Tried to install octolapse plugin - failed
  3. Prepared latest versioneer.py from master (https://github.com/python-versioneer/python-versioneer)
  4. Extracted octolapse.zip, replaced versioneer.py with vesion from step 3, repacked into zip
  5. installed from resulting file - success

What should have happened?

Installation should succeed.

What happened instead?

Collecting https://github.com/FormerLurker/Octolapse/archive/v0.4.5.zip Downloading https://github.com/FormerLurker/Octolapse/archive/v0.4.5.zip / 1.3 MB 4.8 MB/s 0:00:00 Preparing metadata (setup.py): started error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [15 lines of output] /tmp/pip-req-build-qf456kab/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-req-build-qf456kab/setup.py", line 25, in plugin_version = NumberedVersion.clean_version(versioneer.get_versions(verbose=True)["version"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-req-build-qf456kab/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-req-build-qf456kab/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details. Preparing metadata (setup.py): finished with status 'error'`

Operating System running OctoPrint and Octolapse

OS Name: Manjaro ARM Linux Os Version: 24.04

Printer model & used firmware incl. version

Printer Model: Anycubic i3 Mega S Printer Firmware Version: Marlin 2.1.2.2 (knutwurst 1.5.4)

Browser and version of browser, operating system running browser

Browser: Firefox Browser OS: Cachyos

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: not available / not installed

Link to octoprint.log

Link to octoprint.log: _REPLACE_THISLINK_GOES_HERE

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.

uranoxyd commented 2 months ago

Same here. First installation. (Python 3.12.4)

mrkylegp commented 1 month ago

Same issue here.