Closed petergoodin closed 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.
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
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?
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.
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.