Hi,
I am running cryosparc through a cluster, interfacing with the GUI using a single workstation. The cluster uses Cuda release 12.0, V12.0.76.
I recently updated to Cryosparc 4.1.2 to make use of 3D Flex, which I’ve been having a lot of fun with and found very informative for my project. The 3D flex jobs all ran well with no reported errors. I had not attempted any 2D classification jobs at this time. I was then forced to move ports on the cluster I am running my Cryosparc instance from. Subsequently, when I attempted to run a 2D classification job, using as Input particles.star file preprocessed and picked in Relion 4.0, in a new project and workspace, I encountered the following error:
Traceback (most recent call last):
** File “cryosparc_master/cryosparc_compute/run.py”, line 83, in cryosparc_compute.run.main**
** File “/lmb/home/nturner/Software/Cryosparc2/cryosparc_worker/cryosparc_compute/jobs/jobregister.py”, line 442, in get_run_function**
** runmod = importlib.import_module(“…”+modname, name)**
** File “/lmb/home/nturner/Software/Cryosparc2/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/class2D/run.py”, line 13, in init cryosparc_compute.jobs.class2D.run**
** File “/lmb/home/nturner/Software/Cryosparc2/cryosparc_worker/cryosparc_compute/engine/init.py”, line 8, in **
** from .engine import * # noqa**
** File “cryosparc_master/cryosparc_compute/engine/engine.py”, line 9, in init cryosparc_compute.engine.engine**
** File “cryosparc_master/cryosparc_compute/engine/cuda_core.py”, line 4, in init cryosparc_compute.engine.cuda_core**
ModuleNotFoundError: No module named ‘pycuda’
I tried rolling back to 4.0.0, but this gave a similar error. I then tried deleting the worker dept folder, and installing 4.1.2 update after which I received these 2 error messages:
Running setup.py install for pycuda … error
** error: subprocess-exited-with-error**
** × Running setup.py install for pycuda did not run successfully.**
** │ exit code: 1**
** ╰─> [137 lines of output]**
** *** I have detected that you have not run configure.py.**
** *** Additionally, no global config files were found.**
** *** I will go ahead with the default configuration.**
** *** In all likelihood, this will not work out.**
** *** See README_SETUP.txt for more information.**
** *** If the build does fail, just re-run configure.py with the**
** *** correct arguments, and then retry. Good luck!**
** *** HIT Ctrl-C NOW IF THIS IS NOT WHAT YOU WANT**
…
############################
** # Package would be ignored #**
** ############################**
** Python recognizes ‘pycuda.cuda’ as an importable package,**
** but it is not listed in the packages
configuration of setuptools.**
** ‘pycuda.cuda’ has been automatically added to the distribution only**
** because it may contain data files, but this behavior is likely to change**
** in future versions of setuptools (and therefore is considered deprecated).**
** Please make sure that ‘pycuda.cuda’ is included as a package by using**
** the packages
configuration field or the proper discovery methods**
** (for example by using find_namespace_packages(...)
/find_namespace:
**
** instead of find_packages(...)
/find:
).**
** You can read more about “package discovery” and “data files” on setuptools**
** documentation page.**
…
gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
** compilation terminated.**
** error: command ‘/lmb/home/nturner/mambaforge/bin/gcc’ failed with exit code 1**
** [end of output]**
The gcc error is despite my having loaded ‘compilers/gcc/12.1.0’ and ‘cuda/12.0’ modules on the cluster I am attempting to update Cryosparc from.
I tried to get around this through pip install pycuda command to the dependencies folder, but got this error message during build wheel:
error: command ‘gcc’ failed with exit status 1
** ----------------------------------------**
** ERROR: Failed building wheel for pycuda**
It would be great if I could receive some help with this.
Many thanks,
Noah