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

[Bug]: Cannot install on Python 3.12 #949

Open
JohnyPeaN opened this issue Jun 11, 2024 · 1 comment
Open

[Bug]: Cannot install on Python 3.12 #949

JohnyPeaN opened this issue Jun 11, 2024 · 1 comment

Comments

@JohnyPeaN
Copy link

If this is a feature request describe it here

___REPLACE_THIS__FEATURE_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_THIS__GCODE_FILE_LINK_GOES_HERE

Link to settings.json

Link to settings.json with all passwords removed: ___REPLACE_THIS__SETTINGS_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_THIS__LINK_GOES_HERE

Link to contents of Javascript console in the browser

Link to javascript console output: ___REPLACE_THIS__LINK_GOES_HERE

Screenshots and/or videos of the problem:

Screenshot/Video Links: ___REPLACE_THIS__LINKs_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
Copy link

uranoxyd commented Jun 24, 2024

Same here. First installation. (Python 3.12.4)

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

2 participants