guv icon indicating copy to clipboard operation
guv copied to clipboard

setup.py install does not install pyuv_cffi binary

Open minus7 opened this issue 9 years ago • 2 comments

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.

minus7 avatar Jun 12 '15 22:06 minus7

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

minus7 avatar Jun 12 '15 22:06 minus7

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.

veegee avatar Jun 13 '15 16:06 veegee