PySocks
PySocks copied to clipboard
AttributeError
Code:
sock = socks.socksocket
sock.set_proxy(socks.SOCKS5, addr="103.216.82.37", port=6667)
Error:
Traceback (most recent call last):
File "C:/.../botConnection.py", line 16, in <module>
sock.set_proxy(socks.SOCKS5, addr="103.216.82.37", port=6667)
File "C:\...\AppData\Local\Programs\Python\Python37-32\lib\site-packages\socks.py", line 372, in set_proxy
password.encode() if password else None)
AttributeError: 'int' object has no attribute 'proxy'
Versions
- Python: 3.7.0
- PySocks: I have downloaded right now