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

Dicom plugin error in bootstrap.py #2836

Closed
dhirschfeld opened this issue Dec 1, 2015 · 9 comments
Closed

Dicom plugin error in bootstrap.py #2836

dhirschfeld opened this issue Dec 1, 2015 · 9 comments
Labels
Milestone

Comments

@dhirschfeld
Copy link
Contributor

Having just pulled the latest master I'm getting the below error in the bootstrap.py script? Are others seeing this?

0x. Enforcing parent console (Windows only)
04. Executing spyder.main()
ERROR: 3rd party plugin import failed for `spyplugins.io.dicom`
Traceback (most recent call last):
  File "C:\Users\Dave\Code\spyder\spyderlib\otherplugins.py", line 74, in _import_plugin
    module = loader.load_module(name)
AttributeError: 'NoneType' object has no attribute 'load_module'
ERROR: 3rd party plugin import failed for `spyplugins.io.dicom`
Traceback (most recent call last):
  File "C:\Users\Dave\Code\spyder\spyderlib\otherplugins.py", line 74, in _import_plugin
    module = loader.load_module(name)
AttributeError: 'NoneType' object has no attribute 'load_module'
Bootstrap completed in 00:00:01.5320
@goanpeca
Copy link
Member

goanpeca commented Dec 1, 2015

What python version ?

@ccordoba12 ccordoba12 added this to the v3.0 milestone Dec 2, 2015
@ccordoba12
Copy link
Member

dicom was renamed to dcm. You just need to run:

rm -R spyplugins/io/dicom

(or the Windows equivalent) to make the error go away :-)


@goanpeca, we need to add simple check in _import_plugin to avoid this error in the future. Could you take care of it?

@goanpeca
Copy link
Member

goanpeca commented Dec 2, 2015

@ccordoba12 Yep, will do, why was it renamed?

@ccordoba12
Copy link
Member

@PierreRaybaut renamed it. I think he did it because the Python module to work with Dicom files changed its name.

@ccordoba12
Copy link
Member

@goanpeca, could you do the PR tomorrow? I need this for beta2 ;-)

@goanpeca
Copy link
Member

goanpeca commented Dec 2, 2015

Give me a sec, will do it now

@ccordoba12
Copy link
Member

Ok, thanks!

@PierreRaybaut
Copy link
Contributor

@goanpeca, @ccordoba12 : I renamed the "dicom" to "dcm" to be coherent with the HDF5 plugin (package name fits the extension name, not the Python library name or the full format name) and above all to fix the AttributeError occuring in the plugin itself (when it tried to import dicom [the DICOM library], it was actually importing spyplugins.io.dicom instead... I think this bug has been there for a long time!).

@dhirschfeld
Copy link
Contributor Author

Thanks @ccordoba12 - with the git tools installed that command worked just fine on windows!

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

No branches or pull requests

4 participants