Skip to content

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

@ManuelFossa

Description

@ManuelFossa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions