Comments (9)
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.
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.
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.
Another approach could be try and __import__
, instead of dir
?
from duecredit.
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.
at least our tests didn't detect anything 3.5 special https://travis-ci.org/duecredit/duecredit/builds/127833554
from duecredit.
ok -- replicated even with python2.7. we will look into it
from duecredit.
I wonder if the nipype injector makes sense now that we will use duecredit directly from nipype.
from duecredit.
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)
- Integration with citepy CSL data classes HOT 3
- References are not deduplicated in a bibtex summary HOT 3
- Ci testing fails
- How to cite duecredit? HOT 5
- Use DueCredit for data files HOT 2
- Deprecation warning for due credit. HOT 3
- [wishlist] interface to templating engines (e.g. ninja) to provide users a flexible way to render reports
- [wishlist] option (env var) to not load existing .duecredit.p upon start
- Help adding duecredit HOT 20
- Enable duecredit by default, but without injections
- SciPy injection is outdated HOT 3
- Switch from WARNING to DEBUG for outdated injections etc
- Best practices for integrating conditional dcite decorators into Nipype workflows? HOT 2
- DueCredit internal failure while running <function DueSwitch.dump ... on Windows 10 HOT 5
- Improve usage in Jupyter HOT 2
- Internal error: Both inactive and active collectors should be provided HOT 1
- [wishlist] Can duecredit be exported as codemeta? HOT 1
- DueCredit `cite()` doesn't work and `dcite()` works, but not always HOT 5
- Duecredit API HOT 1
- inactively `@due.dcite`-decorated classes become unpicklable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duecredit.