[PyQt] Building PyQt5 fails with error: QUrl::UserInputResolutionOption’ is not a class or namespace

abinashk-inf abinashkr94 at gmail.com
Mon Oct 2 16:40:16 BST 2017


Hi, I am trying to build PyQt5 from source. PyQt5 is one of the dependencies
of Uranium framework.
System spec: Ubuntu 32bit
Steps undertaken:
1. Installed SIP v4.19.3
2. Run the configure.py script. [python3 configure.py --qmake
/path/to/qmake] The qmake version used is 5.5
3. make 
After 'make' command it gives out following error:

/cd QtCore/ && ( test -e Makefile || /home/avi/Qt/5.5/gcc/bin/qmake
/home/avi/PyQt5_gpl-5.9/QtCore/QtCore.pro -o Makefile ) && make -f Makefile 
make[1]: Entering directory '/home/avi/PyQt5_gpl-5.9/QtCore'
g++ -c -m32 -pipe -O2 -fno-exceptions -Wall -W -D_REENTRANT -fPIC
-DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DPy_LIMITED_API=0x03040000
-DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I.
-I/usr/include/python3.5m -I../qpy/QtCore -I../../Qt/5.5/gcc/include
-I../../Qt/5.5/gcc/include/QtCore -I.
-I../../Qt/5.5/gcc/mkspecs/linux-g++-32 -o sipQtCoreQUrl.o sipQtCoreQUrl.cpp
/home/avi/PyQt5_gpl-5.9/QtCore/sipQtCoreQUrl.cpp: In function ‘PyObject*
meth_QUrl_fromUserInput(PyObject*, PyObject*, PyObject*)’:
/home/avi/PyQt5_gpl-5.9/QtCore/sipQtCoreQUrl.cpp:1403:59: error:
‘QUrl::UserInputResolutionOption’ is not a class or namespace
          ::QUrl::UserInputResolutionOptions a2def =
QUrl::UserInputResolutionOption::DefaultResolution;
                                                           ^
Makefile:25662: recipe for target 'sipQtCoreQUrl.o' failed
make[1]: *** [sipQtCoreQUrl.o] Error 1
make[1]: Leaving directory '/home/avi/PyQt5_gpl-5.9/QtCore'
Makefile:80: recipe for target 'sub-QtCore-make_first-ordered' failed
make: *** [sub-QtCore-make_first-ordered] Error 2/
I tried installing pyqt5 using system command: 'sudo apt-get install
python3-pyqt5', however this does not contain a module called QtQml which I
required, Hence I need to compile from source.



--
Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html


More information about the PyQt mailing list