Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689574 - sci-geosciences/qgis-3.4.7 - src_configure(): Traceback (most recent call last): File ".../work/qgis-3.4.7/cmake/FindQsci.py", line 45, in <module> from PyQt5.Qsci import QSCINTILLA_VERSION_STR RuntimeError: the PyQt5.QtCore module failed to regi...
Summary: sci-geosciences/qgis-3.4.7 - src_configure(): Traceback (most recent call las...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-10 03:38 UTC by Martin Mokrejš
Modified: 2020-01-01 09:12 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build log for QGIS 3.4.12 (build.log,7.76 KB, text/x-log)
2019-10-22 17:38 UTC, Jean-Claude Repetto
Details
Patch for QGIS 3.4.12 and QGIS 9999 (qgis-scintilla.patch,1.67 KB, patch)
2019-10-24 09:21 UTC, Jean-Claude Repetto
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2019-07-10 03:38:56 UTC
Hi,
  I realized the following:

>>> Emerging (5 of 5) sci-geosciences/qgis-3.4.7::gentoo
 * qgis-3.4.7.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking qgis-3.4.7.tar.bz2 to /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work
>>> Source unpacked in /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work
>>> Preparing source in /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7 ...
 * Applying qgis-2.18.12-cmake-lib-suffix.patch ...                                                                                                                                                                                   [ ok ]
 * Applying qgis-3.4.7-featuresummary.patch ...                                                                                                                                                                                       [ ok ]
 * Applying qgis-3.4.7-default-qmldir.patch ...                                                                                                                                                                                       [ ok ]
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *  SET(CMAKE_COLOR_MAKEFILE ON)
 *        SET (CMAKE_INSTALL_PREFIX ${QGIS_MACAPP_PREFIX}/MacOS)
>>> Source prepared.
>>> Configuring source in /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7 ...
>>> Working in BUILD_DIR: "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build"
cmake -C /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DQGIS_MANUAL_SUBDIR=share/man/ -DQGIS_LIB_SUBDIR=lib64 -DQGIS_PLUGIN_SUBDIR=lib64/qgis -DQWT_INCLUDE_DIR=/usr/include/qwt6 -DQWT_LIBRARY=/usr/lib64/libqwt6-qt5.so -DPEDANTIC=OFF -DUSE_CCACHE=OFF -DWITH_APIDOC=OFF -DWITH_INTERNAL_MDAL=ON -DWITH_QSPATIALITE=ON -DENABLE_TESTS=OFF -DWITH_3D=no -DWITH_GEOREFERENCER=no -DWITH_GRASS7=no -DCMAKE_DISABLE_FIND_PACKAGE_HDF5=ON -DWITH_SERVER=no -DCMAKE_DISABLE_FIND_PACKAGE_NetCDF=ON -DUSE_OPENCL=no -DWITH_ORACLE=no -DWITH_QWTPOLAR=no -DWITH_POSTGRESQL=no -DWITH_BINDINGS=yes -DWITH_CUSTOM_WIDGETS=yes -DWITH_QUICK=no -DWITH_QTWEBKIT=no -DBINDINGS_GLOBAL_INSTALL=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/gentoo_toolchain.cmake  /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7
loading initial cache file /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/gentoo_common_config.cmake
CMake Warning (dev) at gentoo_common_config.cmake:8 (SET):
  implicitly converting 'BOOLEAN' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.1.0
-- The CXX compiler identification is GNU 9.1.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- QGIS version: 3.4.7 Madeira (30407)
-- Looking for openpty
-- Looking for openpty - not found
-- Looking for openpty
-- Looking for openpty - found
-- Looking for proj_info in /usr/lib/libproj.so
-- Looking for proj_info in /usr/lib/libproj.so - found
-- Found Proj: /usr/lib/libproj.so (6.0.0)
-- Found GEOS: /usr/lib/libgeos_c.so (3.7.2)
-- Found GDAL: /usr/lib/libgdal.so (2.4.1)
-- Found Expat: /usr/lib/libexpat.so
-- Found Spatialindex: /usr/lib/libspatialindex.so
-- Found Qwt: /usr/lib64/libqwt6-qt5.so (6.1.3)
-- Found libzip: /usr/lib/libzip.so
-- Found Sqlite3: /usr/lib/libsqlite3.so
-- Found SpatiaLite: /usr/lib/libspatialite.so
-- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so
-- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so - found
-- Qt WebKit support DISABLED.
-- Found Qt version: 5.12.4
-- Found QScintilla2: /usr/lib/libqscintilla2_qt5.so (2.10.8)
-- Found QtKeychain: /usr/lib/libqt5keychain.so
-- Found QCA: /usr/lib/libqca-qt5.so (2.2.1)
-- Found QCA OpenSSL plugin
-- Found PythonInterp: /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/python3.6/bin/python (found suitable version "3.6.8", minimum required is "3") 
-- Found Python executable: /scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/python3.6/bin/python
-- Found Python version: 3.6.8
-- Found Python library: /usr/lib/libpython3.6m.so
-- Found Python site-packages: /usr/lib64/python3.6/site-packages
-- Found PyQt5 version: 5.12.2
-- Found SIP version: 4.19.18
Traceback (most recent call last):
  File "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7/cmake/FindQsci.py", line 45, in <module>
    from PyQt5.Qsci import QSCINTILLA_VERSION_STR
RuntimeError: the PyQt5.QtCore module failed to register with the sip module
-- txt2tags not found - disabled
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Qsci sip file not found - disabling bindings for derived classes
-- The following OPTIONAL packages have been found:

 * Proj
 * GEOS
 * GDAL
 * Sqlite3
 * Qt5Positioning

-- The following REQUIRED packages have been found:

 * Expat
 * Spatialindex
 * Qwt
 * LibZip
 * SpatiaLite
 * Qt5Gui
 * Qt5Widgets
 * Qt5Network
 * Qt5Xml
 * Qt5Svg
 * Qt5Concurrent
 * Qt5PrintSupport
 * Qt5SerialPort
 * Qt5Test
 * Qt5UiTools
 * Qt5Sql
 * QScintilla
 * QtKeychain
 * QCA
 * PythonInterp (required version >= 3)
 * PythonLibrary
 * PyQt5
 * SIP
 * Qt5DBus
 * Qt5Qml
 * Qt5Quick (required version >= 5.12.4)
 * Qt5QuickWidgets
 * Qt5XmlPatterns
 * Qt5UiPlugin
 * Qt5Designer

-- The following REQUIRED packages have not been found:

 * Qsci

CMake Error at /usr/share/cmake/Modules/FeatureSummary.cmake:457 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  CMakeLists.txt:943 (FEATURE_SUMMARY)


-- Configuring incomplete, errors occurred!
See also "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/CMakeFiles/CMakeOutput.log".
See also "/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build/CMakeFiles/CMakeError.log".
 * ERROR: sci-geosciences/qgis-3.4.7::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3945:  Called cmake-utils_src_configure
 *   environment, line 1340:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=sci-geosciences/qgis-3.4.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-geosciences/qgis-3.4.7::gentoo'`.
 * The complete build log is located at '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/build.log'.
 * The ebuild environment file is located at '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/temp/environment'.
 * Working directory: '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7_build'
 * S: '/scratch/var/tmp/portage/sci-geosciences/qgis-3.4.7/work/qgis-3.4.7'



I realized I have older versions of x11-libs/qscintilla-2.10.8 and dev-python/qscintilla-python-2.10.8 installed and after upgrade to x11-libs/qscintilla-2.11.1 and dev-python/qscintilla-python-2.11.1-r1, qgis CmakeFile.txt checks passed. I conclude the versions of dependency(/ies) need to be raised.
Comment 1 vince.ice 2019-07-14 18:20:34 UTC
I believe the problem is that described here: https://bugs.gentoo.org/689514
Comment 2 Jean-Claude Repetto 2019-10-22 17:36:10 UTC
I have the same problem with QGIS 3.4.12
Comment 3 Jean-Claude Repetto 2019-10-22 17:38:15 UTC
Created attachment 593666 [details]
Full build log for QGIS 3.4.12
Comment 4 UlvHare 2019-10-24 06:29:37 UTC
Absolutely the same for version 3.4.12. Build log identical with Jean-Claude Repetto's one.
Comment 5 UlvHare 2019-10-24 07:29:46 UTC
Upgrading to x11-libs/qscintilla-2.11.1 and dev-python/qscintilla-python-2.11.1-r1 (both unstable) seems to solve the problem. At least compiled without errors, and starts. I have no fresh projects now, but can open my project from 03/2019 without any problems.

QGIS installed: 3.4.12^t(10:14:21 24.10.2019)(3d examples georeferencer grass postgres python qml -hdf5 -mapserver -netcdf -opencl -oracle -polar -webkit PYTHON_SINGLE_TARGET="python3_6 -python3_5" PYTHON_TARGETS="python3_6 -python3_5")
Comment 6 Jean-Claude Repetto 2019-10-24 09:21:05 UTC
Created attachment 593754 [details, diff]
Patch for QGIS 3.4.12 and QGIS 9999

I confirm that I can compile QGIS 3.4.12 with scintilla 2.11.1.
Comment 7 Thomas Beutin 2019-10-28 14:54:04 UTC
(In reply to Jean-Claude Repetto from comment #6)

> I confirm that I can compile QGIS 3.4.12 with scintilla 2.11.1.

The same here, qgis-3.4.12 compiles fine, and 

$ python3 -c 'from PyQt5.Qsci import QSCINTILLA_VERSION_STR'

doesn't throw an error anymore :)

(maybe the error comes from the dev-python/PyQt5 package!?)
Comment 8 Fabio Rossi 2019-11-28 09:56:29 UTC
I faced the same problem with qscintilla importing error with another software, also for me the upgrade to qscintilla-python >= 2.11.1 solves the issue
Comment 9 Chris Mayo 2019-12-04 19:46:10 UTC
QGIS 3.10.0 ​fine with:

dev-python/qscintilla-python-2.10.8
x11-libs/qscintilla-2.10.8

for me.

...
-- Found QScintilla2 PyQt module: 2.10.8
...
-- The following REQUIRED packages have been found:
...
 * QScintilla
Comment 10 Jean-Claude Repetto 2019-12-06 15:08:25 UTC
You are right, I downgraded qscintilla and qscintilla-python to 2.10.8, and now it works.
Probably something has been changed, that solved this problem.