ValueError: microsecond must be in 0..999999

18 views
Skip to first unread message

david

unread,
Jul 8, 2010, 4:21:00 AM7/8/10
to malgen-discuss-general
HI

I tried to generate benchmark data set for sector, but i got python
error like below.
how to fix this problem.

sh initial_generator.sh
0 Entity
0 Events Generated
Traceback (most recent call last):
File "/opt/malgen/bin/cloud/malgen/malgen.py", line 432, in ?
u=sitesSetup.iterateSites(startidx, nrecords, hosthash)
File "/opt/malgen/bin/cloud/malgen/malgen.py", line 276, in
iterateSites
RecordGenerator.iterateSites(self, startidx, nrecords, hosthash,
self.bg, distfile)
File "/opt/malgen/bin/cloud/malgen/malgen.py", line 116, in
iterateSites
date = datetime.datetime.fromtimestamp( starttime -
time_interval )
ValueError: microsecond must be in 0..999999
mv: cannot stat `METADATA.txt': No such file or directory

Collin Bennett

unread,
Jul 12, 2010, 11:13:18 AM7/12/10
to malgen-discuss-general
I'll try to reproduce this. Can you tell me the version of Python you
are running.

Collin Bennett

unread,
Jul 12, 2010, 3:10:59 PM7/12/10
to malgen-discuss-general
I can reproduce this error if I use Python 2.4.2. It looks like this
issue is Python bug 1478429 and based on the date, it seems that
this fix wasn't released until at least python 2.4.4.

If you are using a ver >= 2.4.4, please let me know and I will look
into this some more.

The bug: http://bugs.python.org/issue1478429
Reply all
Reply to author
Forward
0 new messages