[spambayes-bugs] [ spambayes-Bugs-792255 ] Problems installing as
windows service...
SourceForge.net
noreply at sourceforge.net
Wed Aug 20 18:24:03 EDT 2003
Bugs item #792255, was opened at 2003-08-21 00:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=792255&group_id=61702
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gordon Hartley (ghartley)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problems installing as windows service...
Initial Comment:
Not sure whether this is just a result of my environment,
or whether its useful for others as well.
Environment : Windows (XP Prof.) + Cygwin + Python
2.3 + win32all-155.exe
Tried:
[NOTEBOOK] /cygdrive/c/programs/spambayes-
1.0a4/windows$ python pop3proxy_service.py install
Traceback (most recent call last):
File "pop3proxy_service.py", line 38, in ?
os.chdir(sb_dir)
OSError: [Errno 22] Invalid argument: ''
# ---
Resolved by moving the file up a directory and
commenting out the following lines near the top of the
file (pop3proxy_service.py) :
sb_dir = os.path.dirname(os.path.dirname(this_filename))
sys.path.insert(0, sb_dir)
# and change directory here, so pop3proxy uses the
default
# config file etc
os.chdir(sb_dir)
# ---
Then successfully installed service, tried to start it, and
got the following in the event log:
Python could not import the service's module
File "c:\programs\spambayes-1.0a4
\pop3proxy_service_modified.py", line 45, in ?
import pop3proxy
File "c:\programs\spambayes-1.0a4\pop3proxy.py", line
96, in ?
import spambayes.message
File "c:\python\Lib\site-
packages\spambayes\message.py", line 137, in ?
msginfoDB = MessageInfoDB(message_info_db_name)
File "c:\python\Lib\site-
packages\spambayes\message.py", line 113, in __init__
self.dbm = dbmstorage.open(self.db_name, self.mode)
File "c:\python\Lib\site-
packages\spambayes\dbmstorage.py", line 59, in open
return f(*args)
File "c:\python\Lib\site-
packages\spambayes\dbmstorage.py", line 41, in
open_best
return f(*args)
File "c:\python\Lib\site-
packages\spambayes\dbmstorage.py", line 18, in
open_dbhash
return bsddb.hashopen(*args)
File "c:\python\lib\bsddb\__init__.py", line 162, in
hashopen
d.open(file, db.DB_HASH, flags, mode)
# ---
Resolved by the following:
chmod a+w *.db
# ---
Not sure if the permissions problem is a result of having
cygwin installed, but thought I'd mention it in case its a
general windows issue, or is useful to someone else...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=792255&group_id=61702
More information about the Spambayes-bugs
mailing list