Skip to content
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

Error using qap_measures_pipeline #120

Open
tragus1 opened this issue Apr 5, 2018 · 11 comments
Open

Error using qap_measures_pipeline #120

tragus1 opened this issue Apr 5, 2018 · 11 comments

Comments

@tragus1
Copy link

tragus1 commented Apr 5, 2018

Traceback (most recent call last):
File "/home/demenzbild/anaconda2/bin/qap_measures_pipeline.py", line 10, in
obj.run()
File "/home/demenzbild/anaconda2/lib/python2.7/site-packages/qap/cli.py", line 552, in run
from nipype.pipeline.plugins.callback_log import log_nodes_cb
ImportError: No module named callback_log

Can you pleas help me solving this issue?

Thanks

@rpcary
Copy link

rpcary commented Aug 6, 2018

Same problem.
Suspected it was a problem with the nipype fork (nipype==1.0.4.dev0) that came with qap==1.0.8. If I go into python, the nipype 'plugins' module looks ...incomplete. Not sure if I'm missing something there, but I don't see any failures in the installation.
i.e. from python:
import nipype.pipeline.plugins

dir(nipype.pipeline.plugins)
['doc', 'file', 'name', 'package', 'path']

Also, checking .../python2.7/site-packages/nipype-1.0.4_dev-py2.7.egg/nipype/pipeline/plugins/
there is nothing by the name (or via grep containing) "callback_log".

Furthermore, trying a different version of nipype (0.12.1 vs. 1.0.4.dev0), gives me a different error (related to poor option selection in my configuration settings), and the process at least moves on to creating folders.

Running on a CentOS Linux release 7.5.1804 with python 2.7.

@stefanotambalo
Copy link

Same problem here.

Thanks for any new input on this.

@anibalsolon
Copy link
Member

anibalsolon commented Sep 5, 2018

Hi @tragus1 @rpcary @stefanotambalo

You should install nipype==0.13.1 to get it working:

pip uninstall nipype
pip install nipype==0.13.1

It will remedy the situation. We are working on improve this scenario.

@stefanotambalo
Copy link

stefanotambalo commented Sep 5, 2018 via email

@stefanotambalo
Copy link

Hi, I'm still struggling with runtime errors.
I'm running QAP in a 2.7 virtual env, when I launch the script qap_measures_pipeline, it systematically crashes returning (not considering FutureWarning):

[...]
from nipype.pipeline.plugins.callback_log import log_nodes_cb
ImportError: No module named callback_log
[...]

from cli.py.

Any suggestion/solution?
Thanks in advance.

@anibalsolon
Copy link
Member

anibalsolon commented Sep 6, 2018 via email

@stefanotambalo
Copy link

Hi Anibal, sorry for the huge delay.
Here's the output in 2.7 virtual env:

/home/*********/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
0.12.1

Thanks!

@anibalsolon
Copy link
Member

Hi @stefanotambalo

the output suggests that you are using an older version of nipype (0.12.1). We recommend you to install the version 0.13.1:

pip install nipype==0.13.1

Thank you

@stefanotambalo
Copy link

That's what I did following your previous message. Then I downgraded to 0.12 for some reasons. Now I've put 0.13 back on, but still running into the same problem.

Here's the entire output:

/home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from floattonp.floatingis deprecated. In future, it will be treated asnp.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters /home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/bids/grabbids/__init__.py:6: FutureWarning: grabbids has been renamed to layout in version 0.6.5, and will be removed in version 0.8 warnings.warn("grabbids has been renamed to layout in version 0.6.5, and will be removed in version 0.8", FutureWarning) Traceback (most recent call last): File "/home/stefano/anaconda3/envs/py27/bin/qap_measures_pipeline.py", line 4, in <module> __import__('pkg_resources').run_script('qap==1.0.8b0', 'qap_measures_pipeline.py') File "/home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 658, in run_script self.require(requires)[0].run_script(script_name, ns) File "/home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1438, in run_script exec(code, namespace, namespace) File "/home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/qap-1.0.8b0-py2.7.egg/EGG-INFO/scripts/qap_measures_pipeline.py", line 10, in <module> obj.run() File "/home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/qap-1.0.8b0-py2.7.egg/qap/cli.py", line 552, in run from nipype.pipeline.plugins.callback_log import log_nodes_cb ImportError: No module named callback_log

Can you spot something useful to fix the problem?
Thanks.
S.

@anibalsolon
Copy link
Member

Hi @stefanotambalo

it still looks like a nipype version problem.

To reproduce the error outside qap, you can run:

import nipype 
print("Nypipe version", nipype.__version__) 
print(nipype.__file__)
from nipype.pipeline.plugins.callback_log import log_nodes_cb

Please send us the output so we can try to identify the problem origin.

@stefanotambalo
Copy link

Hi @anibalsolon,

here's the output:

/home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from floattonp.floatingis deprecated. In future, it will be treated asnp.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters ('Nypipe version', u'0.13.1') /home/stefano/anaconda3/envs/py27/lib/python2.7/site-packages/nipype/__init__.pyc
Is it useful?
S.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants