Giter VIP home page Giter VIP logo

Comments (11)

TalhaAsmal avatar TalhaAsmal commented on June 3, 2024 2

Try to import bittrex this way:

from bittrex.bittrex import Bittrex

from python-bittrex.

TalhaAsmal avatar TalhaAsmal commented on June 3, 2024 1

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.

treethought avatar treethought commented on June 3, 2024 1

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.

TalhaAsmal avatar TalhaAsmal commented on June 3, 2024

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.

JeffWScott avatar JeffWScott commented on June 3, 2024

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.

JeffWScott avatar JeffWScott commented on June 3, 2024

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.

JeffWScott avatar JeffWScott commented on June 3, 2024

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.

JeffWScott avatar JeffWScott commented on June 3, 2024

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.

gcarq avatar gcarq commented on June 3, 2024

@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.

TalhaAsmal avatar TalhaAsmal commented on June 3, 2024

There's actually a pull request to fix the import issue, but it hasn't been merged yet

from python-bittrex.

TalhaAsmal avatar TalhaAsmal commented on June 3, 2024

This has been resolved

from python-bittrex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.