Error in pywordnet

Gurpreet Sachdeva gurpreet.sachdeva at gmail.com
Sat Feb 26 04:14:34 EST 2005


I am using pywordnet and when ever I import the package
from wordnet import *, I get an error:

"Exception exceptions.AttributeError: "DbfilenameShelf instance has no
attribute 'writeback'" in  ignored"

Now the package works fine until I tried to use that in Apache via
CGI. Apache is showing a Server Error and the error_logs states that:

[Fri Feb 25 16:06:08 2005] [error] [client 192.168.1.125]     from
wordnet import *, referer: http://garry/cgi-bin/test.py
[Fri Feb 25 16:06:08 2005] [error] [client 192.168.1.125] ImportError:
No module named wordnet, referer: http://garry/cgi-bin/test.py

While googling, I found:
"It is a simple fix that adds the writeback argument to shelve.open calls."

Source:
http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=185&thread=72747&cat=11

Do anyone have any idea about that? Is there any fix or workaround?

Thanks and Regards,
Garry

http://garrythegambler.blogspot.com/



More information about the Python-list mailing list