django-fixture-magic icon indicating copy to clipboard operation
django-fixture-magic copied to clipboard

Pip installs wrong version from PyPi

Open rdeknijf opened this issue 6 years ago • 10 comments

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?

rdeknijf avatar Nov 20 '18 14:11 rdeknijf

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

LiamK avatar Mar 21 '19 16:03 LiamK

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

davedash avatar Mar 21 '19 18:03 davedash

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.

michaelachrisco avatar May 15 '19 15:05 michaelachrisco

@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!

LiamK avatar Mar 05 '20 14:03 LiamK

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

geckon avatar Mar 17 '20 22:03 geckon

Hi. I'll take a look when I can. I'm currently in "lockdown" with my family. Which means a lot of schooling and not a lot of computer time.

On Tue, Mar 17, 2020 at 3:22 PM Tomáš Heger [email protected] wrote:

Hello @davedash https://github.com/davedash please do what @LiamK https://github.com/LiamK suggests, it would be much appreciated!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davedash/django-fixture-magic/issues/68#issuecomment-600328901, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOQ2NP4N5B2QWCVAXZGS3RH7Z23ANCNFSM4GFM2J5Q .

-- Dave Dash

davedash avatar Mar 18 '20 04:03 davedash

Thank you and stay safe!

geckon avatar Mar 18 '20 07:03 geckon

Hi, any update on this? Thanks!

geckon avatar Jul 30 '20 12:07 geckon

Give this version a try: https://pypi.org/project/django-fixture-magic/0.1.5/

davedash avatar Jul 30 '20 21:07 davedash

It works, thanks a lot!

geckon avatar Jul 31 '20 08:07 geckon