modulus icon indicating copy to clipboard operation
modulus copied to clipboard

🐛[BUG]: need to install wandb to use datapipes

Open DavidLandup0 opened this issue 9 months ago • 0 comments

Version

0.6.0

On which installation method(s) does this occur?

No response

Describe the issue

Similar to #489 - one needs to install wandb to use datapipes, including for running tests:

cd modulus/test && pytest

The module is imported in the logger, which is generally used throughout the entire codebase:

======================================= test session starts ========================================
platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0
rootdir: /content/modulus/test
plugins: hydra-core-1.3.2, anyio-3.7.1
collected 813 items / 1 error / 1 skipped                                                          

============================================== ERRORS ==============================================
___________________________ ERROR collecting datapipes/test_synthetic.py ___________________________
ImportError while importing test module '/content/modulus/test/datapipes/test_synthetic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
datapipes/test_synthetic.py:20: in <module>
    from modulus.datapipes.climate import (
../modulus/datapipes/climate/__init__.py:17: in <module>
    from .climate import ClimateDatapipe, ClimateDataSourceSpec
../modulus/datapipes/climate/climate.py:48: in <module>
    from modulus.launch.logging import PythonLogger
../modulus/launch/logging/__init__.py:18: in <module>
    from .launch import LaunchLogger
../modulus/launch/logging/launch.py:26: in <module>
    import wandb
E   ModuleNotFoundError: No module named 'wandb'
===================================== short test summary info ======================================
ERROR datapipes/test_synthetic.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================== 1 skipped, 1 error in 6.13s ====================================

Minimum reproducible example

No response

Relevant log output

No response

Environment details

No response

DavidLandup0 avatar May 09 '24 15:05 DavidLandup0