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]: The library is not working with Python version 3.13 #504

Closed
MendezStats opened this issue Feb 9, 2025 · 2 comments · Fixed by #509
Closed

[Bug]: The library is not working with Python version 3.13 #504

MendezStats opened this issue Feb 9, 2025 · 2 comments · Fixed by #509
Labels
bug Something isn't working

Comments

@MendezStats
Copy link

NBA API Version

1.7

Issue

I was trying to install the app in my new server but I had the python version 3.13 and the library showed me an error so I uninstalled that version and installed the 3.12 and it worked.

Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\eltef\AppData\Local\Programs\Python\Python313\python.exe C:\Users\eltef\AppData\Local\Temp\pip-install-e2m80_w_\numpy_517d86e6b1df4c5b93687c044f5be6d0\vendored-meson\meson\meson.py setup C:\Users\eltef\AppData\Local\Temp\pip-install-e2m80_w_\numpy_517d86e6b1df4c5b93687c044f5be6d0 C:\Users\eltef\AppData\Local\Temp\pip-install-e2m80_w_\numpy_517d86e6b1df4c5b93687c044f5be6d0.mesonpy-gxohwk5h -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\eltef\AppData\Local\Temp\pip-install-e2m80_w_\numpy_517d86e6b1df4c5b93687c044f5be6d0.mesonpy-gxohwk5h\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\eltef\AppData\Local\Temp\pip-install-e2m80_w_\numpy_517d86e6b1df4c5b93687c044f5be6d0
Build dir: C:\Users\eltef\AppData\Local\Temp\pip-install-e2m80_w_\numpy_517d86e6b1df4c5b93687c044f5be6d0.mesonpy-gxohwk5h
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
  Running icl "" gave "[WinError 2] The system cannot find the file specified"
  Running cl /? gave "[WinError 2] The system cannot find the file specified"
  Running cc --version gave "[WinError 2] The system cannot find the file specified"
  Running gcc --version gave "[WinError 2] The system cannot find the file specified"
  Running clang --version gave "[WinError 2] The system cannot find the file specified"
  Running clang-cl /? gave "[WinError 2] The system cannot find the file specified"
  Running pgcc --version gave "[WinError 2] The system cannot find the file specified"

  A full log can be found at C:\Users\eltef\AppData\Local\Temp\pip-install-e2m80_w_\numpy_517d86e6b1df4c5b93687c044f5be6d0\.mesonpy-gxohwk5h\meson-logs\meson-log.txt
  [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.

Code

No response

@MendezStats MendezStats added bug Something isn't working triage Researching into a possible bug labels Feb 9, 2025
@rsforbes rsforbes removed the triage Researching into a possible bug label Feb 23, 2025
@rsforbes
Copy link
Collaborator

@MendezStats - Thanks for calling this out. I ran into a python 3.13 issue a while back while getting a new CI build up. I've flipped this over to a bug.

@rsforbes
Copy link
Collaborator

@MendezStats - Took a look at this. The issue is with Numpy 2.0 in that it requires a python version >=3.10. In turn, Numpy 1.x requires that a python version < 3.13. The pyproject.toml file needs an update to indicate which version of numpy is compatible with the various versions of python. I'll work on getting this resolved and an update out.

@rsforbes rsforbes linked a pull request Feb 25, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants