I created a little script using the datetime functions in python and am trying to convert this to a .exe using py2exe. When I try running this from someone else's machine I get an error message about calendare module not found
This is the python
import datetime
import calendar
no_of_days = int(raw_input('enter to number of days you want to add: '))
print no_of_days
today = datetime.date.today()
datethen = today + datetime.timedelta(days=no_of_days)
print 'the answer is: ' , datethen
The setup script looks like this
from distutils.core import setup
import py2exe
import datetime
import calendar
setup(console=['datestuff.py'])
When I run it on his machine I get this error message- (I already copied python25.dll and the MSVR71.dll files to his machine)
Traceback (most recent call last):
File "C:\Python25\lib\site-packages\py2exe\boot_common.py", line 92, in <modul
e>
import linecache
ImportError: No module named linecache
Traceback (most recent call last):
File "datestuff.py", line 2, in <module>
ImportError: No module named calendar