[PyQt] ImportError: No module named 'time'

Jakob Simon-Gaarde jakobsg at gmail.com
Thu Mar 10 07:09:11 GMT 2016


Thanks for the response Andrea. I'm sorry I didn't realize before now that
I only reported an ImportError and not the details about it:

ImportError: No module named 'time'

So no there is no time.py or time.pyc file anywhere in the project or in
the resulting build.

On Wed, Mar 9, 2016 at 2:28 PM, Andrea Griffini <agriff at tin.it> wrote:

> May be you've a "time.py" or "time.pyc" file in the current directory?
>
> Andrea
>
> On Wed, Mar 9, 2016 at 1:02 PM, Jakob Simon-Gaarde <jakobsg at gmail.com>
> wrote:
>
>> Is there anybody else who has experienced this problem?
>>
>> On Mon, Mar 7, 2016 at 2:41 PM, Jakob Simon-Gaarde <jakobsg at gmail.com>
>> wrote:
>>
>>> Hi.
>>>
>>> I can see that soneone else reported something similar some time ago:
>>> https://riverbankcomputing.com/pipermail/pyqt/2014-July/034581.html
>>>
>>> But I didn't get further to solving my problem by reading that thread.
>>>
>>> I have build Python statically in accordance to the guide:
>>> http://pyqt.sourceforge.net/Docs/pyqtdeploy/static_builds.html#python
>>>
>>> I can import PyQt5 modules and bring up UI-stuff, but if I make a simple
>>> "import time", ImportError is raised.
>>>
>>> I have run the nm command on my libpython3.5.a to see if there is a time
>>> symbol anywhere, but that is not the case:
>>>
>>> nm libpython3.5.a | grep -i time
>>>
>>> output:
>>> http://pastebin.com/yypfF3gC
>>>
>>> Shouldn't it be referenced somewhere as a symbol. I'm guessing time
>>> should be a built-in module.
>>>
>>> --
>>> Med venlig hilsen / Best regards
>>> Jakob Simon-Gaarde
>>>
>>
>>
>>
>> --
>> Med venlig hilsen / Best regards
>> Jakob Simon-Gaarde
>>
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>


-- 
Med venlig hilsen / Best regards
Jakob Simon-Gaarde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160310/749fee68/attachment.html>


More information about the PyQt mailing list