Page 1 of 1

SP doesn't include "time" Python module?

Posted: Wed Aug 29, 2012 12:49 am
by BackRaw
Hey,

I'm trying this[python]from threading import Timer[/python]and I get this error when I try to load the addon:

Code: Select all

Traceback (most recent call last):
  File "../addons/source-python/_libs/addons/manager.py", line 35, in __missing__
    instance = _LoadedAddon(addon_name)
  File "../addons/source-python/_libs/addons/manager.py", line 201, in __init__
    addon = __import__(addon_name + '.' + addon_name)
  File "../addons/source-python/./elimination/elimination.py", line 11, in <module>
    from threading import Timer
  File "../addons/source-python/engines/threading.py", line 6, in <module>
    from time import sleep as _sleep

ImportError: No module named 'time'

How come? :D

EDIT: Just installed Python 3.1 on Debian and it doesn't have the module either, but imports it in threading.py...

Posted: Wed Aug 29, 2012 12:58 am
by satoon101
Strange... Works for me... Maybe try re-uploading your engines folder.

Satoon

Posted: Wed Aug 29, 2012 1:03 am
by BackRaw
satoon101 wrote:Strange... Works for me... Maybe try re-uploading your engines folder.

Satoon


It isn't included in the source code...

Posted: Wed Aug 29, 2012 1:08 am
by satoon101
Hmmm, must be a Linux issue. We'll have to look into it.

Satoon

Posted: Wed Aug 29, 2012 1:10 am
by BackRaw
satoon101 wrote:Hmmm, must be a Linux issue. We'll have to look into it.

Satoon


Alright thanks :)

EDIT: Just looked at EventScripts's _libs folder, and guess what: it doesn't have it either oO

EDIT2: "math" is somehow unknown, too..

Posted: Sun Sep 02, 2012 8:31 pm
by your-name-here
This issue is fixed. We weren't including the lib-dynload folder in the path which had cpython33-time.so.