SealedSaucer / Online-Forever

Make Your Discord Account 24/7 Online!
https://www.youtube.com/watch?v=-soq0pOqP_4
GNU General Public License v3.0
955 stars 472 forks source link

missing 3 required positional arguments #43

Closed Samekas123 closed 3 months ago

Samekas123 commented 4 months ago

Using a fresh ubuntu 22 install and getting the following error:

I have already done pip install websocket-client as on the documentation but it was already installed.

Traceback (most recent call last):
  File "/root/Online-Forever/main.py", line 85, in <module>
    run_onliner()
  File "/root/Online-Forever/main.py", line 81, in run_onliner
    onliner(usertoken, status)
  File "/root/Online-Forever/main.py", line 31, in onliner
    ws = websocket.WebSocket()
TypeError: WebSocket.__init__() missing 3 required positional arguments: 'environ', 'socket'                , and 'rfile'
^CException ignored in: <module 'threading' from '/usr/lib/python3.10/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1567, in _shutdown
    lock.acquire()
Samekas123 commented 4 months ago

Fixed

siamskoi commented 4 months ago

Fixed

How?

Samekas123 commented 4 months ago

Fixed

How?

  1. First, do pip uninstall websocket.
  2. Make sure all websocket modules were removed by listing the currently installed modules with pip list | grep websocket.
  3. Then, run pip uninstall 'MODULEHERE' if any are listed.
  4. Finally, run pip install websocket-client.
siamskoi commented 4 months ago

@Samekas123 thank you!

Samekas123 commented 4 months ago

@Samekas123 thank you!

Np, let me know if it works for you.

Clyde6790pGIT commented 3 months ago

still the same on replit and local

SealedSaucer commented 3 months ago

Closing the issue since it's solved.