-
Notifications
You must be signed in to change notification settings - Fork 619
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
Wrong numpy range in setup.py #456
Comments
Can I work on this issue? |
Hi @Shekharrajak, you're more than welcome to contribute here. Thanks! |
Thanks @1duo ! I just need a clarification : Do we want to make it compatible for version < 1.16.0 or should we constraint version >= 1.16.0 in setup.py ? |
Hi @TobyRoseman, it'd be great if you can comment on / clarify the expected version we want to cover here. Thanks! |
The most important thing is that the version range listed in That being said, coremltools should really support numpy versions older than 9 months ago. I believe numpy is very good about backwards compatibility. It would be great if we could actually support
|
I followed the steps given :
but I got the error :
Can you please help me to get the setup done ? |
Can you share your system environment info? |
Here is the system I am using coremltools version (e.g., 3.0b5): Didn't install prevously. trying to instal from source |
I installed the codemltool using pip not through source but I came across different error messege :
Can you please help me to resolve this? Thanks! |
Hi @Shekharrajak, the
|
Oh! Thanks for letting me know this. I have upgraded the system and it is completed now. |
Can you please let me know how can I use the cloned repos and generated build to test the code. I tried running
inside the cloned repo. |
@Shekharrajak You can now try to build from source again: https://github.com/apple/coremltools#building-from-source |
Yes, I tried the same and after that I am running the code snippet (of the issue description):
|
Hi @Shekharrajak, we'll investigate this build issue, in the meantime, this is due to missing |
Installing the oldest version of numpy we want to support, before running |
This is not fixed in 3.2. We still get a segfault using the original instructions. Reopening. |
* adding more typehints * resolving mypy issues * resolving formatting issue * fixing isort issue Co-authored-by: V Vishnu Anirudh <git.vva@gmail.com> Co-authored-by: V Vishnu Anirudh <vvani@kth.se>
🐞Describe the bug
The setup.py for coremltools specifies the numpy dependency range as
'numpy >= 1.14.5'
. However using any version before then1.16.0
causes a segmentation fault. Any version >= to1.16.0
works.It would be nice to support versions before
1.16.0
. That version is less than a year old. However at the very least the specified dependency ranges should be accurate.Trace
No trace displayed. Only output is
Segmentation fault: 11
To Reproduce
In a fresh/new Conda environment, run:
pip install Pillow coremltools==3.0b6 numpy==1.15.4
Download the MNIST Model.
Execute the following code:
This give a segmentation fault.
If you then run
pip install numpy==1.16.0
, then the above code works.System environment (please complete the following information):
The text was updated successfully, but these errors were encountered: