-
Notifications
You must be signed in to change notification settings - Fork 22
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
python tests failing in ctests - No module named 'ncepbufr' #520
Comments
Sorry @PatrickHildreth-NOAA that you are having this problem. As noted in #186 and #231, this isn't the first time we've seen this problem. At one point in #199 we thought we had it fixed, but apparently there's still some lingering issues. For my part, the python wrapper is the one aspect of the library that I'm the least knowledgeable about, so I've been relying on others (@jswhit, @edwardhartnett, @aerorahul, etc.) and others to help support that part. Hopefully one of them can chime in and help. |
Thanks for getting back to me Jeff. Hopefully one of the others can assist.
If there's any testing I can do to help, I'd be more than happy to do that.
Patrick Hildreth
NOAA/Global Systems Laboratory
IT Services/Data Services Group
***@***.***
…On Tue, Aug 29, 2023 at 2:16 PM Jeff Ator ***@***.***> wrote:
Sorry @PatrickHildreth-NOAA <https://github.com/PatrickHildreth-NOAA>
that you are having this problem. As noted in #186
<#186> and #231
<#231>, this isn't the
first time we've seen this problem. At one point in #199
<#199> we thought we had it
fixed, but apparently there's still some lingering issues.
For my part, the python wrapper is the one aspect of the library that I'm
the least knowledgeable about, so I've been relying on others ***@***.***
<https://github.com/jswhit>, @edwardhartnett
<https://github.com/edwardhartnett>, @aerorahul
<https://github.com/aerorahul>, etc.) and others to help support that
part. Hopefully one of them can chime in and help.
—
Reply to this email directly, view it on GitHub
<#520 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIX5NZFZIU37T74YB7CPCLXXZEX7ANCNFSM6AAAAAA364YGHI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Did you ever run If that doesn't explain it, then you may also want to try using absolute pathnames instead of relative pathnames. |
To clarify, relative pathnames usually aren't a problem; however, typically these are just specified as, e.g. But again, if you never ran |
I was just about to create a related issue and saw this. The python cmake config assumes that |
@PatrickHildreth-NOAA hopefully this is fixed now, because the python extensions to the library are now generated during the build step and not the install step. Thanks to @AlexanderRichert-NOAA for figuring this out! |
I still get all seven python tests failing before and after running 'make
install' (The install is creating the custom install and tables paths
though) [I tried reinstalling using the 12.0.1 release]
The following tests FAILED:
1 - test_pyncepbufr_checkpoint (Failed)
2 - test_pyncepbufr_gps (Failed)
3 - test_pyncepbufr_prepbufr (Failed)
4 - test_pyncepbufr_rad (Failed)
5 - test_pyncepbufr_satwnd (Failed)
6 - test_pyncepbufr_write (Failed)
7 - test_pyncepbufr_test (Failed)
Errors while running CTest
Start 1: test_pyncepbufr_checkpoint
1/7 Test #1: test_pyncepbufr_checkpoint .......***Failed 0.02 sec
Traceback (most recent call last):
File
"/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-12.0.1/python/test/test_checkpoint.py",
line 2, in <module>
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
For some reason the module can't be located.
Patrick Hildreth
NOAA/Global Systems Laboratory
IT Services/Data Services Group
***@***.***
…On Wed, Sep 27, 2023 at 11:06 AM Jeff Ator ***@***.***> wrote:
@PatrickHildreth-NOAA <https://github.com/PatrickHildreth-NOAA> hopefully
this is fixed now, because the python extensions to the library are now
generated during the build step and not the install step. Thanks to
@AlexanderRichert-NOAA <https://github.com/AlexanderRichert-NOAA> for
figuring this out!
—
Reply to this email directly, view it on GitHub
<#520 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIX5N7CS4FAMNV7FPU2RUTX4RMIJANCNFSM6AAAAAA364YGHI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sorry for any confusion Patrick, but just to clarify, PR #524 was the first commit to the repository after the 12.0.1 release. In other words, it won't be part of an official release until whenever I can get around to doing a new future release. So if you want to test with the latest changes, then you'll need to clone the I hope that makes sense, and once you pull down that latest commit then it should hopefully work for you using the same build instructions as before. But if not, then please let us know and feel free to open another issue, and we'll take another look at this. And thanks again for your patience as we work through all of our outstanding issues! |
Hi Jeff,
That makes sense to me. I'll give it a go later today. Thanks for your
assistance.
Patrick Hildreth
NOAA/Global Systems Laboratory
IT Services/Data Services Group
***@***.***
…On Wed, Sep 27, 2023 at 5:34 PM Jeff Ator ***@***.***> wrote:
Sorry for any confusion Patrick, but just to clarify, PR #524
<#524> was the first commit
to the repository *after* the 12.0.1 release. In other words, it won't be
part of an official release until whenever I can get around to doing a new
future release. So if you want to test with the latest changes, then you'll
need to clone the develop branch in the
https://github.com/NOAA-EMC/NCEPLIBS-bufr repository, which is now
post-12.0.1.
I hope that makes sense, and once you pull down that latest commit then it
should hopefully work for you using the same build instructions as before.
But if not, then please let us know and feel free to open another issue,
and we'll take another look at this. And thanks again for your patience as
we work through all of our outstanding issues!
—
Reply to this email directly, view it on GitHub
<#520 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIX5N6YD7ODAQ22CUFI3WLX4SZXLANCNFSM6AAAAAA364YGHI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
After running cmake with:
cmake -DENABLE_PYTHON=ON -DCMAKE_INSTALL_PREFIX=./ncep_libs -DMASTER_TABLE_DIR=./ncep_tables ../NCEPLIBS-bufr-bufr_v12.0.0
and then running 'make -j4' ; 'ctests' all pass except for the python related tests which all seem to be unable to locate the 'ncepbufr' module (below)
I've gotten the same result on MacOS 10.15.7 and Redhat8 linux. I also note that the directories './ncep_libs' and './ncep_tables' do not get built under 'build' Am I specifying those correctly?
Is this a known issue and/or is there a workaround?
Failed tests output:
ctest --rerun-failed --output-on-failure
Test project /Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/build
Start 1: test_pyncepbufr_checkpoint
1/7 Test #1: test_pyncepbufr_checkpoint .......***Failed 0.03 sec
Traceback (most recent call last):
File "/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-bufr_v12.0.0/python/test/test_checkpoint.py", line 2, in
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
2/7 Test #2: test_pyncepbufr_gps ..............***Failed 0.02 sec
Traceback (most recent call last):
File "/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-bufr_v12.0.0/python/test/test_gps.py", line 2, in
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
3/7 Test #3: test_pyncepbufr_prepbufr .........***Failed 0.03 sec
Traceback (most recent call last):
File "/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-bufr_v12.0.0/python/test/test_prepbufr.py", line 2, in
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
4/7 Test #4: test_pyncepbufr_rad ..............***Failed 0.02 sec
Traceback (most recent call last):
File "/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-bufr_v12.0.0/python/test/test_rad.py", line 2, in
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
5/7 Test #5: test_pyncepbufr_satwnd ...........***Failed 0.03 sec
Traceback (most recent call last):
File "/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-bufr_v12.0.0/python/test/test_satwnd.py", line 2, in
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
6/7 Test #6: test_pyncepbufr_write ............***Failed 0.03 sec
Traceback (most recent call last):
File "/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-bufr_v12.0.0/python/test/test_write.py", line 2, in
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
7/7 Test #7: test_pyncepbufr_test .............***Failed 0.03 sec
Traceback (most recent call last):
File "/Users/patrick.hildreth/projects/python/venv/ncep_bufr_lib_proj/ncep_bufr_lib_root/NCEPLIBS-bufr-bufr_v12.0.0/python/test/test.py", line 2, in
import ncepbufr
ModuleNotFoundError: No module named 'ncepbufr'
0% tests passed, 7 tests failed out of 7
Total Test time (real) = 0.20 sec
The following tests FAILED:
1 - test_pyncepbufr_checkpoint (Failed)
2 - test_pyncepbufr_gps (Failed)
3 - test_pyncepbufr_prepbufr (Failed)
4 - test_pyncepbufr_rad (Failed)
5 - test_pyncepbufr_satwnd (Failed)
6 - test_pyncepbufr_write (Failed)
7 - test_pyncepbufr_test (Failed)
Errors while running CTest
The text was updated successfully, but these errors were encountered: