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

py.test error in python3.6 #26

Open
xigrug opened this issue Mar 18, 2018 · 3 comments
Open

py.test error in python3.6 #26

xigrug opened this issue Mar 18, 2018 · 3 comments

Comments

@xigrug
Copy link

xigrug commented Mar 18, 2018

====================================================== test session starts =======================================================
platform linux2 -- Python 2.7.14, pytest-3.4.2, py-1.5.2, pluggy-0.6.0
Matplotlib: 2.2.2
Freetype: 2.8.1
rootdir: /data/c03n02/cliu/study/flexpart/post_flexpart/reflexible-master, inifile:
plugins: mpl-0.9
collected 0 items / 8 errors

============================================================= ERRORS =============================================================
_________________________________ ERROR collecting reflexible/conv2netcdf4/tests/test_basics.py __________________________________
ImportError while importing test module '/data/c03n02/cliu/study/flexpart/post_flexpart/reflexible-master/reflexible/conv2netcdf4/tests/test_basics.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
reflexible/init.py:108: in
from .flexpart import Flexpart
reflexible/flexpart.py:12: in
from reflexible.scripts import read_conffiles, read_species
reflexible/scripts/init.py:1: in
from .create_ncfile import create_ncfile, read_conffiles, read_species
reflexible/scripts/create_ncfile.py:27: in
import netCDF4 as nc
/users1j/cliu/soft/anaconda2/envs/python3.6/lib/python2.7/site-packages/netCDF4/init.py:3: in
from ._netCDF4 import *
E ImportError: /users1j/cliu/soft/anaconda2/envs/python3.6/lib/python2.7/site-packages/netCDF4/../../../libcurl.so.4: undefined symbol: libssh2_scp_recv2
____________________________ ERROR collecting reflexible/conv2netcdf4/tests/test_netcdf4_structure.py ____________________________
ImportError while importing test module '/data/c03n02/cliu/study/flexpart/post_flexpart/reflexible-master/reflexible/conv2netcdf4/tests/test_netcdf4_structure.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
reflexible/init.py:105: in
from . import conv2netcdf4
E ImportError: cannot import name conv2netcdf4

@jfburkhart
Copy link
Member

Sorry, I cannot recreate this test. Could you provide more details about how you ran the test session?

@envhyf
Copy link

envhyf commented Aug 7, 2018

I have the same problem in the compilation process. The issue was associated with the module reflexible/conv2netcdf4 which was not be installed properly.

@wjjxjd
Copy link

wjjxjd commented Jun 18, 2019

You should install in python3.

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

4 participants