[PyQt] ImportError: No module named 'time'
Phil Thompson
phil at riverbankcomputing.com
Fri Mar 11 09:15:00 GMT 2016
On 11 Mar 2016, at 9:05 am, Jakob Simon-Gaarde <jakobsg at gmail.com> wrote:
>
> I have marked: "Linux"
So you are telling it you are using the system Python (with its time module) and not a Python you have built yourself.
Phil
> On Fri, Mar 11, 2016 at 9:46 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:
> 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
>
>
>
> --
> Med venlig hilsen / Best regards
> Jakob Simon-Gaarde
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list