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 installs wrong version from PyPi #68

Open
rdeknijf opened this issue Nov 20, 2018 · 10 comments
Open

Pip installs wrong version from PyPi #68

rdeknijf opened this issue Nov 20, 2018 · 10 comments

Comments

@rdeknijf
Copy link

Pip does find 0.1.4:

$ pip search django-fixture-magic | grep django-fixture-magic
django-fixture-magic (0.1.4)                - A few extra management tools to handle fixtures.

But when I try to install pinned:

$ pip install django-fixture-magic==0.1.4
Collecting django-fixture-magic==0.1.4
  Could not find a version that satisfies the requirement django-fixture-magic==0.1.4 (from versions: 0.0.2.macosx-10.6-i386, 0.1.4.macosx-10.13-x86_64, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.7, 0.0.8, 0.1.0, 0.1.1, 0.1.2, 0.1.3)
No matching distribution found for django-fixture-magic==0.1.4

And unpinned:

$ pip install django-fixture-magic
Collecting django-fixture-magic
Installing collected packages: django-fixture-magic
Successfully installed django-fixture-magic-0.1.3

I don't know why this happens, but it happens in any environment that I've tried. Can you fix this? Is there anything that I can do to help?

@LiamK
Copy link

LiamK commented Mar 21, 2019

The 0.1.4 version uploaded to PyPi is the macosx version. Trying to install on Linux system gives you the 0.1.3 version without the merge_fixture fix.
It would be nice to get this fixed!

pip install django-fixture-magic==0.1.4 --no-cache-dir
Collecting django-fixture-magic==0.1.4
  Could not find a version that satisfies the requirement django-fixture-magic==0.1.4 (from versions: 0.0.2.macosx-10.6-i386, 0.1.4.macosx-10.13-x86_64, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.7, 0.0.8, 0.1.0, 0.1.1, 0.1.2, 0.1.3)
No matching distribution found for django-fixture-magic==0.1.4

@davedash
Copy link
Owner

@LiamK I'm out of touch on building packages, what would I need to do to create OS agnostic packages?

@michaelachrisco
Copy link

I was able to get this working by referencing the branch/git commit explicitly:
requirements.txt:

-e [email protected]:davedash/django-fixture-magic.git@466fa35c075009e4a1974f6e588471dd9e720e53#egg=django_fixture_magic

That is set to the most recent git commit on the master branch as of 5/15/2019.
Just followed the instructions here: https://stackoverflow.com/questions/16584552/how-to-state-in-requirements-txt-a-direct-github-source

This does not solve the overall problem, but its a good compromise until the package is updated.

@LiamK
Copy link

LiamK commented Mar 5, 2020

@davedash I believe I have found the answer to this problem. Would you please take a look?
https://packaging.python.org/guides/distributing-packages-using-setuptools/#platform-wheels

I think what may have happened is that when you built the package for version 1.4 that you uploaded to PyPi you created a "Platorm Wheel."
I don't think you need to create a Platform Wheel. I think you can create what they refer to as a Universal Wheel, since the package works with both Python 2 & 3.
If you then upload that to PyPi it should work.

Would you please do that and see if it fixes the problem? I think you will have to bump the version for PyPi to accept the new package. I also saw that there is a .bumpconfig file with an older version number (0.1.2), so maybe that should also be updated.

Thanks!

@geckon
Copy link

geckon commented Mar 17, 2020

Hello @davedash please do what @LiamK suggests, it would be much appreciated!

@davedash
Copy link
Owner

davedash commented Mar 18, 2020 via email

@geckon
Copy link

geckon commented Mar 18, 2020

Thank you and stay safe!

@geckon
Copy link

geckon commented Jul 30, 2020

Hi, any update on this? Thanks!

@davedash
Copy link
Owner

davedash commented Jul 30, 2020 via email

@geckon
Copy link

geckon commented Jul 31, 2020

It works, thanks a lot!

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

5 participants