Closed alexdlaird closed 4 years ago
After clearing out the site-packages
folder for pyngrok
, I'm unable to reproduce this issue. In prior testing, I had being doing work validating different means of installing pyngrok
, including using sudo
when calling pip
to install. My guess is a previous iteration of that created a root bin
folder in pyngrok
's site-packages
, and that was where the permissions error came from. However, I'm unable to get that folder to be generated as root
again, so doesn't appear to be an ongoing issue.
If it is seen, the workaround is to chown
the bin
folder to be owned by you, or execute sudo ngrok
the first time (thereafter ngrok
will be installed and sudo
is no longer needed), or simply clear out your pyngrok
installation and start fresh.
Describe the Bug When using OS X's system Python (possibly other root-owned interpreters as well), a permission error is seen after the
ngrok
binary is downloaded and installation is attempted.This is because
/usr/local/lib/python3.7/site-packages/
is owned byroot
and we're not executing withsudo
.Steps to Reproduce Install
pyngrok
using the system's Python /pip
:Then try to execute any
ngrok
command:Typically the first thing you'd see here is
ngrok
being downloaded then installed. The download will succeed, but the above exception will be output on the installation step sincebin/ngrok
insite-packages
will be owned byroot
.Expected Behavior The installation should complete without an exception.
Environment
pyngrok
Version: 4.1.1