incf-nidash / nidmresults-fsl

A python library to export FSL's feat results to NIDM-Results
http://nidm.nidash.org/specs/nidm-results.html
MIT License
3 stars 10 forks source link

AttributeError: 'FSLtoNIDMExporter' object has no attribute 'export_dir' #126

Open yarikoptic opened 6 years ago

yarikoptic commented 6 years ago
$> nidmfsl -o out.nidm /.../_glm_mvpa.feat/          
Traceback (most recent call last):                                                                                                                                                      
  File "/home/yoh/proj/misc/nidmresults-fsl/venvs/dev/bin/nidmfsl", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/yoh/proj/misc/nidmresults-fsl/bin/nidmfsl", line 45, in <module>
    version=args.nidm_version, feat_dir=args.feat_dir, groups=args.group)
  File "/home/yoh/proj/misc/nidmresults-fsl/nidmfsl/fsl_exporter/fsl_exporter.py", line 87, in __init__
    self.cleanup()
  File "/home/yoh/proj/misc/nidmresults-fsl/venvs/dev/local/lib/python2.7/site-packages/nidmresults/exporter.py", line 117, in cleanup
    if os.path.isdir(self.export_dir):
AttributeError: 'FSLtoNIDMExporter' object has no attribute 'export_dir'

here is how I got there on a Debian box (excerpt from zsh history)

10108  git clone https://github.com/incf-nidash/nidmresults-fsl
10109  cd nidmresults-fsl
10110  virtualenv --system-site-packages venvs/dev
10111  source venvs/dev/bin/activate
10112  pip install -e '.'
cmaumet commented 6 years ago

Thanks for reporting @yarikoptic! We need to investigate this. In the meantime, maybe you can use the released version available via pypi?

pip install nidmfsl
cmaumet commented 6 years ago

@yarikoptic: is there any chance you could share _glm_mvpa.feat with us? @TomMaullin has given a go at this but could not reproduce the error so far. Thanks in advance!

yarikoptic commented 6 years ago

Damn me should re-read my own recommendation more often. By trying to minimize the report and remove possibly sensitive information (path) I now forgot which one was it :-/ I will look around and report back