Bug 342624 - can't install digikam because py27-numpy refuses to install.
Summary: can't install digikam because py27-numpy refuses to install.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Cmake (show other bugs)
Version: unspecified
Platform: MacPorts macOS
: NOR grave
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-08 12:44 UTC by a1mixer
Modified: 2017-08-10 06:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description a1mixer 2015-01-08 12:44:36 UTC
--->  Computing dependencies for py27-gobject...
--->  Dependencies to be installed: py27-cairo py27-numpy
--->  Building py27-numpy
Running from numpy source directory.
Traceback (most recent call last):
  File "/opt/local/bin/cython", line 9, in <module>
    load_entry_point('Cython==0.21.2', 'console_scripts', 'cython')()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 637, in setuptools_main
    return main(command_line = 1)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 654, in main
    result = compile(sources, options)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 629, in compile
    return compile_multiple(source, options)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 602, in compile_multiple
    context = options.create_context()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 527, in create_context
    self.cplus, self.language_level, options=self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 69, in __init__
    from . import Builtin, CythonScope
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
    from .UtilityCode import CythonUtilityCode
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
    from .TreeFragment import parse_from_strings, StringParseContext
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/TreeFragment.py", line 20, in <module>
    from . import Parsing
  File "Cython/Compiler/Parsing.py", line 26, in init Cython.Compiler.Parsing (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-cython/py27-cython/work/Cython-0.21.2/Cython/Compiler/Parsing.c:55936)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/ModuleNode.py", line 2929, in <module>
    capsule_utility_code = UtilityCode.load("Capsule")
  File "Cython/Compiler/Code.py", line 240, in Cython.Compiler.Code.UtilityCodeBase.load (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-cython/py27-cython/work/Cython-0.21.2/Cython/Compiler/Code.c:7277)
    self.write("\n")
ValueError: More than one filename match found for utility code Capsule
Processing numpy/random/mtrand/mtrand.pyx
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 199, in <module>
    main()
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 195, in main
    find_process_files(root_dir)
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 187, in find_process_files
    process(cur_dir, fromfile, tofile, function, hash_db)
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 161, in process
    processor_function(fromfile, tofile)
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 72, in process_pyx
    raise Exception('Cython failed')
Exception: Cython failed
Cythonizing sources
Traceback (most recent call last):
  File "setup.py", line 251, in <module>
    setup_package()
  File "setup.py", line 239, in setup_package
    generate_cython()
  File "setup.py", line 191, in generate_cython
    raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
Exit code: 1
Warning: targets not executed for py27-numpy: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port py27-numpy for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

numpy log:

Building py27-numpy
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (py27-numpy)
:debug:build Environment: 
ATLAS='None'
BLAS='/usr/lib'
CC='/usr/bin/gcc-4.2'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/.CC_PRINT_OPTIONS'
CFLAGS='-arch x86_64 -arch i386'
CPATH='/opt/local/include'
CXX='/usr/bin/g++-4.2'
CXXFLAGS='-arch x86_64 -arch i386'
F77='/opt/local/bin/gfortran-mp-4.9'
F90='/opt/local/bin/gfortran-mp-4.9'
FC='/opt/local/bin/gfortran-mp-4.9'
LAPACK='/usr/lib'
LDFLAGS='-arch x86_64 -arch i386'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.6'
OBJC='/usr/bin/gcc-4.2'
OBJCFLAGS='-arch x86_64 -arch i386'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
:info:build Running from numpy source directory.
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/bin/cython", line 9, in <module>
:info:build     load_entry_point('Cython==0.21.2', 'console_scripts', 'cython')()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 637, in setuptools_main
:info:build     return main(command_line = 1)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 654, in main
:info:build     result = compile(sources, options)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 629, in compile
:info:build     return compile_multiple(source, options)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 602, in compile_multiple
:info:build     context = options.create_context()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 527, in create_context
:info:build     self.cplus, self.language_level, options=self)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/Main.py", line 69, in __init__
:info:build     from . import Builtin, CythonScope
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/CythonScope.py", line 5, in <module>
:info:build     from .UtilityCode import CythonUtilityCode
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/UtilityCode.py", line 3, in <module>
:info:build     from .TreeFragment import parse_from_strings, StringParseContext
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/TreeFragment.py", line 20, in <module>
:info:build     from . import Parsing
:info:build   File "Cython/Compiler/Parsing.py", line 26, in init Cython.Compiler.Parsing (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-cython/py27-cython/work/Cython-0.21.2/Cython/Compiler/Parsing.c:55936)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Compiler/ModuleNode.py", line 2929, in <module>
:info:build     capsule_utility_code = UtilityCode.load("Capsule")
:info:build   File "Cython/Compiler/Code.py", line 240, in Cython.Compiler.Code.UtilityCodeBase.load (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-cython/py27-cython/work/Cython-0.21.2/Cython/Compiler/Code.c:7277)
:info:build     self.write("\n")
:info:build ValueError: More than one filename match found for utility code Capsule
:info:build Processing numpy/random/mtrand/mtrand.pyx
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 199, in <module>
:info:build     main()
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 195, in main
:info:build     find_process_files(root_dir)
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 187, in find_process_files
:info:build     process(cur_dir, fromfile, tofile, function, hash_db)
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 161, in process
:info:build     processor_function(fromfile, tofile)
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1/tools/cythonize.py", line 72, in process_pyx
:info:build     raise Exception('Cython failed')
:info:build Exception: Cython failed
:info:build Cythonizing sources
:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 251, in <module>
:info:build     setup_package()
:info:build   File "setup.py", line 239, in setup_package
:info:build     generate_cython()
:info:build   File "setup.py", line 191, in generate_cython
:info:build     raise RuntimeError("Running cythonize failed!")
:info:build RuntimeError: Running cythonize failed!
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.9.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
:info:build Exit code: 1
:error:build org.macports.build for port py27-numpy returned: command execution failed
:debug:build Error code: CHILDSTATUS 25248 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for py27-numpy: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install py27-numpy
:debug:build Registry error: qt4-mac-sqlite3-plugin not registered as installed & active.
    invoked from within
