Opened 3 years ago

Closed 5 weeks ago

#57112 closed defect (wontfix)

qgis: Error copying directory from "_dummy_thread" to ".../build/output/python/".

Reported by: news24lor Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: highsierra Cc: basmac
Port: qgis

Description

After many test qgis 2.18.17 does not built on Mac OS X 10.13.x

All dependencies are built but something is missing. The module pyfuture is missing.

I don't know if the last qgis 2.18.22 resolve but this bug is linked to macports in Mac OS X 10.13.x. In 10.12.x qgis is built.

....
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build make[2]: Nothing to be done for `python/plugins/processing/tools/CMakeFiles/zzz-processing-65-depend.dir/build'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17/python/ext-libs && /opt/local/bin/cmake -E copy_directory dateutil /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/output/python/dateutil
:info:build [  8%] Built target zzz-processing-63-depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f python/ext-libs/CMakeFiles/pyowslib.dir/build.make python/ext-libs/CMakeFiles/pyowslib.dir/depend
:info:build [  8%] Built target zzz-processing-65-depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f python/ext-libs/CMakeFiles/pynose2.dir/build.make python/ext-libs/CMakeFiles/pynose2.dir/depend
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17/python/ext-libs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/python/ext-libs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/python/ext-libs/CMakeFiles/pyowslib.dir/DependInfo.cmake --color=
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f python/ext-libs/CMakeFiles/pyfuture.dir/build.make python/ext-libs/CMakeFiles/pyfuture.dir/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17/python/ext-libs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/python/ext-libs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/python/ext-libs/CMakeFiles/pynose2.dir/DependInfo.cmake --color=
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17/python/ext-libs && /opt/local/bin/cmake -E copy_directory _dummy_thread /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/output/python/
:info:build Error copying directory from "_dummy_thread" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/output/python/".
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build make[2]: *** [pyfuture] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build make[1]: *** [python/ext-libs/CMakeFiles/pyfuture.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f python/ext-libs/CMakeFiles/pynose2.dir/build.make python/ext-libs/CMakeFiles/pynose2.dir/build
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f python/ext-libs/CMakeFiles/pyowslib.dir/build.make python/ext-libs/CMakeFiles/pyowslib.dir/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17/python/ext-libs && /opt/local/bin/cmake -E copy_directory nose2 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/output/python/nose2
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/QGIS-2_18_17/python/ext-libs && /opt/local/bin/cmake -E copy_directory owslib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build/output/python/owslib
:info:build [  8%] Built target pydateutil
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build [  8%] Built target pyowslib
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build [  8%] Built target pynose2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build qgis: command execution failed
:debug:build Error code: CHILDSTATUS 95547 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/main.log for details.

Change History (10)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: Veence removed
Keywords: gis removed
Owner: set to Veence
Port: qgis added
Status: newassigned

comment:2 Changed 3 years ago by news24lor

Perhaps the problem for QGIS under Mac OS X 10.13.x is to disable pyfuture. To disable pyfuture is need this flag in configure:

WITH_INTERNAL_FUTURE OFF

Where can I change the configure file to test?

Thanks

comment:3 Changed 3 years ago by Veence (Vincent)

I’m overdue on this, and on maintaining QGIS 2.18 in general. Will do the modification ASAP. Thanks for your patience.

comment:4 Changed 3 years ago by news24lor

Thank you !!!

comment:5 Changed 3 years ago by basmac

Cc: basmac added

comment:6 Changed 3 years ago by fvaccari

Facing the same problem trying to install on a MacPro running 10.11.6 (the latest supported system), where QGIS3 cannot be installed due to some qt5-related error.

Following the suggestion by news24lor I added the configuration argument to the Portfile, found in

/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/gis/qgis/Portfile

that now looks like

...
...
cmake.install_prefix    ${applications_dir}
#configure.args-append  "--trace"
configure.args-append   "-DWITH_INTERNAL_FUTURE=OFF"
configure.args-append   "-DWITH_GRASS=OFF"
...
...

and the installation was successful. But then upon launch I get this message, which seems to indicate that python support is disabled, so this is not an optimal solution...:

Couldn't load QGIS utils.
Python support will be disabled.


Traceback (most recent call last):
  File "", line 1, in 
  File "/Applications/MacPorts/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 20, in 
    from future import standard_library
ImportError: No module named future


Python version:
2.7.15 (default, Sep 12 2018, 13:34:28) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]

QGIS version:
2.18.17 'Las Palmas', exported

Python path:
['/Applications/MacPorts/QGIS.app/Contents/MacOS/../Resources/python', u'/Users/locadmin/.qgis2/python', u'/Users/locadmin/.qgis2/python/plugins', '/Applications/MacPorts/QGIS.app/Contents/MacOS/../Resources/python/plugins', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/readline', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages']
Last edited 3 years ago by fvaccari (previous) (diff)

comment:7 Changed 3 years ago by news24lor

Hi fvaccari

Your change in the configure file is good for QGIS 2.18.x. Now it builds under OS 10.13 and 10.14.

About your problem, you have to install py-future package in MacPorts. QGIS 2.18.17 works very well

comment:8 in reply to:  3 Changed 14 months ago by ryandesign (Ryan Schmidt)

Replying to Veence:

I’m overdue on this, and on maintaining QGIS 2.18 in general. Will do the modification ASAP. Thanks for your patience.

What's the status of this issue? Does a fix such as the one suggested above still need to be committed?

comment:9 Changed 14 months ago by ryandesign (Ryan Schmidt)

Keywords: highsierra added
Summary: qgis does not built on mac os x 10.13qgis: Error copying directory from "_dummy_thread" to ".../build/output/python/".

The reported problem Error copying directory from "_dummy_thread" to ".../build/output/python/" does still exist for me on High Sierra.

The port is still at version 2.18.17. The reporter noted above 2 years ago that 2.18.22 was available. In the mean time, 2.18.28 is available. Maybe updating will fix it.

comment:10 Changed 5 weeks ago by Veence (Vincent)

Resolution: wontfix
Status: assignedclosed

I’m closing all old tickets, since I’m not sure they’re relevant at all. Please reopen a new one in case the issue is still at hand.

Note: See TracTickets for help on using tickets.