sukeesh / Jarvis

Personal Assistant for Linux and macOS
MIT License
2.99k stars 1.03k forks source link

Bug: AttributeError: module 'collections' has no attribute 'Callable' #1157

Open mime-r opened 9 months ago

mime-r commented 9 months ago

Error message:

...
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:

  1. Clone from the main branch.
  2. Run the command python installer
  3. Run the command ./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.

mime-r commented 9 months ago

I know how to fix it, so I assign it to myself lol.

mime-r commented 9 months ago

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.