Skip to content

pip install djangorestframework-jsonapi fails #191

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

Closed
mblayman opened this issue Jan 21, 2016 · 4 comments
Closed

pip install djangorestframework-jsonapi fails #191

mblayman opened this issue Jan 21, 2016 · 4 comments

Comments

@mblayman
Copy link
Collaborator

Running pip install djangorestframework-jsonapi fails as documented on Read the Docs. I believe the reason is that pip fails to recognize all the available version numbers appropriately.

According to the setuptools docs, the - in the version number makes the posted version a "post-release" number. https://pythonhosted.org/setuptools/setuptools.html#specifying-your-project-s-version

Here is the output I saw when I tried to run the command:

$ pip install djangorestframework-jsonapi
Downloading/unpacking djangorestframework-jsonapi
  Could not find a version that satisfies the requirement djangorestframework-jsonapi \
(from versions: 2.0.0-alpha.1, 2.0.0-alpha.2, 2.0.0-alpha.3, 2.0.0-alpha, 2.0.0-beta.1)
Cleaning up...
No distributions matching the version for djangorestframework-jsonapi
Storing debug log for failure in /home/matt/.pip/pip.log

I don't know for sure, but my guess is that in the absence of an actual version (i.e., 2.0.0), pip gives up when it only finds post release versions.

@mblayman
Copy link
Collaborator Author

I should add that pip install djangorestframework-jsonapi==2.0.0-beta.1 does work. Maybe the solution until the project comes out of beta with a 2.0.0 release is to document pip install with the specific version specifier.

@kevin-brown
Copy link

The latest release is 2.0.0-beta.1, which pip will not automatically install because it is an unstable version. The older versions, 1.3.2 and below, are not available on PyPI because it was previously called rest_framework_ember.

You can still install the beta versions by explicitly specifying them.

pip install djangorestframework-jsonapi==2.0.0-beta.1

@holandes22
Copy link

alternatively, you can use the --pre flag

pip install --pre djangorestframework-jsonapi

@mblayman
Copy link
Collaborator Author

At some point, pip fixed this problem in a newer version. I tried pip install djangorestframework-jsonapi on my Mac this morning and it worked without issue. My Mac has pip version 7.0.3.

The command failed on the pip version that comes with Ubuntu 14.04. That version is 1.5.4.

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