Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Aug 2022 11:28:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 265712] devel/py-pip: python38 pip requires some additional symlinks in /usr/local/bin
Message-ID:  <bug-265712-21822-1PvuhxMJwe@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-265712-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-265712-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-python (Nobody)
<python@FreeBSD.org> for maintainer-feedback:
Bug 265712: devel/py-pip: python38 pip requires some additional symlinks in
/usr/local/bin
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265712



--- Description ---
Running pip 22.2.2 as a regular user, pip crashes and dumps a traceback plus
this error:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pip=
3'

This is what gets created by the Ports pkg:

$ ls -l /usr/local/bin/pip*
lrwxr-xr-x  1 root  wheel    7 Jun  9 19:14 /usr/local/bin/pip -> pip-3.8
-rwxr-xr-x  1 root  wheel  949 Jun  9 19:14 /usr/local/bin/pip-3.8

Adding a pip3 -> pip-3.8 symlink solved that error, but then I got this err=
or:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pip=
3.8'

Adding a pip3.8 -> pip-3.8 as well makes pip work properly again.  The final
result:

$ ls -l /usr/local/bin/pip*
lrwxr-xr-x  1 root  wheel    7 Jun  9 19:14 /usr/local/bin/pip -> pip-3.8
-rwxr-xr-x  1 root  wheel  949 Jun  9 19:14 /usr/local/bin/pip-3.8
lrwxr-xr-x  1 root  wheel    7 Aug  8 03:17 /usr/local/bin/pip3 -> pip-3.8
lrwxr-xr-x  1 root  wheel    7 Aug  8 03:18 /usr/local/bin/pip3.8 -> pip-3.8



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265712-21822-1PvuhxMJwe>