danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 734 forks source link

Version on PIP needs to be updated #208

Closed CreaoticX closed 6 years ago

CreaoticX commented 6 years ago

If you install this using pip it's and old version that is out of date. I don't know all of the features that are missing, but at least one of them is the ability to subscribe to specific channels. I fixed this by just going in and copying and pasting the new files. Not sure how to get pip to get the new files. I'm pretty sure this is what's causing #205 at least.

phil-hudson commented 6 years ago

+1 please do

smalbadger commented 6 years ago

I'm sorry, I'm not familiar with installing python modules manually. Did you just clone the repository somewhere and not actually install the gdax module?

CreaoticX commented 6 years ago

If you install with pip it installs in your Python installation folder. You can google to find the location for your operating system. I just went in and copied the files from github into that folder manually. I guess you could do a git clone too, but I haven't tried it.

obixmt commented 6 years ago

@CreaoticX Thanks for pointing in the right direction, this allowed me to get the Order Book example working.

I'm on a Debian system and had to do the following as root:

pip uninstall gadx rm -fvr /usr/local/lib/python2.7/dist-packages/gdax rm -fvr /home/username/.local/lib/python2.7/site-packages/gdax pip install git+https://github.com/danpaquin/gdax-python@master

the copy in my /home path was the one that I'd been missing, not sure how it got there? Hope this is helpful to someone, thanks!

danpaquin commented 6 years ago

This will be completed after PR #260 is finalized and tests are passed.

uclatommy commented 6 years ago

@CreaoticX, you can use pip to install directly from github like so: pip install git+https://github.com/danpaquin/gdax-python.git

kevinkatzke commented 6 years ago

The following workaround should solve these issues on Mac:

pip uninstall gdax
pip install git+https://github.com/danpaquin/gdax-python.git

As @uclatommy suggested you can as pip to install directly from github. After you've executed these commands you might need to install further dependencies such as sortedcontainers in my case. All dependecies can be found here:

https://github.com/danpaquin/gdax-python/blob/d7dfc6f8e44158b4f1b0c3149a2f680df5dffa3c/requirements.txt

Any package can be installed with pip as usual:

pip install sortedcontainers

UPDATE:

Now that the name of the project has changed from GDax to Coinbase Pro the correct pip install is:

pip install --user --upgrade git+https://github.com/danpaquin/coinbasepro-python.git
wileymc commented 6 years ago

I've followed this exactly and have all the required dependencies installed and I'm still getting:

File "gdax_pull.py", line 6, in <module>
    public_client = gdax.Public_Client()
AttributeError: module 'gdax' has no attribute 'Public_Client'

Any ideas? I'm running OSX