LibraryOfCongress / bagit-python

Work with BagIt packages from Python.
http://libraryofcongress.github.io/bagit-python
218 stars 85 forks source link

Question about Python versions and installation #113

Open jamiepb opened 6 years ago

jamiepb commented 6 years ago

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

acdha commented 6 years ago

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).

jamiepb commented 6 years ago

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:image003.png@01D44A7C.ACC04970]

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 notifications@github.com Sent: Tuesday, September 11, 2018 4:15 PM To: LibraryOfCongress/bagit-python bagit-python@noreply.github.com Cc: Patrick-Burns, Jamie A jamie.patrickburns@ncdcr.gov; Author author@noreply.github.com 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:report.spam@nc.gov

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.

jonassvatos commented 5 years ago

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

acdha commented 5 years ago

This should be resolved now if you uninstall and reinstall it