"registry_active $subport"
    invoked from within
"$workername eval registry_active \$subport"
:notice:build Please see the log file for port py27-numpy for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-numpy/py27-numpy/main.log
 



Reproducible: Always

Steps to Reproduce:
1.install digikam
2.numpy install fails
3.

Actual Results:  
numpy install fails

Expected Results:  
install digikam

every install i try stops at py27-numpy.  i don't know how to go around it or why i need it.

i completely uninstalled all my ports and started reinstalling everything.  it all went fine until py27-numpy.
Error: org.macports.build for port py27-numpy returned: command execution failed
Error: Failed to install py27-numpy
i run os x 10.6.8.  macports 2.3.3
Comment 1 Christoph Feck 2015-01-08 15:08:43 UTC
digikam itself does not require Python. If some of its dependencies fails to configure python correctly, please report this to the developers of that dependency.
Comment 2 a1mixer 2015-01-08 21:46:20 UTC
   thanks. i'll be sending this to them also.

   if it's not required then why does the install fetch it? how to tell
   it not to? also had problems with mariadb saying it can't install with
   sqlite3

   how much of this not needed? nothing on your site about install
   problems. i only installed macports just to try this app. i've only
   had problems with kde stuff.

   ---> Computing dependencies for digikam
   ---> Dependencies to be installed: ImageMagick autoconf m4 perl5
   perl5.16 gdbm gettext expat libiconv ncurses automake bzip2 djvulibre
   jpeg librsvg cairo fontconfig freetype libpng xz zlib glib2 libffi
   libpixman pkgconfig xorg-libXext libtool xorg-libX11 xorg-kbproto
   xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db48
   db_select libedit openssl python_select sqlite3 xorg-libpthread-stubs
   xorg-xcb-proto libxml2 xorg-util-macros xorg-xextproto xorg-xcb-util
   xrender xorg-renderproto gdk-pixbuf2 gobject-introspection *py27-mako
   py27-beaker py27-setuptools py27-markupsafe* jasper shared-mime-info
   intltool p5.16-getopt-long p5.16-pathtools p5.16-scalar-list-utils
   p5.16-xml-parser tiff gtk-doc docbook-xml docbook-xml-4.1.2
   docbook-xml-4.2 xmlcatmgr docbook-xml-4.3 docbook-xml-4.4
   docbook-xml-4.5 docbook-xml-5.0 docbook-xsl fop itstool gawk readline
   *py27-libxml2* libxslt openjade opensp source-highlight boost icu gtk3
   at-spi2-atk at-spi2-core dbus dbus-glib xorg-libXevie xorg-evieproto
   xorg-libXi xorg-inputproto xorg-libXfixes xorg-fixesproto xorg-libXtst
   xorg-recordproto xorg-libice xorg-libsm atk dbus-python27
   hicolor-icon-theme pango Xft2 harfbuzz graphite2 xorg-libXcomposite
   xorg-compositeproto xorg-libXcursor xorg-libXdamage xorg-damageproto
   xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
   libcroco vala fftw-3 ghostscript jbig2dec libidn libpaper xorg-libXt
   jbigkit lcms2 openexr ilmbase openjpeg cmake curl curl-ca-bundle
   libarchive lzo2 urw-fonts webp automoc qt4-mac libmng lcms eigen3
   kde4-baseapps kactivities kdelibs4 aspell texinfo help2man
   p5.16-locale-gettext aspell-dict-en attica phonon avahi libdaemon
   libglade2 gtk2 *py27-gdbm py27-pygtk py27-cairo py27-numpy gcc49*
   cctools ld64 dyld-headers libmacho-headers llvm-3.4 llvm_select cloog
   gmp isl gcc_select libgcc libmpc mpfr *py27-cython cython_select
   py27-nose nosetests_select py27-gobject* bison dbusmenu-qt qjson
   docbook-xsl-ns enchant hunspell flex giflib gmake grantlee kerberos5
   libcomerr pcre qca shared-desktop-ontologies soprano libiodbc raptor2
   redland db46 rasqal mhash strigi clucene exiv2 ffmpeg XviD fribidi
   gnutls libtasn1 nettle p11-kit desktop-file-utils popt lame libass
   enca libbluray libmodplug libogg libopus libsdl libtheora libvorbis
   libvpx yasm openjpeg15 schroedinger orc coreutils speex texi2html x264
   virtuoso virtuoso-7 openldap cyrus-sasl2 tcp_wrappers nepomuk-core
   ebook-tools convertlit libtommath libzip kfilemetadata poppler-qt4-mac
   poppler poppler-data taglib mobipocket kde4-runtime gpgme gnupg2
   gpg-agent libassuan libgpg-error pth libgcrypt libksba pinentry
   libusb-compat libusb kdepimlibs4 akonadi clang-3.4 clang_select
   mariadb-server mariadb mysql_select qt4-mac-mariadb-plugin libical
   prison libdmtx qrencode libssh openslp oxygen-icons qimageblitz tidy
   git p5.16-authen-sasl p5.16-digest-hmac p5.16-digest-sha1 p5.16-gssapi
   p5.16-error p5.16-net-smtp-ssl p5.16-io-socket-ssl p5.16-net-libidn
   p5.16-net-ssleay p5.16-term-readkey rsync lensfun gccmakedep
   libgphoto2 gd2 xpm libexif libgpod libplist *swig-python gsed swig
   py27-mutagen* libkdcraw libraw libkexiv2 libkipi libksane
   sane-backends net-snmp liblqr marble gpsd scons libkdeedu opencv
   qt4-mac-sqlite3-plugin


   On 1/8/15 7:08 AM, Christoph Feck wrote:

     https://bugs.kde.org/show_bug.cgi?id=342624          
     Christoph Feck      <cfeck@kde.org> [1]      changed:
     
                What    |Removed                     |Added
     ----------------------------------------------------------------------------
                  Status|UNCONFIRMED                 |RESOLVED
              Resolution|---                         |DOWNSTREAM
                      CC|                            |     cfeck@kde.org [1]     
     --- Comment #1 from Christoph Feck      <cfeck@kde.org> [1]      ---
     digikam itself does not require Python. If some of its dependencies fails to
     configure python correctly, please report this to the developers of that
     dependency.


   


   1. mailto:cfeck@kde.org
Comment 3 Christoph Feck 2015-01-08 22:18:12 UTC
digikam requires:
- kdelibs4, qt4, boost
- libjpeg, libtiff, libpng, libpgf (for standard image formats)
- liblcms (for color management)
- libkexiv2 (for Metadata)
- libkdcraw (for digital camera RAW image formats)
- opencv (for image processing)

Any other dependency is optional. Please ask for help in a developer support forum or mailing list if you want to find out which dependency drags in python stuff.
Comment 4 caulier.gilles 2015-06-22 19:28:55 UTC
New digiKam 4.11.0 is available with official PKG installer for OSX.

https://www.digikam.org/node/740

Gilles Caulier