chrippa / python-librtmp

python-librtmp is a RTMP client library. It uses the implementation provided by librtmp via cffi.
BSD 2-Clause "Simplified" License
153 stars 33 forks source link

Cant uninstall/remove #21

Closed mic159 closed 6 years ago

mic159 commented 9 years ago

I am having some issues uninstalling python-librtmp.

I keep getting the error message No files were found to uninstall. when using pip to attempt to uninstall it.

To reproduce:

$ mkvirtualenv test --system-site-packages
Running virtualenv with interpreter /usr/bin/python2
New python executable in test/bin/python2
Also creating executable in test/bin/python
Installing setuptools, pip...done.

$ workon test

(test)$ pip install python-librtmp
Downloading/unpacking python-librtmp
  Downloading python-librtmp-0.2.2.tar.gz
  Running setup.py (path:~/.virtualenvs/test/build/python-librtmp/setup.py) egg_info for package python-librtmp

Requirement already satisfied (use --upgrade to upgrade): cffi>=0.6,<1.0 in /usr/lib/python2.7/dist-packages (from python-librtmp)
Downloading/unpacking singledispatch (from python-librtmp)
  Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/dist-packages (from cffi>=0.6,<1.0->python-librtmp)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from singledispatch->python-librtmp)
Installing collected packages: python-librtmp, singledispatch
  Running setup.py install for python-librtmp
    building '_binding' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c librtmp_ffi/__pycache__/_binding.c -o build/temp.linux-x86_64-2.7/librtmp_ffi/__pycache__/_binding.o
    librtmp_ffi/__pycache__/_binding.c: In function ‘_cffi_f_RTMP_LogSetCallback’:
    librtmp_ffi/__pycache__/_binding.c:1807:25: warning: passing argument 1 of ‘RTMP_LogSetCallback’ from incompatible pointer type
       { RTMP_LogSetCallback(x0); }
                             ^
    In file included from librtmp_ffi/__pycache__/_binding.c:187:0:
    /usr/include/librtmp/log.h:49:6: note: expected ‘void (*)(int,  const char *, struct __va_list_tag *)’ but argument is of type ‘void (*)(int,  const char *, void *)’
     void RTMP_LogSetCallback(RTMP_LogCallback *cb);
          ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/librtmp/amf.c -o build/temp.linux-x86_64-2.7/src/librtmp/amf.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/librtmp_ffi/__pycache__/_binding.o build/temp.linux-x86_64-2.7/src/librtmp/amf.o -lrtmp -o build/lib.linux-x86_64-2.7/librtmp_ffi/_binding.so

Successfully installed python-librtmp singledispatch
Cleaning up...

(test)$ pip uninstall python-librtmp
Can't uninstall 'python-librtmp'. No files were found to uninstall.

Let me know if you need more info (like installed-files.txt)

chrippa commented 9 years ago

I'm not able to reproduce this here, using pip 6.1.1.

I wonder if it could have something to do with --system-site-packages, does it work without that?

mic159 commented 9 years ago

Nope, I get the same without the --system-site-packages flag.

I have pip 1.5.6 on python 2.7.8 on ubuntu 14.10. But, I tested upgrading pip to 6.1.1 and it works. Something must be not backwards compatible.