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
st2client missing python dependencies #3367
Comments
How did you install st2client? Some of those dependencies - e.g. pytz - are covered in https://github.com/StackStorm/st2/blob/master/st2client/requirements.txt |
I too am unable to get st2client installed, have tried both Python 2.7 or Python 3.6 using pip install and falling down a rabbit whole of dependency. Installing a OS X.
Finally got working after manually running |
The dependency is there though. I would also like to know how you're installing st2client, it might that we missed something during, say, packaging.... |
Just using |
The problem occurs when installing via pypi (system or user): The reason is that the requirements in st2client/setup.py do not match with st2client/requirements.txt. It looks like all of the changes to requirements.txt did not make it into setup.py since Jan 25, 2016, commit de65841. The following are in requirements.txt, but not setup.py (and the commit they were added in).
These version requirements don't match (requirements.txt vs setup.py):
|
To avoid setup.py and requirements.txt getting out of sync, requirements.txt could be replaced with something simpler, as described here: https://caremad.io/posts/2013/07/setup-vs-requirement/ Would that be acceptable? If not, what's st2's preferred method for keeping requirements.txt and setup.py in sync? |
This is still an issue, the package on pypi needs the following installed before it is usable:
|
@j3p0uk Thanks for reporting. I need to check, because we did update setup.py in the past, but it's possible it's still out of sync. |
I can confirm this is still an issue, I setup a virtualenv on MacOS using pipenv and had to install the packages listed above.
|
@Kami Cool. Thank you very much 👍 |
I needed to go through stack traces to find the following dependencies:
pytz
editor
jsonschema
prompt_toolkit
Fixed by:
sudo pip install pytz
sudo pip install editor
sudo pip install jsonschema
sudo pip install prompt_toolkit
The text was updated successfully, but these errors were encountered: