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.

Starting IPython - Attribute Error: 'module' object has no attribute 'error'

See original GitHub issue

I tried to search a lot online to find if somebody had the same issue. But I don’t find anything with this problem.

Whenever I type ipython in my terminal, it ends up with the following error, and terminal won’t go back to prompt. Jupyter-notebook works fine. Spyder is launching fine. Python interpreter has no issues. It is only with IPython.

$  ipython
Python 2.7.11 |Anaconda custom (64-bit)| (default, Dec  6 2015, 18:08:32) 
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/as/anaconda2/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/as/anaconda2/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/as/anaconda2/lib/python2.7/site-packages/prompt_toolkit/eventloop/inputhook.py", line 66, in thread
    input_is_ready_func(wait=True)
  File "/home/as/anaconda2/lib/python2.7/site-packages/prompt_toolkit/eventloop/posix.py", line 101, in ready
    return self._ready_for_reading(current_timeout[0] if wait else 0) != []
  File "/home/as/anaconda2/lib/python2.7/site-packages/prompt_toolkit/eventloop/posix.py", line 184, in _ready_for_reading
    r, _, _ =_select(read_fds, [], [], timeout)
  File "/home/as/anaconda2/lib/python2.7/site-packages/prompt_toolkit/eventloop/posix.py", line 279, in _select
    except select.error as e:
AttributeError: 'module' object has no attribute 'error'
  • The only recent change I made on my machine is, as far as I could remember, installing PyDev plugins for Eclipse and configuring interpreters there with Jython.
  • And I installed R along with IRKernel for Jupyter-notebook. That works fine too.

Please help.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
takluyvercommented, Oct 2, 2016

Great, glad you got it solved.

For future reference, this probably came about when you had prompt_toolkit installed by conda, and something you did with pip installed a newer version over it. They don’t always play well together. It’s ideal to remove a package with one before trying to install it with the other, but with dependencies, that’s not always possible.

3reactions
takluyvercommented, Sep 27, 2016

Do you have a file called select.py or select/__init__.py in the working directory? If so, it’s clashing with a standard library module.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPython "AttributeError: 'module' object has no attribute '/Users ...
I run the following code in IPython, it turns out a mistake which I can't understand: AttributeError: 'module' object has no attribute ......
Read more >
AttributeError: 'module' object has no attribute - Stack Overflow
I experienced this error because the module was not actually imported. The code looked like this: import ...
Read more >
AttributeError: module 'X' has no attribute 'Y' in Python
To solve the Python "AttributeError: module has no attribute", make sure you haven't named your local modules with names of remote modules, e.g. ......
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >
'module' object has no attribute in 3minutes - YouTube
" AttributeError : object has no attribute "Understand how to trouble shoot the error message. Examples used in the video:When you append a ......
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