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

numpy package requirements #3

Closed
jnyhuis opened this issue Dec 10, 2013 · 4 comments
Closed

numpy package requirements #3

jnyhuis opened this issue Dec 10, 2013 · 4 comments
Assignees

Comments

@jnyhuis
Copy link

jnyhuis commented Dec 10, 2013

python 2.7.3

I was trying to install pyDNase using pip, and it was erroring out on the numpy version. While numpy was installed, pyDNase was failing the numpy requirement.

I corrected the issue with: pip install numpy --upgrade, which brought numpy to version 1.7.1 after which pyDNase installed normally.

It would be nice if you listed your numpy version requirement in your docs.

for reference:

[root@lebowski ~]# pip install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /net/lebowski/vol1/sw/python/2.7.3/lib/python2.7/site-packages
Cleaning up...
[root@lebowski ~]# pip install pyDNase
Downloading/unpacking pyDNase
Downloading pyDNase-0.1.2.tar.gz (201kB): 201kB downloaded
Running setup.py egg_info for package pyDNase
Traceback (most recent call last):
File "", line 16, in
File "/tmp/pip_build_root/pyDNase/setup.py", line 9, in
raise ImportError("Due to a quirk with pip, pyDNase requires numpy to be installed before starting setup")
ImportError: Due to a quirk with pip, pyDNase requires numpy to be installed before starting setup
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 16, in

File "/tmp/pip_build_root/pyDNase/setup.py", line 9, in

raise ImportError("Due to a quirk with pip, pyDNase requires numpy to be installed before starting setup")

ImportError: Due to a quirk with pip, pyDNase requires numpy to be installed before starting setup


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pyDNase
Storing complete log in /root/.pip/pip.log

Thanks Much!
John N.

@ghost ghost assigned jpiper Dec 10, 2013
@jpiper
Copy link
Owner

jpiper commented Dec 10, 2013

Hi John,

I'll have to go through and work out which version of NumPy is required - I never actually tested how far you can go back before it breaks! I imagine this is also a bit of dependency hell, as scipy depends on NumPy to compile, so these will be linked.

I haven't actually hardcoded a numpy version into the NumPy install checker (it just attempts to import numpy, and raises that error if it fails to), which makes your bug report confusing, as NumPy should have imported if it was a valid install of any version. Do you happen to know if your old NumPy install was still working?

Jason

@jnyhuis
Copy link
Author

jnyhuis commented Dec 10, 2013

Well, none of the informatics staff (who use python daily) reported numpy as broken, so I assume it was working... :-)
Sorry, I failed to pull the numpy version we were using before the upgrade, and I don't think pip logs the old version number during an upgrade.

Thanks,
John Nyhuis
IT Manager, Stam Lab
2211 Elliott Avenue
6th Floor, 6S139
Seattle, WA 98121
O: (206)-267-1097 ext 220
F: (206)-441-3033

On 12/10/2013 01:07 AM, Jason Piper wrote:

Hi John,

I'll have to go through and work out which version of NumPy is required - I never actually tested how far you can go back before it breaks! I
imagine this is also a bit of dependency hell, as scipy depends on NumPy to compile, so these will be linked.

I haven't actually hardcoded a numpy version into the NumPy install checker (it just attempts to import numpy, and raises that error if it fails
to), which makes your bug report confusing, as NumPy should have imported if it was a valid install of any version. Do you happen to know if
your old NumPy install was still working?

Jason


Reply to this email directly or view it on GitHub #3 (comment).

@jpiper
Copy link
Owner

jpiper commented Dec 10, 2013

Thanks for the extra info John - I'll try and see if I can break pyDNase with some old NumPy installs, although I've had some other people look at the code and we're not sure what would cause it, so this may be unreproducible.

Barring this little hiccup, I hope you've managed to get everything up and running. If you need any more help with anything pyDNase/Wellington related (or if anyone in the lab has any questions), feel free to raise an issue here, or email me directly on j.piper@warwick.ac.uk

J

@jpiper
Copy link
Owner

jpiper commented Jan 11, 2014

Unable to reproduce.

@jpiper jpiper closed this as completed Jan 11, 2014
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