whatsplay / whatsapp-play

Command line software through which you can play with your WhatsApp. It is having different options to play with your WhatsApp like message blast, online tracking, whatsapp chat..
MIT License
405 stars 217 forks source link

ImportError: cannot import name 'Deque' #278

Closed ahmed-gelemli closed 4 years ago

ahmed-gelemli commented 4 years ago

C:\Users\ahmed\OneDrive\Desktop\whatsapp-play>python -m wplay -h

Traceback (most recent call last):
  File "C:\Program Files\Python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files\Python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\ahmed\OneDrive\Desktop\whatsapp-play\wplay\__main__.py", line 10, in <module>
    from wplay import online_tracker
  File "C:\Users\ahmed\OneDrive\Desktop\whatsapp-play\wplay\online_tracker.py", line 5, in <module>
    from wplay.utils import browser_config
  File "C:\Users\ahmed\OneDrive\Desktop\whatsapp-play\wplay\utils\browser_config.py", line 27, in <module>
    import websockets.client
  File "C:\Program Files\Python36\lib\site-packages\websockets\__init__.py", line 3, in <module>
    from .auth import *
  File "C:\Program Files\Python36\lib\site-packages\websockets\auth.py", line 15, in <module>
    from .server import HTTPResponse, WebSocketServerProtocol
  File "C:\Program Files\Python36\lib\site-packages\websockets\server.py", line 49, in <module>
    from .protocol import WebSocketCommonProtocol
  File "C:\Program Files\Python36\lib\site-packages\websockets\protocol.py", line 18, in <module>
    from typing import (
ImportError: cannot import name 'Deque'

My Python version is: Python 3.6.0

github-actions[bot] commented 4 years ago

Thanks for reporting this :+1: Our maintainers will soon revert back to you

xandao-dev commented 4 years ago

https://stackoverflow.com/questions/60011092/importerror-cannot-import-name-deque

rpotter12 commented 4 years ago

@ahmed-gelemli Install python3.6.1+ version. This will solve your problem.

ahmed-gelemli commented 4 years ago

@ahmed-gelemli Install python3.6.1+ version. This will solve your problem.

I installed Python 3.7, but a new issue appeared. I reported this issue here > #280 .

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ahmed\\wplay\\logs\\wplay.log'