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

Python 3.9 pip installation issue with numpy #164

Closed
asim-pointivo opened this issue Feb 17, 2022 · 3 comments
Closed

Python 3.9 pip installation issue with numpy #164

asim-pointivo opened this issue Feb 17, 2022 · 3 comments

Comments

@asim-pointivo
Copy link

asim-pointivo commented Feb 17, 2022

It appears that, with Python 3.9, if I already have numpy-1.22.2 (latest version as of 17th Feb 2020) in my conda enviornment, then when installing mystic, pip will try to downgrade numpy to version 1.19.5. I looked at the setup.py and it appears that we are only restricting numpy version to be lesser than 1.20.0 with Python 3.6; see here

mystic/setup.py

Line 430 in e6ee20e

elif sysversion == (3,6):# or IS_PYPY
. The setup.py would indicate that on Python 3.9, it should not try to downgrade numpy.

I was not able to figure this issue out, but I think I might have some clue as to what might be happening. I downloaded the wheel for mystic from here https://pypi.org/project/mystic/0.3.8/#files and took a look at metadata.json and METADATA files; both mention "numpy (<1.20.0,>=1.0)" as requirements. I believe we have a single wheel for all python versions, we might need to build multiple wheels for different python versions.

@mmckerns
Copy link
Member

@asim-pointivo: your reasoning may be correct. I likely built the wheel with python3.6.

A new release is imminent, and 3.6 is being deprecated. So, I believe this issue should go away with a new wheel. I believe I should also change my build procedure to use the latest stable supported version to build wheels, as opposed to the oldest.

@mmckerns
Copy link
Member

related?: uqfoundation/pathos#222

@mmckerns mmckerns added this to the mystic-0.4.0 milestone Jul 2, 2022
@mmckerns
Copy link
Member

mmckerns commented Jul 2, 2022

should be fixed (by #171). Reopen if it's not.

@mmckerns mmckerns closed this as completed Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants