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 fail on v1.10.1 with FileNotFoundError on msise00_driver #24

Open
danielk333 opened this issue Jun 3, 2022 · 1 comment · May be fixed by #26
Open

tests fail on v1.10.1 with FileNotFoundError on msise00_driver #24

danielk333 opened this issue Jun 3, 2022 · 1 comment · May be fixed by #26

Comments

@danielk333
Copy link
Contributor

  • operating system: Manjaro (Arch Linux variant)
  • compiler & version: GCC/GFORTRAN 12.1.0
  • Python version: Python 3.10.4

short test summary info:

FAILED src/msise00/tests/test_ccmc.py::test_ccmc - FileNotFoundError: [Errno 2] No such file or directory: '/home/danielk/git/msise00/src/msise00/msise00_driver'
FAILED src/msise00/tests/test_ccmc.py::test_ccmc2 - FileNotFoundError: [Errno 2] No such file or directory: '/home/danielk/git/msise00/src/msise00/msise00_driver'
FAILED src/msise00/tests/test_module.py::test_past - FileNotFoundError: [Errno 2] No such file or directory: '/home/danielk/git/msise00/src/msise00/msise00_driver'
FAILED src/msise00/tests/test_module.py::test_forecast - FileNotFoundError: [Errno 2] No such file or directory: '/home/danielk/git/msise00/src/msise00/msise00_driver'

4 failed, 8 skipped, 4 warnings in 0.54s 
@danielk333
Copy link
Contributor Author

Manually building fixes the problem:

>>> import msise00.base
>>> msise00.base.build()
-- The Fortran compiler identification is GNU 12.1.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/f95 - skipped
-- Configuring done
-- Generating done
-- Build files have been written to: /home/danielk/git/msise00/src/msise00/build
Scanning dependencies of target msise00
[ 25%] Building Fortran object CMakeFiles/msise00.dir/fortran/msise00_data.f.o
[ 50%] Building Fortran object CMakeFiles/msise00.dir/fortran/msise00_sub.f.o
[ 50%] Built target msise00
Scanning dependencies of target msise00_driver
[ 75%] Building Fortran object CMakeFiles/msise00_driver.dir/fortran/msise00_driver.f90.o
[100%] Linking Fortran executable ../msise00_driver
[100%] Built target msise00_driver
>>> 

Then tests run fine:

(ablate) danielk@IRF033-danielk ~/g/msise00  main*
> pytest
===================================================================================== test session starts =====================================================================================
platform linux -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/danielk/git/msise00
collected 12 items                                                                                                                                                                            

src/msise00/tests/test_ccmc.py ..                                                                                                                                                       [ 16%]
src/msise00/tests/test_grid.py ss                                                                                                                                                       [ 33%]
src/msise00/tests/test_module.py ..                                                                                                                                                     [ 50%]
src/msise00/tests/test_point.py ssss                                                                                                                                                    [ 83%]
src/msise00/tests/test_time_grid.py ss                                                                                                                                                  [100%]

========================================================================== 4 passed, 8 skipped, 4 warnings in 0.40s ===========================================================================

@rtumin2 rtumin2 linked a pull request Dec 27, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant