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

AttributeError: 'NoneType' object has no attribute 'load_module' #6518

Closed
johnwshc opened this issue Feb 26, 2018 · 5 comments
Closed

AttributeError: 'NoneType' object has no attribute 'load_module' #6518

johnwshc opened this issue Feb 26, 2018 · 5 comments

Comments

@johnwshc
Copy link

Problem Description

What steps will reproduce the problem?

start up of spyder (in Anaconda distribution) generatets error every time: platform: windows 10, v 1709, build: 16299.248

hardware: Inspiron 5759 intel i7 - 6500U @ 2.5 ghz

Traceback

    module = _import_module_from_path(module_name, plugin_path)
    module = spec.loader.load_module(module_name)
AttributeError: 'NoneType' object has no attribute 'load_module'

Package Versions

  • Spyder 3.2.7 ``
  • Python 3.6.1
  • Qt 5.6.2
  • PyQt5 5.6
  • Windows 10

Dependencies

pyflakes >=0.6.0 :  1.5.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.20.1 (OK)
numpy >=1.7      :  1.12.1 (OK)
sphinx >=0.6.6   :  1.5.6 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
nbconvert >=4.0  :  5.1.1 (OK)
sympy >=0.7.3    :  1.0 (OK)
cython >=0.21    :  0.25.2 (OK)
qtconsole >=4.2.0:  4.3.0 (OK)
IPython >=4.0    :  5.3.0 (OK)
pylint >=0.25    :  1.6.4 (OK)
@ccordoba12
Copy link
Member

Do you have other Spyder plugins installed? Like spyder-notebook or spyder-terminal?

@johnwshc
Copy link
Author

johnwshc commented Feb 26, 2018 via email

@ccordoba12
Copy link
Member

Please run in a terminal (cmd.exe)

spyder --reset

and try again.

@ccordoba12 ccordoba12 changed the title Automatic error report AttributeError: 'NoneType' object has no attribute 'load_module' Feb 26, 2018
@ccordoba12 ccordoba12 added this to the v3.2.8 milestone Feb 26, 2018
@johnwshc
Copy link
Author

johnwshc commented Feb 27, 2018 via email

@ccordoba12
Copy link
Member

@dalthviz, please catch the AttributeError around this line:

https://github.com/spyder-ide/spyder/blob/3.x/spyder/otherplugins.py#L121

and return None in the except part.

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

No branches or pull requests

4 participants