petermr / amiclimate

software and material for managing climate knowledge
Apache License 2.0
0 stars 0 forks source link

Error Report for running pytest #2

Open flower1430 opened 6 months ago

flower1430 commented 6 months ago

System Information: WN 10, Python 3.9

Git cloned amiclimate repo

Run the test python -m pytest

The Output


===================================================================== test session starts ======================================================================
platform win32 -- Python 3.9.7, pytest-6.2.5, py-1.11.0, pluggy-1.2.0
rootdir: C:\Users\ADMIN\Desktop\sc_pyami\amiclimate
plugins: anyio-3.6.2
collected 0 items / 1 error

============================================================================ ERRORS ============================================================================
_______________________________________________________________ ERROR collecting test/test_un.py _______________________________________________________________
ImportError while importing test module 'C:\Users\ADMIN\Desktop\sc_pyami\amiclimate\test\test_un.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Program Files\Python39\lib\importlib\__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test\test_un.py:24: in <module>
    from climate.amix import AMIClimate, REPO_DIR
climate\amix.py:18: in <module>
    from amilib.pdf_args import PDFArgs
E   ModuleNotFoundError: No module named 'amilib.pdf_args'
=================================================================== short test summary info ====================================================================
ERROR test/test_un.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================= 1 error in 6.39s =======================================================================
petermr commented 6 months ago

Thank! Looks like we have a load issue. We will work it out. . Don't have code in front of me.

petermr commented 6 months ago

Have you pip installed the latest amilib I think pip upgrade or similar

flower1430 commented 6 months ago

I installed latest amilib with pip install amilib