[spambayes-bugs] [ spambayes-Bugs-941639 ] Module 'pywintypes'
isn't in frozen sys.path directories
SourceForge.net
noreply at sourceforge.net
Mon Jun 28 21:59:57 EDT 2004
Bugs item #941639, was opened at 2004-04-25 15:42
Message generated for change (Comment added) made by mhammond
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: Pending
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: Mark Hammond (mhammond)
Date: 2004-06-29 11:59
Message:
Logged In: YES
user_id=14198
Is this still a problem with the most recent versions? If
so, please reset the bug status to "Open". Thanks.
----------------------------------------------------------------------
Comment By: mrpowell (mrpowell)
Date: 2004-05-04 23:53
Message:
Logged In: YES
user_id=1028635
No, I did not extract c:\Program
Files\SpamBayes\lib\spambayes.zip\.
The directory listing [c program files spambayes.txt] of
c:\Program Files\SpamBayes\ reflects a totally default install
of spambayes-1.0b1.exe with no other programs open.
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2004-05-04 17:30
Message:
Logged In: YES
user_id=14198
If I make a local hack to simulate this error (and change
the error text ;), I see:
Traceback (most recent call last):
File "addin.py", line 33, in ?
File "win32com\__init__.pyc", line 6, in ?
File "pythoncom.pyc", line 2, in ?
File "pywintypes.pyc", line 69, in ?
File "pywintypes.pyc", line 45, in
__import_pywin32_system_module__
ImportError: Module 'pywintypes' isn't in frozen sys.path
directories
['E:\src\spambayes\windows\py2exe\dist\lib\spambayes.zip']
Note there is no source-line shown, and that none of the
files reference the .zip file.
However, if I replace create a *directory* spambayes.zip,
and unzip the contents of the real .zip file into it, here
is the exception I get:
Traceback (most recent call last):
File "addin.py", line 33, in ?
File "win32com\__init__.pyc", line 6, in ?
File
"E:\src\spambayes\windows\py2exe\dist\lib\spambayes.zip\pythoncom.pyc",
line 2, in ?
#@c
...
ie, just like in this bug!! mypowell - did you unzip this
.zip file?
----------------------------------------------------------------------
Comment By: mrpowell (mrpowell)
Date: 2004-05-04 17:21
Message:
Logged In: YES
user_id=1028635
OUTLOOK_ADDIN_REGISTER.EXE.log 5/4/04. I wiill try "running
from source" if it will help to put this one to bed. speaking of
bed...
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2004-05-04 17:20
Message:
Logged In: YES
user_id=14198
Here is something I find strange. From
OUTLOOK_ADDIN_REGISTER.EXE.log
...
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
Note 2 things:
* addin.py and win32com\__init__ do not reference the .zip file.
* pythoncom.pyc references the .zip file, and has garbage
for the source line. I would expect no source-lines at all.
Is almost looks as though the .zip file has been expanded!?
I might follow this as a clue...
----------------------------------------------------------------------
Comment By: Tony Meyer (anadelonbrin)
Date: 2004-05-04 17:13
Message:
Logged In: YES
user_id=552329
Either something really weird is going on or sys.path has
somehow ended up not being what it should by the time
pywintypes.py is imported. Either way, I can't think of
anything to resolve this apart from building a diagnostic
version of the binary (with various debugging statements in
pywintypes.py). Kenny/Mark - can you think of anything?
By "running from source", I mean running the plug-in from
source code rather than from the binary version that the
installer installs. You do this by installing Python &
pywin32 and using the source distibution of SpamBayes. The
website has details. It could certainly make it easier to
diagnose (unless the problem didn't exist, which is
possible), but is more hassle for you.
----------------------------------------------------------------------
Comment By: mrpowell (mrpowell)
Date: 2004-05-04 16: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-04 03: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-03 13: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-03 13: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