guv
guv copied to clipboard
setup.py install does not install pyuv_cffi binary
When installing guv system-wide and trying to import it afterwards as a user I get the following error message: PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.4/site-packages/pyuv_cffi/__pycache__/_cffi__x9bdc36e8xf9520033.c'
The .c
file and also the .so
file is generated upon setup.py install
, they are not copied to the install destination though. Thus, cffi
tries to build it but lacks permission to write to the system directory.
Easiest way to "reproduce" is to sudo pip install guv
(and not having it installed as user nor the working directory being the source folder).
This is likely happening because guv recompiles the shared object on every invocation. I was doing that to make debugging easier. The solution may be to disable that. I'll see if I can fix this in the next couple of days. For now, the easiest thing to do is install to a user directory or in a venv.