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

Version Error with Numpy when version contains string "<int>, <int>, <string>" #8034

Closed
BarusXXX opened this issue Dec 10, 2016 · 3 comments
Closed

Comments

@BarusXXX
Copy link

`

Traceback (most recent call last):
File "C:/Users/user/PycharmProjects/DeepLearningCoarse/current.py", line 7, in
from sklearn.utils import shuffle
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn_init_.py", >line 57, in module
from .base import clone
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\base.py", line 12, in module
from .utils.fixes import signature
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\utils_init_.py", line 11, in module
from .validation import (as_float_array,
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\utils\validation.py", line 18, in
from ..utils.fixes import signature
File "C:\Users\user\AppData\Local\Programs\Python\Python35\lib\site-packages\sklearn\utils\fixes.py", line 407, in module
if np_version < (1, 12, 0):
TypeError: unorderable types: str() < int()
`

A string handler is needed for the case where the version of numpy contains string such as:

`

print(np_version)
(1, 12, '0b1')
`

@nelson-liu
Copy link
Contributor

I think this was fixed a few days ago in master, see #7902

@BarusXXX
Copy link
Author

Thanks!

So the 3rd value of the version sequence is not needed?

@amueller
Copy link
Member

see #7980

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

3 participants