Module Torch v4.2.1

Hi - We just deployed a fresh 4.2.1 release hoping to avoid some of these issues, but my 3D Flex Train job keeps failing with the following error:

Traceback (most recent call last):
File “cryosparc_master/cryosparc_compute/run.py”, line 83, in cryosparc_compute.run.main
File “/shared/cryosparc/cryosparc_worker/cryosparc_compute/jobs/jobregister.py”, line 442, in get_run_function
runmod = importlib.import_module(“…”+modname, name)
File “/shared/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 1174, in exec_module
File “”, line 219, in _call_with_frames_removed
File “cryosparc_master/cryosparc_compute/jobs/flex_refine/run_train.py”, line 12, in init cryosparc_compute.jobs.flex_refine.run_train
File “cryosparc_master/cryosparc_compute/jobs/flex_refine/flexmod.py”, line 19, in init cryosparc_compute.jobs.flex_refine.flexmod
ModuleNotFoundError: No module named ‘torch’

Is there an easy solution I can pass along to the IT team that set the box up or what is the best fix for this error? If there’s any additional information I can provide let me know.

Bryan Hansne

You still need to carry out the 3DFlex post-install instructions.

cd $CRYOSPARC_HOME
cd cryosparc_worker
./bin/cryosparcw install-3dflex

Then it’ll work.

*Where $CRYOSPARC_HOME is where the cryosparc_master and cryosparc_worker directories are located.

1 Like

Thanks got it working now!

1 Like