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

andes failing with numpy versions containing 'rc' #214

Closed
sanurielf opened this issue Oct 26, 2021 · 0 comments
Closed

andes failing with numpy versions containing 'rc' #214

sanurielf opened this issue Oct 26, 2021 · 0 comments
Assignees
Labels

Comments

@sanurielf
Copy link
Contributor

Andes is falling when detecting NumPy versions because it may contain literals like "rc" at the end.

To Reproduce

pip install numpy==1.20.0rc2
pip install andes
andes prep

Expected behavior

The following output appears:

Saved generated pycode to "/Users/urielsandoval/.andes/pycode"
Loaded generated Python code in "/Users/urielsandoval/.andes/pycode".
Traceback (most recent call last):
File "/usr/local/bin/andes", line 33, in
sys.exit(load_entry_point('andes', 'console_scripts', 'andes')())
File "/Users/urielsandoval/Nextcloud/dev/andes/andes/cli.py", line 211, in main
return func(cli=True, **vars(args))
File "/Users/urielsandoval/Nextcloud/dev/andes/andes/main.py", line 728, in prepare
system.prepare(quick=quick, incremental=incremental, models=models,
File "/Users/urielsandoval/Nextcloud/dev/andes/andes/system.py", line 316, in prepare
self.dill()
File "/Users/urielsandoval/Nextcloud/dev/andes/andes/system.py", line 1351, in dill
np_ver = tuple([int(i) for i in np_ver])
File "/Users/urielsandoval/Nextcloud/dev/andes/andes/system.py", line 1351, in
np_ver = tuple([int(i) for i in np_ver])
ValueError: invalid literal for int() with base 10: '0rc2'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants