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

Unable to install when using Python 3.13 #494

Open
HCookie opened this issue Oct 28, 2024 · 4 comments
Open

Unable to install when using Python 3.13 #494

HCookie opened this issue Oct 28, 2024 · 4 comments

Comments

@HCookie
Copy link

HCookie commented Oct 28, 2024

Description of the problem

As of October 7th 2024, Python 3.13 was released.
However, pyshtools cannot be installed when using this 3.13. I have checked my system and on 3.12 it installs just fine.

See below for the build stack trace

Stack Trace
  error: Failed to prepare distributions
    Caused by: Failed to fetch wheel: pyshtools==4.13.1
    Caused by: Build backend failed to build wheel through `build_wheel()` with exit status: 1
  --- stdout:
  + meson setup .../pyshtools/4.13.1/HF3xwocSlYTNmvMH3kVjy/pyshtools-4.13.1.tar.gz .../pyshtools/4.13.1/HF3xwocSlYTNmvMH3kVjy/pyshtools-4.13.1.tar.gz/.mesonpy-8q44trl8 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --default-library=static --native-file=.../pyshtools/4.13.1/HF3xwocSlYTNmvMH3kVjy/pyshtools-4.13.1.tar.gz/.mesonpy-8q44trl8/meson-python-native-file.ini
  The Meson build system
  Version: 1.6.0
  Source dir: .../pyshtools/4.13.1/HF3xwocSlYTNmvMH3kVjy/pyshtools-4.13.1.tar.gz
  Build dir: .../pyshtools/4.13.1/HF3xwocSlYTNmvMH3kVjy/pyshtools-4.13.1.tar.gz/.mesonpy-8q44trl8
  Build type: native build
  Program python3 found: YES (.../bin/python3)
  WARNING: You should add the boolean check kwarg to the run_command call.
           It currently defaults to false,
           but it will default to true in meson 2.0.
           See also: https://github.com/mesonbuild/meson/issues/9300
  WARNING: failed to process netrc file: ~/.netrc access too permissive: access permissions must restrict access to only the owner (None, line None).
  Project name: shtools
  Project version: 4.13.1
  Fortran compiler for the host machine: gfortran (gcc 8.5.0 "GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)")
  Fortran linker for the host machine: gfortran ld.bfd 2.30-119
  C compiler for the host machine: gcc (gcc 8.5.0 "gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)")
  C linker for the host machine: gcc ld.bfd 2.30-119
  Host machine cpu family: x86_64
  Host machine cpu: x86_64
  Found pkg-config: YES (/usr/bin/pkg-config) 1.4.2
  Found CMake: /usr/bin/cmake (3.20.2)
  Run-time dependency openblas found: NO (tried pkgconfig and cmake)
  Run-time dependency openblas found: NO (tried pkgconfig and cmake)
  Run-time dependency blas found: NO (tried pkgconfig and cmake)
  
  ../meson.build:15:9: ERROR: Dependency "BLAS" not found, tried pkgconfig and cmake

System information

Fortran compiler for the host machine: gfortran (gcc 8.5.0 "GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)")
Fortran linker for the host machine: gfortran ld.bfd 2.30-119
C compiler for the host machine: gcc (gcc 8.5.0 "gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)")
C linker for the host machine: gcc ld.bfd 2.30-119
Host machine cpu family: x86_64
Host machine cpu: x86_64

@MarkWieczorek
Copy link
Member

Could you try installing from source? There are no wheels or conda packages yet for python 3.13.

@HCookie
Copy link
Author

HCookie commented Oct 28, 2024

Could you try installing from source?

Yes, I am able to install from source. However, downstream users / CI actions of a depending package may find those steps tricky.

There are no wheels or conda packages yet for python 3.13.

I am hoping to use this issue to notify when wheels or conda packages are available for Python 3.13.

I do understand that 3.13 just came out, so it is not an immediate requirement. Was just raising awareness of the current issue.

@MarkWieczorek
Copy link
Member

I wasn't aware about 3.13, so I'll look into it. It might be easy to just rerun our release action to make and upload the wheels, but conda will probably have to wait until the next release (before the end of the year).

@HCookie
Copy link
Author

HCookie commented Oct 28, 2024

Thanks @MarkWieczorek, 3.13 kinda snuck up on me too.
Hopefully a rerun will solve the pypi issue

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