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

pytest -xv fails: _ ERROR collecting CESM-release-cesm2.1.5/cime/tools/load_balancing_tool/tests/load_balancing_test.py _ #67

Open
ManuelFossa opened this issue Sep 3, 2024 · 0 comments

Comments

@ManuelFossa
Copy link

Hello,

I installed psy-view following the procedure given for linux on the website, using conda (miniconda3), but running the tests fails with the following message: _ ERROR collecting CESM-release-cesm2.1.5/cime/tools/load_balancing_tool/tests/load_balancing_test.py _ miniconda3/envs/psyplot/lib/python3.11/site-packages/_pytest/python.py:493: in importtestmodule mod = import_path( miniconda3/envs/psyplot/lib/python3.11/site-packages/_pytest/pathlib.py:582: in import_path importlib.import_module(module_name) miniconda3/envs/psyplot/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1204: in _gcd_import ??? <frozen importlib._bootstrap>:1176: in _find_and_load ??? <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:690: in _load_unlocked ??? miniconda3/envs/psyplot/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:165: in exec_module source_stat, co = _rewrite_test(fn, self.config) miniconda3/envs/psyplot/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:345: in _rewrite_test tree = ast.parse(source, filename=strfn) miniconda3/envs/psyplot/lib/python3.11/ast.py:50: in parse return compile(source, filename, mode, flags, E File "/home/fossama1/CESM-release-cesm2.1.5/cime/tools/load_balancing_tool/tests/load_balancing_test.py", line 17 E except ImportError, e: E ^^^^^^^^^^^^^^ E SyntaxError: multiple exception types must be parenthesized

In addition all files tested throw the warning PytestCollectionWarning: cannot collect test class 'TestSuiteSpec' because it has a __init__ constructor (from: CESM-release-cesm2.1.5/cime/scripts/fortran_unit_testing/python/test_xml_test_list.py) class TestSuiteSpec(object):

psy-view GUI runs, and will load my files, but related or not to the tests failing, when I load my data which is from ERA5, and try to change parameter or just play the animation, I have error "cannot remove artist" . Any help?

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

1 participant