ohenrik / bitfinex

A Python client for the Bitfinex API
MIT License
58 stars 32 forks source link

pip3 install bitfinex-v2 returnes file not found - README.md #10

Closed nhondong closed 6 years ago

nhondong commented 6 years ago

Command: pip3 install bitfinex-v2 returns:

Collecting bitfinex-v2 Downloading https://files.pythonhosted.org/packages/a8/a0/e10703a05c2ed27d07ce4d5bdaabda3ed60030706bc2f1e6c935fe71cc7e/bitfinex-v2-0.5.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-62awd5et/bitfinex-v2/setup.py", line 15, in with open("README.md", "r") as fh: FileNotFoundError: [Errno 2] No such file or directory: 'README.md'

nhondong commented 6 years ago

pip3 install git+https://github.com/ohenrik/bitfinex.git works, but i still get:

from bitfinex.websockets import WssClient

ModuleNotFoundError: No module named 'bitfinex.websockets'; 'bitfinex' is not a package

gaorufeng commented 6 years ago

if use from bitfinex.websockets.client import WssClient (windows and linux)

Traceback (most recent call last): File "D:/Py-test2/2018/ccex_py36_201808/bitf1_wss1.py", line 16, in bm.authenticate(print) File "C:\py36\lib\site-packages\bitfinex\websockets\client.py", line 158, in authenticate nonce = int(wss_utils.UtcNow() 1000000) File "C:\py36\lib\site-packages\bitfinex\websockets\wss_utils.py", line 8, in UtcNow return int(float(now.strftime("%s.%f"))10000000) ValueError: Invalid format string

Process finished with exit code 1

dantimofte commented 6 years ago

if you installed using "pip3 install git+https://github.com/ohenrik/bitfinex.git" try and use the wss example from my pull request, it will work. https://github.com/dantimofte/bitfinex/blob/master/examples/wss_example.py

nhondong commented 6 years ago

OMG, this was a beginner Error. I had a file named bitfinex.py in my scriptfolder...

Sorry for that.

dantimofte commented 6 years ago

still, the problem with "pip3 install bitfinex-v2" is real, you should reopen this until it's been fixed

ohenrik commented 6 years ago

this is now fixed :)