|
From: Jeremy A. <Jer...@ut...> - 2009-02-23 19:35:07
|
Im new to Python please help. Y do I keep getting the error No module named decimal as I runmy exe file? what am I doing wrong? Traceback (most recent call last): File "my.py", line 6, in <module> File "_mssql.pyc", line 12, in <module> File "_mssql.pyc", line 10, in __load ImportError: No module named decimal ---- setup.py file -------- from distutils.core import setup import py2exe setup(console=['C:\Python26\my Porgs\HEATUserCount-logger.py']) -------------------------- --------- my.py file ------ import _mssql con = _mssql.connect(server='sql.server.edu:1433', user='my name', password='*******', \ database='my DB') con.execute_non_query("INSERT INTO UserCount (Loggedin, datetime) SELECT count (LoginID) as 'Loggedin', CURRENT_TIMESTAMP as 'datetime' from login where Status >= '1'") con.close() exit ---------------------------- |