Hi all, I'm trying to build scikit-image locally, in my git folder, and to just add it to my PYTHONPATH. I checked that all the requirements were met (confirmed by pip install -r requirements.txt). However, when I do
python setup.py build_ext -i
I get an error. I must be missing something but can't really figure out what... This is the output I get:
non-existing path in 'skimage/_shared': 'tests' non-existing path in 'skimage/_shared': 'geometry.c' non-existing path in 'skimage/_shared': 'interpolation.c' non-existing path in 'skimage/_shared': 'transform.c' non-existing path in 'skimage/draw': '_draw.c' non-existing path in 'skimage/feature': 'corner_cy.c' non-existing path in 'skimage/feature': 'censure_cy.c' non-existing path in 'skimage/feature': '_brief_cy.c' non-existing path in 'skimage/feature': '_texture.c' non-existing path in 'skimage/feature': '_template.c' cython -o /homes/jk712/scikit-image/skimage/filter/_ctmf.c /homes/jk712/scikit-image/skimage/filter/_ctmf.pyx Traceback (most recent call last): File "setup.py", line 146, in <module> cmdclass={'build_py': build_py}, File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 152, in setup config = configuration() File "setup.py", line 48, in configuration config.add_subpackage('skimage') File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage caller_level = 2) File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage caller_level = caller_level + 1) File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "skimage/setup.py", line 14, in configuration config.add_subpackage('filter') File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage caller_level = 2) File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage caller_level = caller_level + 1) File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "skimage/filter/setup.py", line 15, in configuration cython(['_ctmf.pyx'], working_path=base_path) File "/homes/jk712/scikit-image/skimage/_build.py", line 49, in cython subprocess.call(['cython', '-o', c_file, pyxfile]) File "/usr/lib/python2.7/subprocess.py", line 524, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Apparently the problem would be coming from a missing file _template.c
/usr/lib/python2.7/subprocess.py(524)call() 523 """ --> 524 return Popen(*popenargs, **kwargs).wait() 525
ipdb> print popenargs (['cython', '-o', '/homes/jk712/scikit-image/skimage/feature/_template.c', '/homes/jk712/scikit-image/skimage/feature/_template.pyx'],)
ipdb> print kwargs {}
On the other hand,
easy_install --prefix ~/usr scikit-image
works. Any idea of what is going on? Thanks, Jean
On Mon, Oct 14, 2013 at 3:38 PM, Jean K <jean.kossaifi@gmail.com> wrote:
ipdb> print popenargs (['cython', '-o', '/homes/jk712/scikit-image/skimage/feature/_template.c', '/homes/jk712/scikit-image/skimage/feature/_template.pyx'],)
It looks like cython wasn't installed correctly. Could you try the "cython" command from the terminal? Stéfan
participants (2)
-
Jean K
-
Stéfan van der Walt