ericsomdahl / python-bittrex

Python bindings for bittrex
MIT License
585 stars 283 forks source link

Unable to install using git repository #73

Closed steelliberty closed 6 years ago

steelliberty commented 6 years ago

After cloning and running python setup.py install -- I get the bittrex directory and .egg in site-packages -- but bittrex module contains no code. So from bittrex import Bittrex produces error "Can't import Bittrex" -- So I tried using pip install git+https//github... ( after uninstalling by hand) and the same thing happens, pip installs the code but the referred bittrex module is apparently empty. However the bittrex.py file is correct in the bittrex directory of site-packages.

So I am going to just use the bittrex.py file locally and import it that way..

slazarov commented 6 years ago

I did the following:

Add the code to bittrex/initpy. from bittrex.bittrex import *

Then access it like that:

import bittrex
client=bittrex.Bittrex(api_key='key', api_secret='secret', api_version=bittrex.API_V2_0)
summary = client.get_market_summaries()['result']
TalhaAsmal commented 6 years ago

This should also work: from bittrex.bittrex import Bittrex

ericsomdahl commented 6 years ago

@steelliberty if this is still an issue please try using pip -- we are now (as of 0.2.1) deploying tags to PyPi.

pip install python-bittrex
ericsomdahl commented 6 years ago

this seems stale so I'm closing it