-
Notifications
You must be signed in to change notification settings - Fork 38
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
No module named sharc.pysharc.interface #5
Comments
You sure you set your PYTHONPATH correctly? try after setting: export PYTHONPATH=/userdata/wang/app/sharc.v2.1-pysharc/pysharc:$PYTHONPATH |
Dear MFSJmenger, I tried to update the PYTHONPATH. I tried to run the test case number 17, but failed. I found the following message from the run.err file,
|
The error simply states, that it cannot find the NetCDF library against which libsharc.so was compiled. ldd /userdata/wang/app/sharc.v2.1-pysharc/source/../lib/libsharc.so which would probably tell you that netcdf/hdf5 libraries are not found. Best, |
Thanks for your quick reply. I am sure, there is something like NetCDF and hdf5 under /home/wang/anaconda2/lib. ldd reports the following message, Seems it is not linked against NetCDF? But I am sure I compiled the source code by following these steps, Step 1. set USE_PYSHARC to false, |
Update. Everything works fine on CentOS7. All the other libs ( hdf5, hdf5_hl, netcdf, mfhdf, df, jpeg ) are also installed via conda install. But, pyshac does not work on ubuntu 18.04, not sure why. |
The source code was cloned from v2.1 branch.
OS, Ubuntu 18.04
Compiled with pysharc enabled,
Try to run $SHARC/test.py
The test case, 17, 18
_================================================================================
|| Running test jobs... ||
/userdata/wang/app/sharc.v2.1-pysharc/bin/../tests/INPUT/LVC_pysharc
2019-11-01 16:29:37.284411 2019-11-01 16:29:37.382382 Runtime: 0:00:00.097971 Error Code: 1
/userdata/wang/app/sharc.v2.1-pysharc/bin/../tests/INPUT/LVC_pysharc_netcdf
2019-11-01 16:29:37.383196 2019-11-01 16:29:37.464266 Runtime: 0:00:00.081070 Error Code: 1
================================================================================
|| Test job analysis ||
-------------------------LVC_pysharc------------------------
Job did not finish successfully. Error code: 1
---------------------LVC_pysharc_netcdf---------------------
Job did not finish successfully. Error code: 1
================================================================================
|| Summary ||
LVC_pysharc Job did not finish
LVC_pysharc_netcdf Job did not finish_
The error log file under RUNNING_TESTS/LVC_pysharc_netcdf reports,
[wang@lab-itc LVC_pysharc_netcdf]$ ls
geom input QM run.err run.out run.sh veloc
[wang@lab-itc LVC_pysharc_netcdf]$ cat run.err
Traceback (most recent call last):
File "/userdata/wang/app/sharc.v2.1-pysharc/source/../bin/pysharc_lvc.py", line 46, in
from sharc.pysharc.interface import SHARC_INTERFACE
ImportError: No module named sharc.pysharc.interface
cp: cannot stat '/tmp/wang/TRAJ/output.*': No such file or directory
run.sh: 17: [: 1: unexpected operator
[wang@lab-itc LVC_pysharc_netcdf]$
The text was updated successfully, but these errors were encountered: