PKG: Cant seem to build scikits debian package from source

Nadav Horesh nadavh.horesh at gmail.com
Fri Dec 23 05:48:07 EST 2011


There is a new import statement syntax. I think you should upgrade your
python. I have no experience with Debian, but on the seveal other linux
distros I used this upgrade is easy and harmless.

   Nadav.

2011/12/23 harish badrinath <harishbadrinath at gmail.com>

> Hello,
> I cant seem to build scikits-image from source using debuild.
>
> Here are the steps i followed:
> a)I checkout master and debian branches in seprate directories.
> b) export master branch as a tar ball
> c) run dh_make (a debian specific packaging helper script)
> d) copy the contents of the debian directory to the directory in which
> i ran dh_make
> e) run debbuild
>
> The log of the build is
> <snip>
> dh clean --buildsystem python_distutils
>   dh_testdir -O--buildsystem=python_distutils
>   dh_auto_clean -O--buildsystem=python_distutils
> Traceback (most recent call last):
>  File "setup.py", line 101, in <module>
>    cmdclass={'build_py': build_py},
>  File "/usr/lib/pymodules/python2.5/numpy/distutils/core.py", line
> 152, in setup
>    config = configuration()
>  File "setup.py", line 42, in configuration
>    config.add_subpackage('skimage')
>  File "/usr/lib/pymodules/python2.5/numpy/distutils/misc_util.py",
> line 957, in add_subpackage
>    caller_level = 2)
>  File "/usr/lib/pymodules/python2.5/numpy/distutils/misc_util.py",
> line 926, in get_subpackage
>    caller_level = caller_level + 1)
>  File "/usr/lib/pymodules/python2.5/numpy/distutils/misc_util.py",
> line 863, in _get_configuration_from_setup_py
>    config = setup_module.configuration(*args)
>  File "skimage/setup.py", line 8, in configuration
>    config.add_subpackage('graph')
>  File "/usr/lib/pymodules/python2.5/numpy/distutils/misc_util.py",
> line 957, in add_subpackage
>    caller_level = 2)
>  File "/usr/lib/pymodules/python2.5/numpy/distutils/misc_util.py",
> line 926, in get_subpackage
>    caller_level = caller_level + 1)
>  File "/usr/lib/pymodules/python2.5/numpy/distutils/misc_util.py",
> line 848, in _get_configuration_from_setup_py
>    ('.py', 'U', 1))
>  File "skimage/graph/setup.py", line 3, in <module>
>    from skimage._build import cython
>  File
> "/home/code/projs/scikits-image-master/scikits-image-0.4/skimage/__init__.py",
> line 64
>    from .util.dtype import *
> SyntaxError: 'import *' not allowed with 'from .'
> dh_auto_clean: python2.5 setup.py clean -a returned exit code 1
> make: *** [clean] Error 1
> dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit
> status 2
> debuild: fatal error at line 1325:
> dpkg-buildpackage -rfakeroot -D -us -uc failed
> </snip>
> Since i have very little experience with python, its build system, etc
> any help would be appreciated.
>
> Regards,
> Harish
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20111223/58fd7dbf/attachment.html>


More information about the scikit-image mailing list