bagit-python icon indicating copy to clipboard operation
bagit-python copied to clipboard

Question about Python versions and installation

Open jamiepb opened this issue 6 years ago • 4 comments

Hello,

I have both Python 2.7 and 3.7 on my computer, running Windows 7 Enterprise and with 3.7 in the environment variable. When I try to run bagit, I get an error that says: Unable to create process using '/usr/local/opt/python@2/bin/python2.7 "' I noticed that the bagit.py file in Scripts has #!/usr/local/opt/python@2/bin/python2.7 at the top, while in Lib\site-packages it has #!/usr/bin/env python. Does this have something to do with having both versions installed, or with my environment variable settings? Thanks.

Jamie

jamiepb avatar Sep 11 '18 19:09 jamiepb

How did you install it? It sounds like the default Python version changed after the first install, so the first thing I'd try is using both the Python 2 & 3 pip executable (often installed as pip2 and pip3) to uninstall bagit and then reinstall it using only the one you prefer (hopefully Python 3).

acdha avatar Sep 11 '18 20:09 acdha

I used pip install bagit. I did try uninstalling bagit using pip2 and pip3 and then reinstalling using pip install and then pip3 install, and still receive the same error. Thanks for your help.

JAMIE PATRICK-BURNS Digital Archivist State Archives of North Carolina

215 N Blount St MSC 4615 Raleigh, NC 27699 919 807 7355 office

[cid:[email protected]]

Email correspondence to and from this address is subject to the North Carolina Public Records Law and may be disclosed to third parties.

Facebookhttp://www.facebook.com/NorthCarolinaCulture Twitterhttp://www.twitter.com/ncculture Instagramhttp://www.instagram.com/ncculture YouTubehttp://www.youtube.com/ncculture

From: Chris Adams [email protected] Sent: Tuesday, September 11, 2018 4:15 PM To: LibraryOfCongress/bagit-python [email protected] Cc: Patrick-Burns, Jamie A [email protected]; Author [email protected] Subject: [External] Re: [LibraryOfCongress/bagit-python] Question about Python versions and installation (#113)

CAUTION: External email. Do not click links or open attachments unless verified. Send all suspicious email as an attachment to Report Spam.mailto:[email protected]

How did you install it? It sounds like the default Python version changed after the first install, so the first thing I'd try is using both the Python 2 & 3 pip executable (often installed as pip2 and pip3) to uninstall bagit and then reinstall it using only the one you prefer (hopefully Python 3).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/LibraryOfCongress/bagit-python/issues/113#issuecomment-420409877, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AhKazkDace8Rrh0-CdbnK97L8LMNn3S6ks5uaBm1gaJpZM4WkGjv.

jamiepb avatar Sep 12 '18 13:09 jamiepb

It's a PyPI packaging issue, see https://github.com/LibraryOfCongress/bagit-python/issues/116

jonassvatos avatar Oct 17 '18 12:10 jonassvatos

This should be resolved now if you uninstall and reinstall it

acdha avatar Oct 17 '18 13:10 acdha