incapaz de instalar um pacote usando pip

1

Estou tentando instalar um pacote usando pip dentro de um virtualenv:

pip install fuse-python

mas a saída é

Downloading/unpacking fuse-python
  Downloading fuse-python-0.2.tar.gz (53kB): 53kB downloaded
  Running setup.py (path:/home/nicu/dev/bacula/ve/build/fuse-python/setup.py) egg_info for package fuse-python
    Usage: pkg-config [-?] [--version] [--modversion]
            [--atleast-pkgconfig-version=VERSION] [--libs] [--static]
            [--short-errors] [--libs-only-l] [--libs-only-other] [--libs-only-L]
            [--cflags] [--cflags-only-I] [--cflags-only-other] [--variable=NAME]
            [--define-variable=NAME=VALUE] [--exists] [--print-variables]
            [--uninstalled] [--atleast-version=VERSION] [--exact-version=VERSION]
            [--max-version=VERSION] [--list-all] [--debug] [--print-errors]
            [--silence-errors] [--errors-to-stdout] [--print-provides]
            [--print-requires] [--print-requires-private] [-?|--help] [--usage]
    pkg-config could not find fuse:
    you might need to adjust PKG_CONFIG_PATH or your
    FUSE installation is very old (older than 2.1-pre1)
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/nicu/dev/bacula/ve/build/fuse-python/setup.py", line 69, in <module>
        iflags = [x[2:] for x in cflags.split() if x[0:2] == '-I']
    NameError: name 'cflags' is not defined
    Complete output from command python setup.py egg_info:
    Usage: pkg-config [-?] [--version] [--modversion]

        [--atleast-pkgconfig-version=VERSION] [--libs] [--static]

        [--short-errors] [--libs-only-l] [--libs-only-other] [--libs-only-L]

        [--cflags] [--cflags-only-I] [--cflags-only-other] [--variable=NAME]

        [--define-variable=NAME=VALUE] [--exists] [--print-variables]

        [--uninstalled] [--atleast-version=VERSION] [--exact-version=VERSION]

        [--max-version=VERSION] [--list-all] [--debug] [--print-errors]

        [--silence-errors] [--errors-to-stdout] [--print-provides]

        [--print-requires] [--print-requires-private] [-?|--help] [--usage]

pkg-config could not find fuse:

you might need to adjust PKG_CONFIG_PATH or your

FUSE installation is very old (older than 2.1-pre1)

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/home/nicu/dev/bacula/ve/build/fuse-python/setup.py", line 69, in <module>

    iflags = [x[2:] for x in cflags.split() if x[0:2] == '-I']

NameError: name 'cflags' is not defined

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/nicu/dev/bacula/ve/build/fuse-python
Storing debug log for failure in /home/nicu/.pip/pip.log

até onde eu sei, há algo errado com o pkg-config e o PKG_CONFIG_PATH

Estou executando o ubuntu 14.04, e a saída de dpkg -l | grep is (então a instalação do meu fusível não é 'muito antiga'):

ii  fuse                                        2.9.2-4ubuntu4                                      amd64        Filesystem in Userspace
ii  gvfs-fuse                                   1.20.1-1ubuntu1                                     amd64        userspace virtual filesystem - fuse server
ii  ifuse                                       1.1.2-0.1                                           amd64        FUSE module for iPhone and iPod Touch devices
ii  libfuse2:amd64                              2.9.2-4ubuntu4                                      amd64        Filesystem in Userspace (library)

ATUALIZAÇÃO: Instalei-o usando o sudo apt-get install python-fuse, mas que o instalou globalmente:

ii  python-fuse       2:0.2.1-9   amd64    Python bindings for FUSE (Filesystems in USErland)
    
por NiCU 13.06.2014 / 12:22

1 resposta

3

Instale sudo apt-get install libfuse-dev e tente novamente. Funciona.

    
por Paolo 31.10.2014 / 12:11