seanbell / opensurfaces

Crowdsourcing pipeline and website for OpenSurfaces [SIG '13] and Intrinsic Images in the Wild [SIG '14]
http://opensurfaces.cs.cornell.edu/
MIT License
150 stars 41 forks source link

pyleargist==2.0.5 is broken in pypi #5

Open kmatzen opened 8 years ago

kmatzen commented 8 years ago

pyleargist==2.0.5 in pypi seems broken.

It's missing src/leargist.pxd. This file is in their repo though. bitbucket src/leargist.pxd

Recommended workaround: update the install_python.sh script to install pyleargist from the bitbucket repo instead of pypi. I'll contact the author and file a ticket with them.

Installing collected packages: pyleargist
  Running setup.py install for pyleargist
    cythoning src/leargist.pyx to src/leargist.c

    Error compiling Cython file:
    ------------------------------------------------------------
    ...
    from libc.stdlib cimport free

    from cpython cimport PyObject, Py_INCREF
    import cython

    cimport leargist
           ^
    ------------------------------------------------------------

    src/leargist.pyx:6:8: 'leargist.pxd' not found
    building 'leargist' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opensurfaces/venv/local/lib/python2.7/site-packages/numpy/core/include -Ilear_gist -I/usr/include/python2.7 -c lear_gist/standalone_image.c -o build/temp.linux-x86_64-2.7/lear_gist/standalone_image.o -DUSE_GIST -DSTANDALONE_GIST
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opensurfaces/venv/local/lib/python2.7/site-packages/numpy/core/include -Ilear_gist -I/usr/include/python2.7 -c lear_gist/gist.c -o build/temp.linux-x86_64-2.7/lear_gist/gist.o -DUSE_GIST -DSTANDALONE_GIST
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opensurfaces/venv/local/lib/python2.7/site-packages/numpy/core/include -Ilear_gist -I/usr/include/python2.7 -c src/leargist.c -o build/temp.linux-x86_64-2.7/src/leargist.o -DUSE_GIST -DSTANDALONE_GIST
    src/leargist.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
     #error Do not use this file, it is the result of a failed Cython compilation.
      ^
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    Complete output from command /opensurfaces/venv/bin/python -c "import setuptools, tokenize;__file__='/opensurfaces/venv/build/pyleargist/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3yNTeO-record/install-record.txt --single-version-externally-managed --compile --install-headers /opensurfaces/venv/include/site/python2.7:
    running install

running build

running build_ext

cythoning src/leargist.pyx to src/leargist.c

Error compiling Cython file:

------------------------------------------------------------

...

from libc.stdlib cimport free

from cpython cimport PyObject, Py_INCREF

import cython

cimport leargist

       ^

------------------------------------------------------------

src/leargist.pyx:6:8: 'leargist.pxd' not found

building 'leargist' extension

creating build

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/lear_gist

creating build/temp.linux-x86_64-2.7/src

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opensurfaces/venv/local/lib/python2.7/site-packages/numpy/core/include -Ilear_gist -I/usr/include/python2.7 -c lear_gist/standalone_image.c -o build/temp.linux-x86_64-2.7/lear_gist/standalone_image.o -DUSE_GIST -DSTANDALONE_GIST

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opensurfaces/venv/local/lib/python2.7/site-packages/numpy/core/include -Ilear_gist -I/usr/include/python2.7 -c lear_gist/gist.c -o build/temp.linux-x86_64-2.7/lear_gist/gist.o -DUSE_GIST -DSTANDALONE_GIST

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opensurfaces/venv/local/lib/python2.7/site-packages/numpy/core/include -Ilear_gist -I/usr/include/python2.7 -c src/leargist.c -o build/temp.linux-x86_64-2.7/src/leargist.o -DUSE_GIST -DSTANDALONE_GIST

src/leargist.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.

 #error Do not use this file, it is the result of a failed Cython compilation.

  ^

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /opensurfaces/venv/bin/python -c "import setuptools, tokenize;__file__='/opensurfaces/venv/build/pyleargist/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3yNTeO-record/install-record.txt --single-version-externally-managed --compile --install-headers /opensurfaces/venv/include/site/python2.7 failed with error code 1 in /opensurfaces/venv/build/pyleargist
Storing debug log for failure in /root/.pip/pip.log
kmatzen commented 8 years ago

Filed an issue. https://bitbucket.org/ogrisel/pyleargist/issues/4/pyleargist-205-broken-in-pypi

seanbell commented 8 years ago

Thanks for finding all these issues. Pyleargist isn't actually used any more, so I will just delete it from the dependency list.