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/”, line 83, in
File “/shared/cryosparc/cryosparc_worker/cryosparc_compute/jobs/”, 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/”, 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/”, line 12, in init
File “cryosparc_master/cryosparc_compute/jobs/flex_refine/”, line 19, in init
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_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