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 with Python 3.10 due to pymatgen #285

Closed
dev-zero opened this issue Apr 11, 2022 · 2 comments
Closed

Unable to install with Python 3.10 due to pymatgen #285

dev-zero opened this issue Apr 11, 2022 · 2 comments
Labels
topic/install Issues related to the installation of the package type/bug Something isn't working

Comments

@dev-zero
Copy link
Contributor

trying to install with Python 3.10 gives:

      pymatgen/optimization/neighbors.c: In function ‘__Pyx_TraceSetupAndCall’:
      pymatgen/optimization/neighbors.c:26523:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’?
      26523 |     tstate->use_tracing = 0;
            |             ^~~~~~~~~~~
            |             tracing
      pymatgen/optimization/neighbors.c:26531:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’?
      26531 |     tstate->use_tracing = (tstate->c_profilefunc ||
            |             ^~~~~~~~~~~
            |             tracing
      pymatgen/optimization/neighbors.c:26536:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’?
      26536 |         return tstate->use_tracing && retval;
            |                        ^~~~~~~~~~~
            |                        tracing
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pymatgen

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Quick googling shows that Python 3.10 has a change triggering that. Due to the block for newer versions of pymatgen installation is broken with Python 3.10.

@sphuber
Copy link
Collaborator

sphuber commented Apr 11, 2022

I had mentioned this to them early this year materialsproject/pymatgen#2332 They closed it but I never checked if they actually fixed it. They may have done in a new release that you are not getting due to an upper bound

@mbercx mbercx added type/bug Something isn't working topic/install Issues related to the installation of the package labels May 23, 2023
@sphuber
Copy link
Collaborator

sphuber commented Feb 26, 2024

Fixed in #327

@sphuber sphuber closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/install Issues related to the installation of the package type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants