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

'NoneType' is not iterable in introspection/fallback_plugin.py #2313

Closed
Nodd opened this issue Apr 10, 2015 · 2 comments
Closed

'NoneType' is not iterable in introspection/fallback_plugin.py #2313

Nodd opened this issue Apr 10, 2015 · 2 comments

Comments

@Nodd
Copy link
Contributor

Nodd commented Apr 10, 2015

Description

  • What steps will reproduce the problem?
    1.
    2.
    3.
  • What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "/usr/local/anaconda/lib/python2.7/site-packages/spyderlib/utils/introspection/plugin_manager.py", line 342, in _introspection_complete
Traceback (most recent call last):
threads  File "/usr/local/anaconda/lib/python2.7/site-packages/spyderlib/utils/introspection/plugin_manager.py", line 342, in _introspection_complete
    result = self.plugins['fallback'].get_definition(info)
  File "/usr/local/anaconda/lib/python2.7/site-packages/spyderlib/utils/introspection/fallback_plugin.py", line 72, in get_definition
    if '.' in token:
TypeError: argument of type 'NoneType' is not iterable
    result = self.plugins['fallback'].get_definition(info)
  File "/usr/local/anaconda/lib/python2.7/site-packages/spyderlib/utils/introspection/fallback_plugin.py", line 72, in get_definition
    if '.' in token:
TypeError: argument of type 'NoneType' is not iterable
  • Please provide any additional information below
    I was casually editing a python script, the error happened right after a copy-paste.
    I just noticed that spyder is not up to date, maybe it has already been corrected.

Version and main components

  • Spyder Version: 2.3.3
  • Python Version: 2.7.9
  • Qt Version : 4.8.5, PyQt4 (API v2) 4.10.4 on Linux

Optional dependencies

pyflakes >=0.5.0: 0.8.1 (OK)
pep8 >=0.6 : 1.5.7 (OK)
IPython >=1.0 : 3.0.0 (OK)
zmq >=2.1.11 : 14.5.0 (OK)
pygments >=1.6 : 2.0.2 (OK)
pandas >=0.13.1 : 0.14.1 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
psutil >=0.3 : 2.1.1 (OK)
jedi >=0.8.1 : 0.8.1-final0 (OK)
rope >=0.9.2 : 0.9.4 (OK)
matplotlib >=1.0: 1.4.3 (OK)
sympy >=0.7.0 : 0.7.5 (OK)
pylint >=0.25 : 1.2.1 (OK)

@goanpeca
Copy link
Contributor

Also having this issue... completion in Master seems to be kinda of broken... it takes too long (when it works) @blink1073

@blink1073
Copy link
Contributor

Yikes! I'm on it.

ccordoba12 added a commit that referenced this issue Apr 16, 2015
Use empty string instead of None for fallback.

Fixes #2313.
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