DeepDriveMD / DeepDriveMD-pipeline

DeepDriveMD: Deep-Learning Driven Adaptive Molecular Simulations
MIT License
15 stars 9 forks source link

Broken conda env: ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) #44

Open lee212 opened 3 years ago

lee212 commented 3 years ago

Describe the bug importing wandb error from train.py

To Reproduce Steps to reproduce the behavior:

  1. HPC Platform: ORNL Summit
  2. Commands run
    /gpfs/alpine/world-shared/chm155/hrlee/conda/pytorch-1.7.1/bin/python 
    "DeepDriveMD-pipeline/deepdrivemd/models/aae/train.py" "-c"
    "runs/bba-test-3rd/machine_learning_runs/stage0000/task0000/stage0000_task0000.yaml"

Screenshots

Traceback (most recent call last):
  File "/gpfs/alpine/world-shared/chm155/hrlee/git/DeepDriveMD-pipeline/deepdrivemd/models/aae/train.py", line 6, in <module>
    import wandb
  File "/gpfs/alpine/chm155/world-shared/hrlee/conda/openmm/lib/python3.7/site-packages/wandb/__init__.py", line 38, in <module>
    from wandb import sdk as wandb_sdk
  File "/gpfs/alpine/chm155/world-shared/hrlee/conda/openmm/lib/python3.7/site-packages/wandb/sdk/__init__.py", line 12, in <module>
    from .wandb_init import init  # noqa: F401
  File "/gpfs/alpine/chm155/world-shared/hrlee/conda/openmm/lib/python3.7/site-packages/wandb/sdk/wandb_init.py", line 29, in <module>
    from .backend.backend import Backend
  File "/gpfs/alpine/chm155/world-shared/hrlee/conda/openmm/lib/python3.7/site-packages/wandb/sdk/backend/backend.py", line 19, in <module>
    from ..internal.internal import wandb_internal
  File "/gpfs/alpine/chm155/world-shared/hrlee/conda/openmm/lib/python3.7/site-packages/wandb/sdk/internal/internal.py", line 27, in <module>
    import psutil
  File "/gpfs/alpine/chm155/world-shared/hrlee/conda/openmm/lib/python3.7/site-packages/psutil/__init__.py", line 99, in <module>
    from . import _pslinux as _psplatform
  File "/gpfs/alpine/chm155/world-shared/hrlee/conda/openmm/lib/python3.7/site-packages/psutil/_pslinux.py", line 26, in <module>
    from . import _psutil_linux as cext
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) 

It needs to evaluate the existing Conda env.