argonne-lcf / balsam

High throughput workflows and automation for HPC
77 stars 21 forks source link

ModuleNotFoundError only on JupyterHub #336

Closed asnaylor closed 1 year ago

asnaylor commented 1 year ago

When i run this line on JupyterHub in a cell:

from balsam.api import ApplicationDefinition

I get this error message:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 from balsam.api import ApplicationDefinition

File ~/.conda/envs/balsam/lib/python3.9/site-packages/balsam/__init__.py:1
----> 1 from balsam.util import config_root_logger
      3 __version__ = "0.7.0.a21"
      4 config_root_logger()

File ~/.conda/envs/balsam/lib/python3.9/site-packages/balsam/util/__init__.py:1
----> 1 from .log import Spinner, config_file_logging, config_root_logger, validate_log_level
      2 from .process import Process
      3 from .sighandler import SigHandler

File ~/.conda/envs/balsam/lib/python3.9/site-packages/balsam/util/log.py:12
      9 from pathlib import Path
     10 from typing import Any, Optional, TextIO, Union
---> 12 import multiprocessing_logging  # type: ignore
     14 from .sighandler import SigHandler
     17 class PeriodicMemoryHandler(logging.handlers.MemoryHandler):

ModuleNotFoundError: No module named 'multiprocessing_logging'

What's odd is that I don't get an error message when i run that from either in a python script or in an interactive python session.

Python 3.9.16
balsam==0.7.0a21
asnaylor commented 1 year ago

Determined the issue was due to a problem between move python installs between cori and perlmutter.