BitMEX / api-connectors

Libraries for connecting to the BitMEX API.

Home Page:https://www.bitmex.com/app/restAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'urllib' has no attribute 'parse'

sadek69 opened this issue · comments

OSX 10.15.4
python 3.8.2

main.py give error :

Traceback (most recent call last):
File "main.py", line 40, in
run()
File "main.py", line 11, in run
ws = BitMEXWebsocket(endpoint="https://testnet.bitmex.com/api/v1", symbol="XBTUSD",
File "/Users/_exe/python/bitmex/bitmex_websocket.py", line 47, in init
wsURL = self.__get_url()
File "/Users/_exe/python/bitmex/bitmex_websocket.py", line 166, in __get_url
urlParts = list(urllib.parse.urlparse(self.endpoint))
AttributeError: module 'urllib' has no attribute 'parse'

Fixed in 3cf93b7