SP doesn't include "time" Python module?

All other Source.Python topics and issues.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

SP doesn't include "time" Python module?

Postby BackRaw » Wed Aug 29, 2012 12:49 am

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...
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 29, 2012 12:58 am

Strange... Works for me... Maybe try re-uploading your engines folder.

Satoon
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Wed Aug 29, 2012 1:03 am

satoon101 wrote:Strange... Works for me... Maybe try re-uploading your engines folder.

Satoon


It isn't included in the source code...
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 29, 2012 1:08 am

Hmmm, must be a Linux issue. We'll have to look into it.

Satoon
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Wed Aug 29, 2012 1:10 am

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..
your-name-here
Developer
Posts: 168
Joined: Sat Jul 07, 2012 1:58 am

Postby your-name-here » Sun Sep 02, 2012 8:31 pm

This issue is fixed. We weren't including the lib-dynload folder in the path which had cpython33-time.so.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 30 guests