You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
File "C:\Users\...\Jarvis\env\lib\site-packages\pyreadline\py3k_compat.py", line 8, in callable
return isinstance(x, collections.Callable)
AttributeError: module 'collections' has no attribute 'Callable'
How to reproduce:
Clone from the main branch.
Run the command python installer
Run the command ./jarvis
Expected behaviour:
No AttributeError.
Machine details:
Windows 10 Pro, Running commands from Powershell within VSCode.
Nevermind, realised that the problem lies in the code for the pyreadline module itself created in the 'env' folder during installation, hence it can't be 'fixed'. If there is a workaround, please let me know.
This issue is a bit old, but I found a Python 3 compatible version of pyreadline at https://github.com/pyreadline3/pyreadline3 that fixes the collections.Callable problem. I have a fork that replaces the deprecated version with the newer one and replaces the outdated import in imgur.py.
Error message:
How to reproduce:
python installer
./jarvis
Expected behaviour:
No AttributeError.
Machine details:
Windows 10 Pro, Running commands from Powershell within VSCode.
Proposed Fix:
collections.Callable has been moved to collections.abc.Callable
Due to using depreciated functions.
The text was updated successfully, but these errors were encountered: