bitbns-official / bitbnspy

MIT License
9 stars 6 forks source link

Bitbnspy Installation issue #56

Closed sukhwant280 closed 3 years ago

sukhwant280 commented 3 years ago

team,

did step 1: Installation sudo -H pip3 install python-socketio[client] pip3 install bitbnspy

Step 2 ran this in spyder - python:

and got error of: "ModuleNotFoundError: No module named 'bitbnspy'"

please help how to resolve this

thanks sukhwant

code used to run on spyder:

from bitbnspy import bitbns key = 'yourKey' secretKey = 'yourSecretKey' bitbnsObj = bitbns(key, secretKey) print(bitbnsObj.getSellOrderBook('XRPUSDT'))

sukhwant280 commented 3 years ago

@sanket-buyhatke @atiprashant @tanmesh - please opine

sanket-buyhatke commented 3 years ago

@sukhwant280, thanks for open the issue, could you pls provide your python version ? this would help us to reproduce the issue on our end. you can find it by running python -V,

also could you pls follow the template for reporting issues, so the next person facing similar issues would be able to resolve it quickly.

sukhwant280 commented 3 years ago

Python version is 3.8.10 and operating system is win 10.

apologies will follow the template going forward, as a comer in this space.

sanket-buyhatke commented 3 years ago

no issues

can pls check if installation has been successful and ping the response here?
you can find it by pip freeze | findstr 'bitbnspy'

sukhwant280 commented 3 years ago

sc1 attached screeshot

sanket-buyhatke commented 3 years ago

hi, @sukhwant280, looks like bitbnspy has been installed successfully, if you do this in the windows cmd, it should work, python from bitbnspy import bitbns

mostly likely reason I can think of is, spyder uses a virtual environment, and hence you are unable to use bitbns module there, I would suggest installing bitbnspy package in your spyder environment. if you are using spyder without anaconda if you are using spyder with anaconda

sukhwant280 commented 3 years ago

Thanks Sanket. Solution - install bitbnspy on Conda environment. i did on Pip only.

its working. if any issues with apis, will follow the format and raise new tickets.

thanks for your help. we can close this item