FCP-INDI / C-PAC

Configurable Pipeline for the Analysis of Connectomes
https://fcp-indi.github.io/
GNU Lesser General Public License v3.0
62 stars 40 forks source link

Importerror: CPAC #350

Closed zhangyu2ustc closed 10 years ago

zhangyu2ustc commented 10 years ago

Dear all: I am a new user of the CPAC-package. I have installed the package using the script "cpac_install_v0.2.sh". It reported no errors during installation. But when I imported the module, I got the following error messages: $ python -c "import CPAC" Traceback (most recent call last): File "", line 1, in File "CPAC/init.py", line 18, in import anat_preproc, \ File "CPAC/network_centrality/init.py", line 1, in from resting_state_centrality import create_resting_state_graphs,\ File "CPAC/network_centrality/resting_state_centrality.py", line 5, in from CPAC.network_centrality.core import File "CPAC/network_centrality/core.py", line 14, in from CPAC.network_centrality.thresh_and_sum import ImportError: No module named thresh_and_sum

Could you help me fix this? Thank you very much. Best, Yu.

stymy commented 10 years ago

Hi Yu,

Are you by any chance running CPAC from within the install directory of CPAC?

stymy commented 10 years ago

Also, what version of Cython are you running? You can check this by running cython --version from your terminal. It should be greater than 0.12

zhangyu2ustc commented 10 years ago

Hi stymy: I have successfully install the CPAC package by re-installing the Cython using the "easy_install" command. Now, I can successfully import the CPAC in python. Thank you very much for your help. Besides, does the CPAC package have any specific requirements on the version of python? my python version is v.2.7.4.

Best, Yu

stymy commented 10 years ago

2.7.4 is sufficient. I'm glad that this helped. Please post again if you run into more questions!

On Wed, May 21, 2014 at 2:19 AM, Yu Zhang notifications@github.com wrote:

Hi stymy: I have successfully install the CPAC package by re-installing the Cython using the "easy_install" command. Now, I can successfully import the CPAC in python. Thank you very much for your help. Besides, does the CPAC package have any specific requirements on the version of python? my python version is v.2.7.4. Best,

Yu

Reply to this email directly or view it on GitHub: https://github.com/FCP-INDI/C-PAC/issues/350#issuecomment-43715978