[PyQt] ImportError: No module named 'time'
Jakob Simon-Gaarde
jakobsg at gmail.com
Thu Mar 10 11:38:26 GMT 2016
I have already selected it, and yes it was selected as dependency by other
modules.
I still don't understand though. When is timemodule.c supposed to be
compiled? Is it when I build my static version of Python, or is it when I
pyqtdeploy my PyQt5 based project.
As far as I know time is never dynamically loaded module but a pure
built-in module.
On Thu, Mar 10, 2016 at 11:08 AM, Phil Thompson <phil at riverbankcomputing.com
> wrote:
> On 10 Mar 2016, at 8:31 am, Jakob Simon-Gaarde <jakobsg at gmail.com> wrote:
> >
> > More info. I just tried to start all over building the static version of
> Python. Here is the output.
> >
> > http://pastebin.com/raw/rtuB9iHs
> >
> > I noticed that Modules/timemodule.c isn't being compiled or linked into
> the final library.
> >
> > I'm guessing that's why I can't import the built-in time module.
>
> Only the absolutlely required modules are compiled.
>
> You should select any module you are explicitly importing on the Standard
> Library tab. However I would have expected that the time module would have
> been implicitly selected because other modules depend on it.
>
> Phil
--
Med venlig hilsen / Best regards
Jakob Simon-Gaarde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160310/1393ee1e/attachment.html>
More information about the PyQt
mailing list