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

tests failing because cython not installed #2

Open
jswhit opened this issue Oct 30, 2017 · 5 comments
Open

tests failing because cython not installed #2

jswhit opened this issue Oct 30, 2017 · 5 comments

Comments

@jswhit
Copy link
Contributor

jswhit commented Oct 30, 2017

the v1.3.1rel builds are failing with:

not running tst_unicode3.py ...
Traceback (most recent call last):
File "run_all.py", line 45, in
import numpy, cython
ImportError: No module named cython

@matthew-brett
Copy link
Contributor

Do the tests need Cython?

@matthew-brett
Copy link
Contributor

Ah no - I see - you assume the tests are being run on the same machine that built netcdf4-python, and you want to print out the Cython version. Maybe that could be guarded with a try ... except ImportError clause in run_all.py. But in the meantime, I've added Cython to the test dependencies.

@jswhit
Copy link
Contributor Author

jswhit commented Oct 30, 2017

Cython really only should be needed for building - so I guess that's a bug in the tests.

@matthew-brett
Copy link
Contributor

Seems like a real test failure for 32-bit builds, affecting 32-bit Linux builds, and dual-arch Mac builds.

Traceback (most recent call last):

  File "/Users/travis/build/MacPython/netcdf4-python-wheels/tmp_for_test/tst_cdf5.py", line 17, in setUp

    d = nc.createDimension('dim',dimsize) # 64-bit dimension

  File "netCDF4/_netCDF4.pyx", line 2231, in netCDF4._netCDF4.Dataset.createDimension

  File "netCDF4/_netCDF4.pyx", line 2952, in netCDF4._netCDF4.Dimension.__init__

OverflowError: long int too large to convert

@jswhit
Copy link
Contributor Author

jswhit commented Oct 31, 2017 via email

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