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

ImportError when trying to load third-party plugins #7259

Closed
amsesk opened this issue Jun 6, 2018 · 4 comments
Closed

ImportError when trying to load third-party plugins #7259

amsesk opened this issue Jun 6, 2018 · 4 comments

Comments

@amsesk
Copy link

amsesk commented Jun 6, 2018

Problem Description

I'm not entirely sure what the effects of this error are, and its doesn't seem to have a negative impact on my uses for spyder. The GUI still opens successfully and I can load, edit, and save files. I figured I'd report this error just in case its resolution can be useful for others.

Error appeared more or less randomly today and is raised everytime I start it up now. Error first appeared on v3.2.6, but is still appearing after update to v3.2.8 today.

Traceback

  File "/Users/kevinamses/miniconda2/lib/python2.7/site-packages/spyder/otherplugins.py", line 85, in _import_plugin
    module = _import_module_from_path(module_name, plugin_path)
  File "/Users/kevinamses/miniconda2/lib/python2.7/site-packages/spyder/otherplugins.py", line 107, in _import_module_from_path
    info = imp.find_module(module_name, [plugin_path])
ImportError: No module named spyder_projects

Package Versions

  • Spyder version: 3.2.8
  • Python version: 2.7.14
  • Qt version: 5.6.2
  • PyQt5 version: 5.6
  • Operating system: Darwin 15.6.0

Dependencies

pyflakes >=0.5.0  :  1.6.0 (OK)
pycodestyle >=2.3 :  2.3.1 (OK)
pygments >=2.0    :  2.2.0 (OK)
pandas >=0.13.1   :  0.20.3 (OK)
numpy >=1.7       :  1.13.3 (OK)
sphinx >=0.6.6    :  1.6.3 (OK)
rope >=0.9.4      :  0.10.5 (OK)
jedi >=0.9.0      :  0.10.2 (OK)
psutil >=0.3      :  5.4.0 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  None (NOK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0;<6.0:  5.4.1 (OK)
pylint >=0.25     :  1.7.4 (OK)
@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Jun 6, 2018

Thanks for reporting; we haven't seen this particular bug before.. Have you installed any Spyder plugins? You updated Spyder with conda, not pip, correct? Do the commands in the Projects menu function? Can you start Spyder from the Terminal (by typing spyder) after first typing export SPYDER_DEBUG=3 to enable debug mode, and see if there is any relevant output and exactly where in the startup sequence the error occurred?

Also, please post the information listed in relevant subsection of the Spyder Troubleshooting Guide as a comment to this issue, and we'll try to help if we can. Thanks, and best of luck!

@ccordoba12 ccordoba12 added this to the v3.3 milestone Jun 6, 2018
@ccordoba12 ccordoba12 changed the title Automatic error report ImportError when trying to load third-party plugins Jun 6, 2018
@ccordoba12
Copy link
Member

Thanks for reporting. We'll fix this in our next version.

@amsesk
Copy link
Author

amsesk commented Jun 6, 2018

Hello. Yes, I used conda to install and update spyder. The same error occurs when loading with SPYDER_DEBUG=3, just that no error notification window is opened, and the error appears in the command line instead.

ERROR: 3rd party plugin import failed forspyder_projects Traceback (most recent call last): File "/Users/kevinamses/miniconda2/lib/python2.7/site-packages/spyder/otherplugins.py", line 85, in _import_plugin module = _import_module_from_path(module_name, plugin_path) File "/Users/kevinamses/miniconda2/lib/python2.7/site-packages/spyder/otherplugins.py", line 107, in _import_module_from_path info = imp.find_module(module_name, [plugin_path])

I haven't installed any 3rd party plugins, which is weird.

The buttons in the project menu appear to still work (ie I can create a new project), but I don't use these functions, so I can't fully test them out to see if/where they stop working.

I think I've posted all of the relevant information outlined in your link, but let me know if there is anything else and I will try to get you what you need.

Kevin

@CAM-Gerlach
Copy link
Member

Thanks @amsesk , looks like @ccordoba12 is already on top of things and it'll be fixed shortly. We appreciate your help!

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

3 participants