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

pip install fails #9

Closed
zaro0508 opened this issue Nov 7, 2019 · 3 comments
Closed

pip install fails #9

zaro0508 opened this issue Nov 7, 2019 · 3 comments

Comments

@zaro0508
Copy link
Member

zaro0508 commented Nov 7, 2019

Installing the package with pip install jccli fails with the following error:

➜ pip install jccli
Collecting jccli
  Downloading https://files.pythonhosted.org/packages/6d/a0/f9b811b5ad5fb081858367ada0beee52486cc9c890dd323e519041cf62e0/jccli-0.0.1.tar.gz
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
jccli depends on jcapiv1@ https://github.com/TheJumpCloud/jcapi-python/archive/v3.3.0.zip#subdirectory=jcapiv1

Also publishing jccli to pypi will fail with the following message:

➜  twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Uploading jccli-0.0.7-py3-none-any.whl
100%|█████████████████████████████████████████████| 21.0k/21.0k [00:00<00:00, 23.7kB/s]
NOTE: Try --verbose to see response content.
HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Invalid value for requires_dist. Error: Can't have direct dependency: 'jcapiv1 @ git+https://github.com/TheJumpCloud/[email protected]#subdirectory=jcapiv1'
@zaro0508
Copy link
Member Author

zaro0508 commented Nov 7, 2019

This is due to Jumpcloud jcapi-python issue TheJumpCloud/jcapi-python#39

@zaro0508
Copy link
Member Author

from @jkiang13 ...

I think your most expedient options (i.e. not repackaging the deps to a private pypi server) are:
1. Install jccli itself from the GitHub tag:
pip install git+https://github.com/Sage-Bionetworks/jccli/@v0.0.6
2. Install the package and dependencies separately, which works in pip 20
pip install --no-deps jccli
pip install jccli

@zaro0508
Copy link
Member Author

pretty lame but i guess i like option 1 better. probably not much we can do except update documentation to install from github instead of pypi.

@zaro0508 zaro0508 mentioned this issue Jun 24, 2020
zaro0508 added a commit to zaro0508/jccli that referenced this issue Jul 1, 2020
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

1 participant