From:
[email protected]
On Wed, 2004-07-21 at 22:03 +1000, wrote:
This is possible a packaging error which could be addressed with dependencies. I installed straw, tried to run it and got the following
error.
dmm@trinity:~$ straw
LookupManager.py:9:?: No ADNS library found, using synchronous name lookups. Traceback (most recent call last):
File "/usr/bin/straw", line 13, in ?
import straw
File "/usr/lib/straw/straw/__init__.py", line 27, in ?
from Main import Main
File "/usr/lib/straw/straw/Main.py", line 21, in ?
import utils
File "/usr/lib/straw/straw/utils.py", line 1, in ?
import re, string, htmlentitydefs, urllib, urlparse, locale, time, calendar
File "/usr/lib/python2.3/calendar.py", line 211, in ?
_EPOCH_ORD = datetime.date(EPOCH, 1, 1).toordinal()
AttributeError: 'module' object has no attribute 'date'
dmm@trinity:~$
Can you replicate this? If so, in a terminal run:
python -c "import datetime; print datetime.__file__; print dir(datetime)"
(with the quotes).
I get:
/usr/lib/python2.3/lib-dynload/datetime.so
['MAXYEAR', 'MINYEAR', '__doc__', '__file__', '__name__',
'date', 'datetime', 'time', 'timedelta', 'tzinfo']
Demonstating that my python is using the packaged datetime, and that
there is a member called "date".
Ross
--
Ross Burton mail:
[email protected]
jabber:
[email protected]
www:
http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)