[PyQt] ImportError: No module named 'time'

Phil Thompson phil at riverbankcomputing.com
Fri Mar 11 08:46:12 GMT 2016


On 10 Mar 2016, at 11:12 pm, Jakob Simon-Gaarde <jakobsg at gmail.com> wrote:
> 
> Ahh - I see now that there are references to timemodule.c the .pro file - only problem is that it will never be build.
> 
> Here is my pyqtdeploy command:
> 
> pyqtdeploycli --project myproject.pdy --target linux-64 build
> 
> 
> In the resulting .pro file I can see the following variable definitions:
> 
> !linux-* {
>     DEFINES += Py_BUILD_CORE
>     INCLUDEPATH += /home/jakob/dev/tmp/testpyqt/sysroot-linux/src/Python-3.5.1/Modules
>     SOURCES += /home/jakob/dev/tmp/testpyqt/sysroot-linux/src/Python-3.5.1/Modules/selectmodule.c
>     SOURCES += /home/jakob/dev/tmp/testpyqt/sysroot-linux/src/Python-3.5.1/Modules/_heapqmodule.c
>     SOURCES += /home/jakob/dev/tmp/testpyqt/sysroot-linux/src/Python-3.5.1/Modules/timemodule.c
>     SOURCES += /home/jakob/dev/tmp/testpyqt/sysroot-linux/src/Python-3.5.1/Modules/_math.c
>     SOURCES += /home/jakob/dev/tmp/testpyqt/sysroot-linux/src/Python-3.5.1/Modules/mathmodule.c
> }
> 
> And since it is exactly linux I am building for I will of course never get the modules build.
> 
> I wonder if I am doing something wrong in the deployment process.

What are the states of the "Use standard Python shared library" buttons on the "Standard Library" tab?

Phil


More information about the PyQt mailing list