-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot compile ClearMap modules #128
Comments
Instead of building environment first, try ./install_gui.sh -f ClearMapUi89.yml |
The command above is correct but there is a typo. it should be 39 (as in python version 3.9) and not 89
|
Sorry, the code failed in my Ubuntu 22.04.2 LTS, 64-bit system.
Could not solve for environment specs Do you have ways to fix this? |
|
That should not be an issue However, I see that you are using anaconda (and not miniconda) which seems ATM to create issues solving the environment. What is surprising is that you have very very few packages in the base environment (i.e. more like miniconda), while anaconda usually comes with tons of packages which I thought was the reason why it created issues with environment solving. |
Hi, |
Hi, |
Hi,
I am installing clearmap2 freshly. After running
conda env create -f ClearMap.yml
, the environment was successfully built. Then I cd to the ClearMap2 folder and runconda activate ClearMap
python
import ClearMap.Compile
, the error came up:During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyximport.py", line 215, in load_module
inplace=build_inplace, language_level=language_level)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyximport.py", line 191, in build_module
reload_support=pyxargs.reload_support)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 555, in build_extension
depends=ext.depends,
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/ccompiler.py", line 600, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/unixccompiler.py", line 187, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/home/chenlabadmin/anaconda3/envs/ClearMap/bin/gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/media/chenlabadmin/Disk1/Lei/ClearMap2/ClearMap2/ClearMap/Compile.py", line 36, in
import ClearMap.ImageProcessing.Tracing.Trace as trc
File "/media/chenlabadmin/Disk1/Lei/ClearMap2/ClearMap2/ClearMap/ImageProcessing/Tracing/Trace.py", line 29, in
import ClearMap.ImageProcessing.Tracing.TraceCode as code
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyximport.py", line 462, in load_module
language_level=self.language_level)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyximport.py", line 231, in load_module
raise exc.with_traceback(tb)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyximport.py", line 215, in load_module
inplace=build_inplace, language_level=language_level)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyximport.py", line 191, in build_module
reload_support=pyxargs.reload_support)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 555, in build_extension
depends=ext.depends,
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/ccompiler.py", line 600, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/chenlabadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/setuptools/_distutils/unixccompiler.py", line 187, in _compile
raise CompileError(msg)
ImportError: Building module ClearMap.ImageProcessing.Tracing.TraceCode failed: ["distutils.errors.CompileError: command '/home/chenlabadmin/anaconda3/envs/ClearMap/bin/gcc' failed with exit code 1\n"]
gcc is installed in this environment, and which gcc gives me:
/home/chenlabadmin/anaconda3/envs/ClearMap/bin/gcc
echo $PATH gives me:
home/chenlabadmin/anaconda3/envs/ClearMap/bin/gcc:/media/chenlabadmin/Disk1/Lei/elastix-5.1.0-linux/bin:...
Obviously, gcc is installed and recognized.
I even tried different versions of gcc, no luck.
Any suggestions to compile ClearMap?
Thank you!
The text was updated successfully, but these errors were encountered: