Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API install #32

Closed
glstott opened this issue Oct 19, 2018 · 2 comments
Closed

API install #32

glstott opened this issue Oct 19, 2018 · 2 comments

Comments

@glstott
Copy link

glstott commented Oct 19, 2018

I am having troubles installing the alpaca trade api. Currently I'm getting an error when I try to install either via pipenv or pip. Let me know what other printouts would help in troubleshooting.
OS: Ubuntu 18.04

Full error:
The directory '/home/garrick/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/garrick/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting alpaca-trade-api
Downloading https://files.pythonhosted.org/packages/45/a5/7ceb9477f9d87c50ef47b4b1a504b37c4ec1ff5c0f72a449eb786e127887/alpaca-trade-api-0.19.tar.gz
Collecting asyncio-nats-client (from alpaca-trade-api)
Downloading https://files.pythonhosted.org/packages/f6/a0/3e9a55cfe262699a2ce98714e14a7381bc674112f567af80457d16ea9b2f/asyncio-nats-client-0.8.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-dsdJrG/asyncio-nats-client/setup.py", line 2, in
from nats.aio.client import version
File "nats/init.py", line 22
yield from nc.connect(**options)
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dsdJrG/asyncio-nats-client/

@glstott
Copy link
Author

glstott commented Oct 19, 2018

It installed fine using pip3. We can close the issue if this is expected.

@umitanuki
Copy link
Contributor

Thanks for the report. Yes, currently the SDK requires python 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants