Comments (11)
Try to import bittrex this way:
from bittrex.bittrex import Bittrex
from python-bittrex.
The pip package is quite old, so that is most likely the problem.
You can clone this repo from github, then navigate to the directory where the repo is cloned and install via the setup.py:
cd ~
git clone https://github.com/ericsomdahl/python-bittrex.git
cd python-bittrex
python3 setup.py install
If you want to install globally, replace the last line with:
sudo python3 setup.py install
If you want to use pip, you can do:
pip install --upgrade git+https://github.com/ericsomdahl/python-bittrex.git
from python-bittrex.
If you haven't solved this, the problem may be that the package is only installed for your python 2 installation. If that's the case, you should be able to install for python 3 with pip3 install ...
from python-bittrex.
Hi @JeffWScott
Are you using the latest source code? Python3 compatibility was fixed in 066f509 which was pushed a year ago.
Please try pulling the latest code and try again.
from python-bittrex.
I installed through pip. Is that my problem?
I have python2.7 and python3 installed. Is there something different I have to do to install this via the setup.py instead of python3 -m pip install ??
from python-bittrex.
Dammit.
I finally got around to running the commands supplied by @TalhaAsmal and now I cannot run any scripts.
I get:
Traceback (most recent call last):
File "databaseLoader.py", line 11, in
from bittrex import Bittrex
I created a script to view my pip packages and I see python-bittrex2.0.
['dnspython==1.12.0', 'pip==9.0.1', 'pushbullet.py==0.11.0', 'pycrypto==2.6.1', 'pycurl==7.43.0', 'pymongo==3.5.1', 'python-apt==1.1.0b1', 'python-bittrex==0.2.0', 'python-magic==0.4.13', 'requests==2.7.0', 'setuptools==20.7.0', 'six==1.11.0', 'websocket-client==0.44.0', 'wheel==0.29.0']
Any ideas?
from python-bittrex.
I think I found the issue.. although i have no idea how to solve it.
when I install things they end up in /usr/local/lib/python2.7 (or 3.5)
when I run this command:
python -c "from distutils.sysconfig import *; print(get_python_lib())"
I get /usr/lib/python2.7/dist-packages
bittrex is not installed there.
it is installed in:
/usr/local/lib/python2.7
~/.local/lib/python2.7
how do I get it to install into that other directory? Or how do I sort this mess out?
Thanks.
from python-bittrex.
That worked!
Can you explain why? (and maybe update the readme?)
I was literally 2 seconds away from redoing my whole dev box from scratch when I thought, you know what, I'll see if Tal responded.
from python-bittrex.
@JeffWScott That is because the bittrex module has an empty __init__.py
file.
To fix this the __init__.py
should look like this:
from . import bittrex
from python-bittrex.
There's actually a pull request to fix the import issue, but it hasn't been merged yet
from python-bittrex.
This has been resolved
from python-bittrex.
Related Issues (20)
- need help generating api key using the secret and key HOT 2
- INVALID_PERMISSION making 'get_open_orders' request on API_V2_0
- TypeError: buy_limit() missing 2 required positional arguments: 'quantity' and 'rate' HOT 1
- Update please examples on front page
- {'success': False, 'message': 'CURRENCY_NOT_PROVIDED', 'result': None} HOT 2
- Authenticated calls occasionally return "NO_API_RESPONSE" HOT 6
- get_full_order_history
- I am unable to get the order history
- How to... connect? HOT 1
- FILL_OR_KILL HOT 2
- New endpoint: /GetCurrencyInfo
- {'success': False, 'message': 'INVALID_MARKET', 'result': None} on method buy_limit() HOT 1
- get_withdrawal_history() does not return any withdraw history
- Error APIKEY_INVALID with python 3.7.2
- API_V1_1 and API_V2_0 should be v1.1 and v2.0? HOT 1
- API V3 BETA HOT 1
- get_candles returns Nonetype for many coins HOT 5
- Withdraw Function Not Working HOT 1
- Test case for USD-LTC pair
- Does support for API_V_3.0 will be available in this client? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-bittrex.