[spambayes-bugs] [ spambayes-Bugs-941639 ] Module 'pywintypes'
isn't in frozen sys.path directories
SourceForge.net
noreply at sourceforge.net
Tue May 4 02:54:44 EDT 2004
Bugs item #941639, was opened at 2004-04-25 01:42
Message generated for change (Comment added) made by mrpowell
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=941639&group_id=61702
Category: Outlook
Group: Binary 1.0b1
Status: Open
Resolution: None
Priority: 9
Submitted By: mrpowell (mrpowell)
Assigned to: Mark Hammond (mhammond)
Summary: Module 'pywintypes' isn't in frozen sys.path directories
Initial Comment:
Unable to register addin in Outlook 2000 SR1
9.0.0.5414 / Microsoft Windows 98 4.10.2222 A.
I uninstalled the Spambayes-outlook-0081 because I
could never get it to register as an addin. (consistent
error) and tried the latest release 1.0b1 and it failed
also. I ran regsvr32.exe outlook_addin.dll as described
in the trouble shooting guide and the windows error was
that it could not locate a file to execute. This is the
same error I get every time I try to install. I purged all
references to spambayes from the registry before trying
the latest fresh install. This is the log from the latest
two failed attempts with 1.0.b1:
Traceback (most recent call last):
File "addin.py", line 33, in ?
File "win32com\__init__.pyc", line 6, in ?
File "C:\PROGRAM
FILES\SPAMBAYES\lib\spambayes.zip\pythoncom.pyc",
line 2, in ?
#@c
File "C:\PROGRAM
FILES\SPAMBAYES\lib\spambayes.zip\pywintypes.pyc",
line 69, in ?
File "C:\PROGRAM
FILES\SPAMBAYES\lib\spambayes.zip\pywintypes.pyc",
line 45, in __import_pywin32_system_module__
ImportError: Module 'pywintypes' isn't in frozen sys.path
directories
Traceback (most recent call last):
File "addin.py", line 33, in ?
File "win32com\__init__.pyc", line 6, in ?
File "C:\PROGRAM
FILES\SPAMBAYES\lib\spambayes.zip\pythoncom.pyc",
line 2, in ?
#@c
File "C:\PROGRAM
FILES\SPAMBAYES\lib\spambayes.zip\pywintypes.pyc",
line 69, in ?
File "C:\PROGRAM
FILES\SPAMBAYES\lib\spambayes.zip\pywintypes.pyc",
line 45, in __import_pywin32_system_module__
ImportError: Module 'pywintypes' isn't in frozen sys.path
directories
my paths:
C:\Program Files\SpamBayes
D:\Program Files\Microsoft Office\Office\Outlook.exe
C:\WINDOWS\Application Data\Microsoft\Outlook
C:\WINDOWS\Profiles\Marc Powell\Application
Data\Microsoft\Outlook
What is a 'pywintypes' module and where is it located?
Which of my sys.path directories do I have to stick in
the freezer before I can copy the 'pywintypes' module
into it?
Any help will be greatly appreciated as this has become
a personal challenge.
Marc Powell
----------------------------------------------------------------------
>Comment By: mrpowell (mrpowell)
Date: 2004-05-04 02:54
Message:
Logged In: YES
user_id=1028635
I performed another clean install of a fresh download of 1.0b1
which resulted in the exact exception as before
(Module 'pywintypes' isn't in frozen sys.path directories).
The file, pywintypes23.dll. is in the "lib"
subdirectory. See the attached file, "c program files
SpamBayes.txt"; a printout of the c program files SpamBayes
directory. Also attached is the only
OUTLOOK_ADDIN_REGISTER.EXE.log for this install.
----------------------------------------------------------------------
Comment By: Kenny Pitt (kpitt)
Date: 2004-05-03 13:05
Message:
Logged In: YES
user_id=859086
The problem is not a corrupted pywintypes.pyc. The
pywintypes.pyc must be running correctly for you to get
the "isn't in frozen sys.path" exception. The purpose of
the .pyc file is to locate and load a related DLL file, which in
the case of the SpamBayes install should be named
pywintypes23.dll. This file should be installed in the "lib"
subdirectory of your SpamBayes installation.
Could you attach a directory listing of the files in the
SpamBayes "lib" directory? If possible, also attach any
SpamBayes log files you can find as describe in the
Troubleshooting Guide.
----------------------------------------------------------------------
Comment By: mrpowell (mrpowell)
Date: 2004-05-02 23:30
Message:
Logged In: YES
user_id=1028635
Thank you anadelonbrin for responding.
I do not have Python installed.
Why would the pywintypes.pyc file cause a problem on each
and every install from a number of different (fresh) downloads
from different mirrors, especially with a total registry crawl to
remove all traces of the previous install?
"You could try running the plug-in from source and seeing if
that works" what do you mean "from source"?
Can I replace the pywintypes.pyc file with a known good file?
----------------------------------------------------------------------
Comment By: Tony Meyer (anadelonbrin)
Date: 2004-05-02 23:01
Message:
Logged In: YES
user_id=552329
The pywintypes module is a file that should be in the
spambayes.zip file in the lib directory where spambayes was
installed.
It's not necessarily a path issue, because the file that's
raising the error is the pywintypes.pyc file itself.
Do you have Python installed by any chance? If so, is it
the build from python.org or the ActiveState one (or another
one)?
You could try running the plug-in from source and seeing if
that works.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=941639&group_id=61702
More information about the Spambayes-bugs
mailing list