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

Cannot install when Python is >=3.12 #27

Closed
gingerbeardman opened this issue Jan 15, 2024 · 8 comments
Closed

Cannot install when Python is >=3.12 #27

gingerbeardman opened this issue Jan 15, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@gingerbeardman
Copy link

gingerbeardman commented Jan 15, 2024

Before continuing with the bug report, does updating to the latest version fix this issue? [Yes/No]

No

Describe the bug
Cannot install, reports Python is >=3.12 when it is 3.11.7

Numba issue numba/numba#9197

Debugging Information

% pipx install pymusiclooper 
Fatal error from pip prevented installation. Full pip output in file:
    /Users/matt/.local/pipx/logs/cmd_2024-01-15_10.09.36_pip_errors.log

pip seemed to fail to build package:
    numba<0.58.0,>=0.57.0

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    RuntimeError: Cannot install on Python version 3.12.0; only versions >=3.8,<3.12 are supported.
    error: metadata-generation-failed

Error installing pymusiclooper.

Expected behavior

  • should install on latest software

Environment Information (please complete the following information):

  • OS: macOS 14.2.1 Sonoma
  • PyMusicLooper version being used (execute pymusiclooper --version in the terminal if unsure):
  • Is FFmpeg installed and working? (execute ffmpeg --version in the terminal if unsure): Yes
  • Python: 3.11.7

Additional context

@gingerbeardman gingerbeardman added the bug Something isn't working label Jan 15, 2024
@gingerbeardman
Copy link
Author

gingerbeardman commented Jan 15, 2024

Partial workaround for installing:

$ /opt/homebrew/opt/[email protected]/bin/python3.11 -m pip install pipx
$ /opt/homebrew/opt/[email protected]/bin/python3.11 -m pipx install pymusiclooper
  installed package pymusiclooper 3.2.2, installed using Python 3.11.7
  These apps are now globally available
    - pymusiclooper
done! ✨ 🌟 ✨

BUT, this results in an install broken the same way as pip. See #28

@arkrow
Copy link
Owner

arkrow commented Jan 20, 2024

Users installing under a Python 3.12-based environment will need to activate the pre-release --pre flag, since numba's 3.12 supported version is still in the pre-release stage:

pipx install pymusiclooper --pip-args="--pre"

This should be unnecessary soon however, when the new numba version is officially released and the issue linked is closed (status: numba/numba#9197).

@gingerbeardman
Copy link
Author

gingerbeardman commented Jan 21, 2024

Indeed, that new pre-release version installs and works. Many thanks!

And what bad timing for me to upgrade in this period of Python 3.12 + bad numba.

I'll leave this issue open until there's a release version that resolves this issue.

@arkrow
Copy link
Owner

arkrow commented Feb 26, 2024

Numba 0.59.0 has been released on earlier this month with official support for Python 3.12, and as such this workaround is no longer required.

PyMusicLooper now officially supports Python 3.12.

@arkrow arkrow closed this as completed Feb 26, 2024
@gingerbeardman
Copy link
Author

Thanks, I just did pipx install --force pymusiclooper to get back on main.

I don't know if that was really needed, as I'm mostly unfamiliar with python, but there we go.

@AnthonyBe
Copy link

I'm still seeing issues with install failing with python 3.12.2
I even tried the "--pre" arg but got same result.

C:\Python312>pipx install pymusiclooper --pip-args="--pre"
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\Anthony\pipx\logs\cmd_2024-04-25_14.54.36_pip_errors.log

pip seemed to fail to build package:
    numba<0.58.0,>=0.57.0

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    RuntimeError: Cannot install on Python version 3.12.2; only versions >=3.8,<3.12 are supported.

Error installing pymusiclooper.

@arkrow
Copy link
Owner

arkrow commented Apr 25, 2024

Thanks for the report @AnthonyBe. I've managed to replicate your issue, and it should be fixed as of the new v3.4.0 release. Let me know if that resolved the issue for you as well.

@AnthonyBe
Copy link

Confirmed that 3.4.0 installed successfully on python 3.12.2

C:\WINDOWS\system32>pipx install pymusiclooper
  installed package pymusiclooper 3.4.0, installed using Python 3.12.2
  These apps are now globally available
    - pymusiclooper.exe

Thank you @arkrow !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants