python-binance-chain
python-binance-chain copied to clipboard
Error when trying to import from binance_chain.environment import BinanceEnvironment
After installing the library on my environment with Python 3.5.3, I try to import the library as follows (in Python shell):
from binance_chain.environment import BinanceEnvironment
But I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vagrant/.local/lib/python3.5/site-packages/binance_chain/environment.py", line 45
return hash(f"{self.api_url}{self.wss_url}{self.hrp}")
^
SyntaxError: invalid syntax
Any idea why?
UPDATE: it is apparently due to f'' string not supported on python 3.5.3, can you confirm this? could you please add support for python 3.5 as well?
UPDATE2: trying it with Python 3.7 but there is an error during the package installation due to libsecp256k1 library. Then I tried to install the package here (as suggested in the readme) https://github.com/ludbb/secp256k1-py#installation but this is not compatible with python 3.7!
I am currently still not able to use the library.
Hey @ledzgio ,
I had similar issues with secp256k. Had to install the lib properly first.
sudo apt-get install lib32ncurses5-dev
sudo add-apt-repository ppa:tah83/secp256k1
sudo apt update
sudo apt install libsecp256k1-dev
try this before pip install python-binance-chain
Hey @ledzgio ,
I had similar issues with secp256k. Had to install the lib properly first.
sudo apt-get install lib32ncurses5-dev sudo add-apt-repository ppa:tah83/secp256k1 sudo apt update sudo apt install libsecp256k1-dev
try this before pip install python-binance-chain
It worked, thank you
@sammchardy is there any chance we get this library compatible with Python 3.5?