GithubHelp home page GithubHelp logo

ClearMap Module Not Found about clearmap2 HOT 5 CLOSED

jzx33 avatar jzx33 commented on July 26, 2024
ClearMap Module Not Found

from clearmap2.

Comments (5)

SaibotMagd avatar SaibotMagd commented on July 26, 2024 1

The path variable isn't correct. Check the "settings.py" file.

from clearmap2.

jzx33 avatar jzx33 commented on July 26, 2024

Thank you! I checked my "settings.py" file and the path variables, but both the path variables (clearmap_path and elastix_path) led to the cloned ClearMap2 folder(/Programs/ClearMap2/ClearMap and Programs/ClearMap2/ClearMap/External/elastix/build). Is this not the correct path?

from clearmap2.

SaibotMagd avatar SaibotMagd commented on July 26, 2024

Check if environmental path is correct in spyder. "tools->pythonpathmanager"

from clearmap2.

jzx33 avatar jzx33 commented on July 26, 2024

I checked the environment path of spyder, and it read as /opt/anaconda3/envs/ClearMap/bin/spyder (checked through type -a spyder). I also checked the active environments (conda env list), and ClearMap appeared to be active (/opt/anaconda3/envs/ClearMap had an asterisk next to it).

I did some further research and saw that those with similar problems had fixed their problem by running the direct path of Spyder, but after activating Spyder from terminal using the full path name, I still got the same error (import ClearMap.IO.IO as io). Others appeared to have had their problem being that Spyder wasn't installed in their environment and another version was running, but given Spyder's existing path, I'm not sure why it still isn't working?

In order to check that this isn't a computer specific problem, I tried to install ClearMap on my other laptop as well, and ran into the same issue, even after taking the extra precautions as mentioned above.

When I tried to run ( from ClearMap.Environment import *) in the Python Console, I got this error:

clang: error: unsupported option '-fopenmp'
Traceback (most recent call last):
File "/opt/anaconda3/envs/ClearMap/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/opt/anaconda3/envs/ClearMap/lib/python3.7/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/opt/anaconda3/envs/ClearMap/lib/python3.7/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/opt/anaconda3/envs/ClearMap/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

I saw that this error occurred before, and I'll try to follow the instructions listed to fix it, and will update my results. Thank you for your help!

from clearmap2.

JacobBumgarner avatar JacobBumgarner commented on July 26, 2024

clang: error: unsupported option '-fopenmp'

Did you ever resolve the '-fopenmp' issue that you were getting? Unfortunately I'm getting the same exact issue.

from clearmap2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.