Answer the question
In order to leave comments, you need to log in
An error in the code. Can you help fix it?
Hello, while working with the code, I get this error:
Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "C:\Users\(Username)\AppData\Local\Programs\Python\Python310-32\lib \site.py", line 446, in register_readline
import readline
File "C:\Users\(Username)\AppData\Local\Programs\Python\Python310-32\lib\site-packages\readline.py", line 34 , in
rl = Readline()
File "C:\Users\(Username)\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyreadline\rlmain.py", line 422, in __init__
BaseReadline .__init__(self)
File "C:\Users\(Username)\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyreadline\rlmain.py", line 62, in __init__
mode.init_editing_mode(None)
File " C:\Users\(Username)\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyreadline\modes\emacs.py", line 633, in init_editing_mode
self._bind_key('space', self.self_insert)
File "C:\Users\(Username)\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyreadline\modes\basemode.py", line 162, in _bind_key
if not callable(func):
File "C:\Users\(Username)\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyreadline\py3k_compat.py", line 8,in callable
return isinstance(x, collections.Callable)
AttributeError: module 'collections' has no attribute 'Callable'
I'm using virtual environments, all right. Libraries used: python selenium, requests, bs4.
Answer the question
In order to leave comments, you need to log in
pyreadline is not supported in python 3.10 + windows, see:
https://github.com/hylang/hy/issues/2114
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question