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 'execute' #5053

Closed
ghost opened this issue Aug 25, 2017 · 6 comments
Closed

AttributeError: 'NoneType' object has no attribute 'execute' #5053

ghost opened this issue Aug 25, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 25, 2017

Description

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below

File "C:\Users\cem\Desktop\WinPython-64bit-3.6.2.0Qt5\python-3.6.2.amd64\lib\site-packages\spyder\plugins\ipythonconsole.py", line 876, in run_script
self.execute_code(line, current_client, clear_variables)
File "C:\Users\cem\Desktop\WinPython-64bit-3.6.2.0Qt5\python-3.6.2.amd64\lib\site-packages\spyder\plugins\ipythonconsole.py", line 922, in execute_code
sw.execute(to_text_string(to_text_string(lines)))
File "C:\Users\cem\Desktop\WinPython-64bit-3.6.2.0Qt5\python-3.6.2.amd64\lib\site-packages\qtconsole\history_console_widget.py", line 47, in execute
source, hidden, interactive)
File "C:\Users\cem\Desktop\WinPython-64bit-3.6.2.0Qt5\python-3.6.2.amd64\lib\site-packages\qtconsole\console_widget.py", line 631, in execute
self._execute(source, hidden)
File "C:\Users\cem\Desktop\WinPython-64bit-3.6.2.0Qt5\python-3.6.2.amd64\lib\site-packages\qtconsole\frontend_widget.py", line 294, in _execute
msg_id = self.kernel_client.execute(source, hidden)
AttributeError: 'NoneType' object has no attribute 'execute'

Version and main components

  • Spyder Version: 3.2.1.dev0
  • Python Version: 3.6.2
  • Qt Versions: 5.9.1, PyQt5 5.9 on Windows

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (O
@ccordoba12
Copy link
Member

Please post a screenshot of the IPython console when this error pops up.

@ccordoba12 ccordoba12 mentioned this issue Aug 28, 2017
@ccordoba12 ccordoba12 changed the title error in pyqt5 Error when starting the IPython console in PyQt 5.9 Aug 28, 2017
@ccordoba12
Copy link
Member

@stonebig, are you able to reproduce this one? It looks like a Qt issue to me.

@ccordoba12 ccordoba12 changed the title Error when starting the IPython console in PyQt 5.9 AttributeError: 'NoneType' object has no attribute 'execute' Sep 13, 2017
@marcelotduarte
Copy link

marcelotduarte commented Sep 14, 2017

I referred to this error in another issue (#5154). Then I discovered that the error, in my case, was occurring because I had set up another python interpreter, different from the default, and it did'nt have the ipython package.

@ccordoba12
Copy link
Member

@marcelotduarte, thanks for letting us know about it! Finally we have an explanation for this!

We'll take a look at it in 3.2.4

@ccordoba12
Copy link
Member

@marcelotduarte, I can't reproduce this. Please post the exact steps you followed to set up your another python interpreter.

@marcelotduarte
Copy link

Configure:
image
Close the sypder
Reopen
image

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

2 participants