Giter Club home page Giter Club logo

Comments (9)

yarikoptic avatar yarikoptic commented on July 22, 2024

2016-05-04 16:14:32,911 [WARNING] Could not find fsl in module <module 'nipype.interfaces' from '/home/alexandre/Software/nipype/nipype/interfaces/init.py'>: module 'nipype.interfaces' has no attribute 'fsl' (injector.py:193)
that is the location -- "injector.py:193" ;)

from duecredit.

yarikoptic avatar yarikoptic commented on July 22, 2024

could you give a minimal snapshot (or just point to your branch of nipype or whatnot) on how to provoke such behavior? the problem is that we are checking too early since fsl not being imported yet is not available within interfaces:

In [1]: import nipype.interfaces

In [2]: dir(nipype.interfaces)
Out[2]: 
['DataGrabber',
 'DataSink',
 'Function',
 'IdentityInterface',
 'Merge',
 'Rename',
 'Select',
 'SelectFiles',
 '__builtins__',
 '__doc__',
 '__docformat__',
 '__file__',
 '__name__',
 '__package__',
 '__path__',
 'base',
 'io',
 'traits_extension',
 'utility']

*In [3]: import nipype.interfaces.fsl

In [4]: dir(nipype.interfaces)
Out[4]: 
['DataGrabber',
 'DataSink',
 'Function',
 'IdentityInterface',
 'Merge',
 'Rename',
 'Select',
 'SelectFiles',
 '__builtins__',
 '__doc__',
 '__docformat__',
 '__file__',
 '__name__',
 '__package__',
 '__path__',
 'base',
 'fsl',
 'io',
 'traits_extension',
 'utility']

from duecredit.

alexsavio avatar alexsavio commented on July 22, 2024

Ooops I see, injector.py line 193. 👍

I am using the nipype master branch and Python 3.5. I will have a look too.

from duecredit.

alexsavio avatar alexsavio commented on July 22, 2024

Another approach could be try and __import__, instead of dir ?

from duecredit.

yarikoptic avatar yarikoptic commented on July 22, 2024

well -- the point is that duecredit should nohow interfer or do anything custom (such as imports)... matteo has mentioned that you are using python 3.5 which we apparently don't travis against yet... we will rerun our tests under 3.5 (#79) and see it could be something specific to it

interestingly that nipype/init.py also doesn't import those submodules... so it would be interesting to replicate to see what causes the warnings and how dangerous it is all is or could be ignored ;-)

from duecredit.

yarikoptic avatar yarikoptic commented on July 22, 2024

at least our tests didn't detect anything 3.5 special https://travis-ci.org/duecredit/duecredit/builds/127833554

from duecredit.

yarikoptic avatar yarikoptic commented on July 22, 2024

ok -- replicated even with python2.7. we will look into it

from duecredit.

alexsavio avatar alexsavio commented on July 22, 2024

I wonder if the nipype injector makes sense now that we will use duecredit directly from nipype.

from duecredit.

yarikoptic avatar yarikoptic commented on July 22, 2024

you are correct -- nipy injection would not be needed as soon as nipype supports it directly.
So far I thought to support decision on either to inject or not based on the module version, but may be I could/should add additional ability to check, e.g. if nipype.due is available etc, so even in development snapshots could avoid unnecessary injection.
But I believe that this issue is independent to the warnings -- they poped up even without trying your PR with proper duecredit entry

from duecredit.

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.