Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176466

Re: python time module

From Rick Valenzuela <rick@rickv.com>
Newsgroups linux.debian.user
Subject Re: python time module
Date 2017-01-08 20:40 +0100
Message-ID <sXrtU-2gK-15@gated-at.bofh.it> (permalink)
References <sXcEx-YU-1@gated-at.bofh.it> <sXqxP-1C6-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>On Sat, Jan 07, 2017 at 08:29:05PM -0700, Joe Pfeiffer wrote:
>>(2) More seriously, I'm getting the following error and traceback trying
>>   to run my very first script:
>>
>>nowball:13$ python box1.py
>>Traceback (most recent call last):
>> File "box1.py", line 1, in <module>
>>   from OCC.Display.SimpleGui import init_display
>> File "/home/joseph/python/lib/python2.7/site-packages/OCC/Display/SimpleGui.py", line 20, in <module>
>>   import logging
>> File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
>>   import sys, os, time, cStringIO, traceback, warnings, weakref, collections
>>ImportError: No module named time
>>
>>>From everything I'm finding, it looks like both the logging and time
>>modules should be installed by default with python; what do I need to
>>install that is missing at present to get the time module?


Going from the first line in the traceback, does box1.py have a line
that says `import time`? To save space in your project, not all things
in the standard library are pulled in to every project. You have to
declare you need it.

And I'm sorry for top-posting before.

-- 
Rick Valenzuela
Videojournalist
Shanghai, China

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

python time module Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2017-01-08 04:50 +0100
  Re: python time module Michael Lange <klappnase@freenet.de> - 2017-01-08 12:40 +0100
  Re: python time module lists@rickv.com - 2017-01-08 19:40 +0100
    Re: python time module Rick Valenzuela <rick@rickv.com> - 2017-01-08 20:40 +0100
    Re: python time module Nicolas George <george@nsup.org> - 2017-01-08 21:50 +0100
      Re: python time module lists@rickv.com - 2017-01-08 23:50 +0100

csiph-web