FCP-INDI / C-PAC

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

Error on import CPAC (FCP-INDI-C-PAC-61fa90f) #324

Closed petergoodin closed 10 years ago

petergoodin commented 10 years ago

I recently upgraded from FCP-INDI-C-PAC-f160297 (which worked) to FCP-INDI-C-PAC-61fa90f (which doesn't).

Error output below:

Python 2.7.5+ (default, Feb 27 2014, 19:37:08) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.

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

sgiavasis commented 10 years ago

Hello orcasha,

I'm sorry you've run into trouble. I have a quick question so that we can solve this issue as soon as possible - do you see this error while attempting to install CPAC, or while trying to run it without install from within the project directory?

Thanks for your feedback.

petergoodin commented 10 years ago

Hi,

Sorry for the delay in response. The good news is I've run the Ubuntu script which cleared up problems in running the gui.

Unfortunately now when I try to save a pipeline (making sure to add variables as required) I get the error:

File "/usr/local/lib/python2.7/dist-packages/wx/_windows.py", line 3185, in SetFilterIndex return windows.FileDialog_SetFilterIndex(_args, *_kwargs) wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ../src/gtk/filectrl.cpp(185) in SetFilterIndex(): wxGtkFileChooser::SetFilterIndex - bad filter index

sgiavasis commented 10 years ago

This appears to be an error generated by one of the libraries CPAC depends on (wxPython, specifically- which handles the GUI) and not from the CPAC code itself.

Would you happen to know what version of wx you have installed?

petergoodin commented 10 years ago

Hi,

I've got wx v2.9.4 installed.

Again, sorry for the delay in response.

edit:

Here's the entire python output -

PyAssertionError Traceback (most recent call last) /usr/local/lib/python2.7/dist-packages/CPAC/GUI/interface/windows/config_window.pyc in submit_item(self, event) 695 self, message="Save CPAC configuration file as ...", defaultDir=os.getcwd(), 696 defaultFile=("pipelineconfig%s" % pipelineName), wildcard="YAML files(.yaml, *.yml)|.yaml;*.yml", style=wx.SAVE) --> 697 dlg.SetFilterIndex(2) 698 699 if dlg.ShowModal() == wx.ID_OK:

/usr/local/lib/python2.7/dist-packages/wx/_windows.pyc in SetFilterIndex(_args, _kwargs) 3183 Sets the default filter index, starting from zero. 3184 """ -> 3185 return windows.FileDialog_SetFilterIndex(_args, _kwargs) 3186 3187 def GetMessage(_args, *_kwargs):

PyAssertionError: C++ assertion "Assert failure" failed at ../src/gtk/filectrl.cpp(185) in SetFilterIndex(): wxGtkFileChooser::SetFilterIndex - bad filter index

EDIT 2:

The problem's been fixed by changing the config_window.pyc file and removing the offending line at 697 (at least it saves now). I'll have to check if it runs through.

EDIT 3:

It all seems to work now...

EDIT 4:

Until it got to the anatomy skull strip with the error: freeglut (3dSkullStrip): failed to open display ':1'

Apparently there's a problem with the neurodebian package of AFNI which I had previously installed (see http://lists.alioth.debian.org/pipermail/neurodebian-devel/2014-January/000418.html) but as said in the post, this was easily remedied by using AFNI downloaded from the AFNI servers.