question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Mar 4, 2018

@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.

0reactions
johnwshccommented, Feb 27, 2018

Same result

On February 26, 2018, at 12:53 PM, Carlos Cordoba notifications@github.com wrote:

Please run in a terminal (cmd.exe)

spyder --reset

and try again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

{“api_version”:“1.0”,“publisher”:{“api_key”:“05dde50f1d1a384dd78767c55493e4bb”,“name”:“GitHub”},“entity”:{“external_key”:“github/spyder-ide/spyder”,“title”:“spyder-ide/spyder”,“subtitle”:“GitHub repository”,“main_image_url”:“https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png”,“avatar_image_url”:“https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png”,“action”:{“name”:“Open in GitHub”,“url”:“https://github.com/spyder-ide/spyder”}},“updates”:{“snippets”:[{“icon”:“PERSON”,“message”:“@ccordoba12 in #6518: Please run in a terminal (cmd.exe)\r\n\r\n spyder --reset\r\n\r\nand try again.”}],“action”:{“name”:“View Issue”,“url”:“https://github.com/spyder-ide/spyder/issues/6518#issuecomment-368589015”}}}

Read more comments on GitHub >

github_iconTop Results From Across the Web

'NoneType' object has no attribute 'load_module'
This means importer.find_module(modname). returns nothing. Applying .find_module(modname) on importer object gave no result.
Read more >
AttributeError: 'NoneType' object has no attribute 'AsValueString
Attribute errors in Python are generally raised when you try to access or call an attribute that a particular object type doesn't possess....
Read more >
AttributeError: 'NoneType' object has no attribute ...
I had been trying to modify the onPrincipalAxes() of the SegmentGeometry module to fit my use. def troubleGetName(selectedSeg): sourceNode = ...
Read more >
'NoneType' object has no attribute 'values' (Odoo 13)
AttributeError means that there was an Error that had to do with an Attribute request. In general, when you write x.y, y is...
Read more >
'NoneType' object has no attribute '_inc_path' - Google Groups
There's no way of knowing for sure how this occurred - it may have been caused by an earlier error at the point...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found