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

[Bug]: Websockets conflict #387

Open
2 tasks done
sshcli opened this issue Dec 17, 2023 · 2 comments
Open
2 tasks done

[Bug]: Websockets conflict #387

sshcli opened this issue Dec 17, 2023 · 2 comments
Assignees

Comments

@sshcli
Copy link
Contributor

sshcli commented Dec 17, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When you use both alpaca-py and alpaca-trade-api , you get the following conflict when upgrading to alpaca-py 0.13.4:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
alpaca-trade-api 3.0.2 requires websockets<11,>=9.0, but you have websockets 11.0.3 which is incompatible.
pyppeteer 1.0.2 requires websockets<11.0,>=10.0, but you have websockets 11.0.3 which is incompatible.
Successfully installed alpaca-py-0.13.4 websockets-11.0.3

Expected Behavior

Because alpaca-trade-api is still needed for some functions not available yet in alpaca-py (E.g. get_activities() )
Some changes must be made to avoid this conflict.

SDK Version I encountered this issue in

alpaca-py 0.13.4

Steps To Reproduce

1. Install alpaca-trade-api 3.0.2
2. Install alpaca-py 0.13.4

Filled out the Steps to Reproduce section?

  • I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.

Anything else?

Migrate all features from old alpaca-trade-api to the new alpaca-py, so people don't need to use alpaca-trade-api anymore

@hiohiohio hiohiohio self-assigned this Dec 18, 2023
@hiohiohio
Copy link
Contributor

Migrate all features from old alpaca-trade-api to the new alpaca-py, so people don't need to use alpaca-trade-api anymore

Agree. Please let me consider to support missing features of alpaca-py.

@coininstant
Copy link

Running into this same issue:
!pip install --upgrade setuptools
!pip install --upgrade pandas
!pip install "websockets<11" (exhausted all attempts here)
!pip install jedi fastapi kaleido python-multipart uvicorn
!apt-get install swig
!pip install wrds
!pip install git+https://github.com/AI4Finance-LLC/FinRL-Library.git
!pip install pyfolio
!pip install yfinance
!pip install alpaca-trade-api
!pip install alpaca-trade-api==3.2.0
!pip install alpaca-py
!pip install pyfolio ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
alpaca-py 0.14.0 requires websockets<12.0.0,>=11.0.3, but you have websockets 10.4 which is incompatible.

For now i'm trying to find a workaround for the dependency conflict, such as using virtual environments to separate projects that depend on alpaca-trade-api and alpaca-py

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

3 participants