[PyQt] Test pyqtdeploy with wiggly.py
Phil Thompson
phil at riverbankcomputing.com
Mon Mar 31 22:28:12 BST 2014
On 31-03-2014 7:13 pm, Charlie Gentil wrote:
> Le dimanche 30 mars 2014, 19:02:46 Phil Thompson a écrit :
>
>> On 29-03-2014 9:11 am, Charlie Gentil wrote:
>
>> > Hi,
>
>> >
>
>> > I continue to test pyqtdeploy.
>
>> >
>
>> > I build Python, Qt, SIP and PyQt with static libraries in
> /home/dev/
>
>> > .
>
>> >
>
>> >
>
>> > I am currently doing a test with wiggly.py as in doc.
>
>> >
>
>> > Here is the error when I run make.
>
>> >
>
>> > Note:
>
>> >
>
>> > - qmk point to qmake with which I built PyQt.
>
>> >
>
>> > - I do not understand why elements are searched in
>
>> > /home/charlie/Documents/Python-3.4.0 (folder where I unpacked the
>
>> > sources of Python)
>
>>
>
>> I can't explain that - but it's not the cause of the problem below.
>
>> However there is something odd going on with the handling of
> relative
>
>> pathnames on the Python Configuration tab.
>
>>
>
>> > [charlie at charlie builddir]$ qmk
>
>> >
>
>> > RCC: Warning: No resources in 'application.qrc'.
>
>> >
>
>> > [charlie at charlie builddir]$ make
>
>>
>
>> ...snip...
>
>>
>
>> > g++ -Wl,-O1 -o wiggly main.o pyqtdeploy_main.o mfsimport.o
>
>> > wiggly_plugin_import.o qrc_application.o qrc_stdlib.o
>
>> > qrc_site-packages.o
>
>> > -L/home/dev/python/lib/python3.4/site-packages/PyQt5
>
>> > -L/home/dev/python/lib/python3.4/site-packages -lQtGui -lQtWidgets
>
>
>> > -lQtCore -lsip -L/home/dev/python/lib -lpython3.4m
> -L/home/dev/qt/lib
>
>> > -lQt5Widgets -lgobject-2.0 -L/home/dev/qt/plugins/platforms -lqxcb
>
>
>> > -lX11-xcb -lXi -lxcb-render-util -lSM -lICE -lxcb-glx -lxcb-render
>
>
>> > -lxcb-keysyms -ldbus-1 -lxcb -lxcb-image -lxcb-icccm -lxcb-sync
>
>> > -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-xkb
> -lxkbcommon
>
>> > -lQt5PlatformSupport -lfontconfig -lfreetype -lXrender -lXext
> -lX11
>
>> > -ludev -lmtdev -lQt5DBus -lQt5Gui -ljpeg -lpng -lEGL -lQt5Core -lz
>
>
>> > -licui18n -licuuc -lpcre16 -lm -ldl -lgthread-2.0 -pthread
> -lglib-2.0
>
>> > -lrt -lGL -lpthread
>
>> >
>
>> > /home/dev/python/lib/libpython3.4m.a(posixmodule.o): dans la
> fonction
>
>> > « posix_openpty »:
>
>> >
>
>> > /home/charlie/Documents/Python-3.4.0/./Modules/posixmodule.c:6000:
>
>
>> > référence indéfinie vers « openpty »
>
>> >
>
>> > /home/dev/python/lib/libpython3.4m.a(posixmodule.o): dans la
> fonction
>
>> > « posix_forkpty »:
>
>> >
>
>> > /home/charlie/Documents/Python-3.4.0/./Modules/posixmodule.c:6089:
>
>
>> > référence indéfinie vers « forkpty »
>
>> >
>
>> > collect2: erreur: ld a retourné 1 code d'état d'exécution
>
>> >
>
>> > Makefile:244: recipe for target 'wiggly' failed
>
>> >
>
>> > make: *** [wiggly] Error 1
>
>>
>
>> Edit the generated Makefile and add -lutil to the end of the LIBS
> line.
>
>>
>
>> I need a way to automatically add these platform specific
> dependencies.
>
>>
>
>> Phil
>
>> _______________________________________________
>
>> PyQt mailing list PyQt at riverbankcomputing.com
>
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> Hi,
>
> Thank you . The make command works well and generates several files
> with executable file "wiggly".
>
> Here is the result of the command "./wiggly".
>
> Note: I tested the wiggly.py file. Everything works correctly.
>
> [charlie at charlie build]$ ./wiggly
>
> Traceback (most recent call last):
>
> File "/home/charlie/Documents/dev/Test_pyqtdeploy/Test1/wiggly.py",
> line 45, in <module>
>
> from PyQt5.QtCore import QBasicTimer
>
> File "/home/dev/python/lib/python3.4/importlib/__init__.py", line
> 35,
> in <module>
>
> import types
>
> ImportError: No module named 'types'
>
> What can be the problem ?
You need to include the types module. See...
http://pyqt.sourceforge.net/Docs/pyqtdeploy/tutorial.html#defining-the-standard-library-packages
Phil
More information about the PyQt
mailing list