I have PloneLocalFolderNG installed, which works great. But, I can't run python setup.py install for TextIndexNG2. I get the following error: running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. The documentation says to install the win32 extensions, TextIndexNGExtensions-2.02.win32-py2.3.exe, so I did that. Still can't run the setup script. Any ideas? System: Zope 2.7.6-final, python 2.3.5, win32 Thanks. Barry Drake
--On 2. Februar 2006 19:10:49 -0800 Barry Drake <bldrake@adaptcs.com> wrote:
I have PloneLocalFolderNG installed, which works great. But, I can't run python setup.py install for TextIndexNG2. I get the following error:
running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed.
The documentation says to install the win32 extensions, TextIndexNGExtensions-2.02.win32-py2.3.exe, so I did that. Still can't run the setup script.
If you can't get the binaries working, you need to compile them on your own (which requires a Microsoft compiler under Windows). -aj
Regarding compiling under Microsoft VC6, should I expect that TextIndexNG setup would launch VC6 compiler if I had that tool installed? Thanks, Owen
Owen, I think that once you have the .pyd files, Zope uses those from that point on; no need for the compilers any longer. That's why I'm glad to have found out about the MingW solution, bypassing MS! Barry --- Owen K wrote:
Regarding compiling under Microsoft VC6, should I expect that TextIndexNG setup would launch VC6 compiler if I had that tool installed?
Thanks,
Owen
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Andreas, Barry, and all, I have the same TextIndexNG2 install error as Barry (see "Error text" below). My setup: MS VisualC++ 7 . Zope 2.7.8-final, python 2.3.5, win32 Also installed are TextIndexNGExtensions-2.02.win32-py2.3.exe and python-Levenshtein-0.10.win32-py2.3.exe. My windows registry points to the python installation that I have under Plone 2.1.2, and that is the only python on my Windows XP Pro machine. Barry, any luck? The TextIndexNG2 windows binaries were explicitly labelled "python2.3"; so the mismatch with python 2.3.5 is surprising. In terms of following Andreas Jung's advice to recompile the extensions, What can I do with MS Visual Studio .Net 2003 to move this forward? The associated compiler is CL.exe and I found it in ..Vc7\CL.exe so I think the visual C version is 7. Do I need to recompile all of python + TextIndexNG2? Or somehow make the compiler look like VC6 and then compile TextIndexNG2 extensions. Or somehow help "TextIndexNG2>python setup.py install" to see my VC++ compiler? Many thanks, Owen Error text: C:\Program Files\Plone 2\Data\Products\TextIndexNG2>python setup.py install -DUNICODE_WIDTH=2 running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. "Barry Drake" <bldrake@adaptcs.com> wrote in message news:20060203031049.14953.qmail@web209.biz.mail.re2.yahoo.com... I have PloneLocalFolderNG installed, which works great. But, I can't run python setup.py install for TextIndexNG2. I get the following error: running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. The documentation says to install the win32 extensions, TextIndexNGExtensions-2.02.win32-py2.3.exe, so I did that. Still can't run the setup script. Any ideas? System: Zope 2.7.6-final, python 2.3.5, win32 Thanks. Barry Drake _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
--On 13. Februar 2006 16:30:54 -0500 Owen K <oekelly@sympatico.ca> wrote:
Error text: C:\Program Files\Plone 2\Data\Products\TextIndexNG2>python setup.py install -DUNICODE_WIDTH=2 running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed.
"Barry Drake" <bldrake@adaptcs.com> wrote in message news:20060203031049.14953.qmail@web209.biz.mail.re2.yahoo.com... I have PloneLocalFolderNG installed, which works great. But, I can't run python setup.py install for TextIndexNG2. I get the following error:
running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed.
This message should be clear. You must compile the extension modules with the same VC version that was used to build your Python. -aj
Owen, This is still not working for me either. I installed C++.net also hoping that it might go through. No change; same error messages. How can we bring this forward? I'd like to help as well. Barry --- Owen K wrote:
Andreas, Barry, and all,
I have the same TextIndexNG2 install error as Barry (see "Error text" below). My setup: MS VisualC++ 7 . Zope 2.7.8-final, python 2.3.5, win32 Also installed are TextIndexNGExtensions-2.02.win32-py2.3.exe and python-Levenshtein-0.10.win32-py2.3.exe. My windows registry points to the python installation that I have under Plone 2.1.2, and that is the only python on my Windows XP Pro machine.
Barry, any luck?
The TextIndexNG2 windows binaries were explicitly labelled "python2.3"; so the mismatch with python 2.3.5 is surprising.
In terms of following Andreas Jung's advice to recompile the extensions, What can I do with MS Visual Studio .Net 2003 to move this forward? The associated compiler is CL.exe and I found it in ..Vc7\CL.exe so I think the visual C version is 7.
Do I need to recompile all of python + TextIndexNG2? Or somehow make the compiler look like VC6 and then compile TextIndexNG2 extensions. Or somehow help "TextIndexNG2>python setup.py install" to see my VC++ compiler?
Many thanks,
Owen
Error text: C:\Program Files\Plone 2\Data\Products\TextIndexNG2>python setup.py install -DUNICODE_WIDTH=2 running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed.
"Barry Drake" <bldrake@adaptcs.com> wrote in message
news:20060203031049.14953.qmail@web209.biz.mail.re2.yahoo.com...
I have PloneLocalFolderNG installed, which works great. But, I can't run python setup.py install for TextIndexNG2. I get the following error:
running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed.
The documentation says to install the win32 extensions, TextIndexNGExtensions-2.02.win32-py2.3.exe, so I did that. Still can't run the setup script.
Any ideas?
System: Zope 2.7.6-final, python 2.3.5, win32
Thanks. Barry Drake
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
--On 14. Februar 2006 04:43:07 -0800 Barry Drake <bldrake@adaptcs.com> wrote:
Owen, This is still not working for me either. I installed C++.net also hoping that it might go through. No change; same error messages. How can we bring this forward? I'd like to help as well.
No idea...I won't spend any time on windows issues at this point. Life-is-too-short-to-waste-it-with-windows-issues, Andreas
Building on Andreas' theory regarding the shortness of life, I'm going to try to avoid the problem by upgrading to Zope 2.8 so that I can use TextIndexNG3. Should I expect to run into the same extensions problem there? Thanks Tre for showing one path forward with TextIndexNG2. Regarding recompiling TextIndexNG2, I looked in the C++.net GUI to find a way to emulate VC6, no luck so far. .02, Owen "Andreas Jung" <lists@andreas-jung.com> wrote in message news:06C43323D891C447C403C7D9@[192.168.0.28]...
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
--On 14. Februar 2006 09:40:16 -0500 Owen K <oekelly@sympatico.ca> wrote:
Building on Andreas' theory regarding the shortness of life, I'm going to try to avoid the problem by upgrading to Zope 2.8 so that I can use TextIndexNG3. Should I expect to run into the same extensions problem there?
Right, the same problems will arise. -aj
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Owen K wrote:
Andreas, Barry, and all,
I have the same TextIndexNG2 install error as Barry (see "Error text" below). My setup: MS VisualC++ 7 . Zope 2.7.8-final, python 2.3.5, win32 Also installed are TextIndexNGExtensions-2.02.win32-py2.3.exe and python-Levenshtein-0.10.win32-py2.3.exe. My windows registry points to the python installation that I have under Plone 2.1.2, and that is the only python on my Windows XP Pro machine.
Barry, any luck?
Python 2.3.x was built with VC++ version 6; Python 2.4.x with version 7. If you can't lay your hands on that version, then perhaps Mingw would do: http://sebsauvage.net/python/mingw.html Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD8dRS+gerLs4ltQ4RAumKAKCPszCd+VeCWjxQQPIIPFJLUXS8TgCeJ/fC akN89KE6basU2l+47UBcpt8= =42eM -----END PGP SIGNATURE-----
No idea...I won't spend any time on windows issues at this point.
Life-is-too-short-to-waste-it-with-windows-issues,
Well of course Windows isn't the ideal platform and sucks on many levels but the fact that many, many, businesses have their own Windows small business server boxes in house and can install and base their small to medium traffic sites on then, means that in reality, anti-Windows snobbishness doesn't really get you anywhere on a business level. Even though it has a logical core. On 2/14/06, Tres Seaver <tseaver@palladion.com> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Owen K wrote:
Andreas, Barry, and all,
I have the same TextIndexNG2 install error as Barry (see "Error text" below). My setup: MS VisualC++ 7 . Zope 2.7.8-final, python 2.3.5, win32 Also installed are TextIndexNGExtensions-2.02.win32-py2.3.exe and python-Levenshtein-0.10.win32-py2.3.exe. My windows registry points to the python installation that I have under Plone 2.1.2, and that is the only python on my Windows XP Pro machine.
Barry, any luck?
Python 2.3.x was built with VC++ version 6; Python 2.4.x with version 7. If you can't lay your hands on that version, then perhaps Mingw would do:
http://sebsauvage.net/python/mingw.html
Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD8dRS+gerLs4ltQ4RAumKAKCPszCd+VeCWjxQQPIIPFJLUXS8TgCeJ/fC akN89KE6basU2l+47UBcpt8= =42eM -----END PGP SIGNATURE-----
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Michael
--On 14. Februar 2006 14:31:21 +0000 michael nt milne <michael.milne@gmail.com> wrote:
No idea...I won't spend any time on windows issues at this point.
Life-is-too-short-to-waste-it-with-windows-issues,
Well of course Windows isn't the ideal platform and sucks on many levels but the fact that many, many, businesses have their own Windows small business server boxes in house and can install and base their small to medium traffic sites on then, means that in reality, anti-Windows snobbishness doesn't really get you anywhere on a business level. Even though it has a logical core.
Well, my first job back in the mid-90s was a position as developer for windows network drivers. At that time Microsoft produced tons of erroneous documentation and they lied to developers at conferences. Since that time Microsoft is just a disgusting company and as result I try to get around Windows wherever I can...just for protocol. -aj
michael nt milne wrote:
No idea...I won't spend any time on windows issues at this point.
Life-is-too-short-to-waste-it-with-windows-issues,
Well of course Windows isn't the ideal platform and sucks on many levels but the fact that many, many, businesses have their own Windows small business server boxes in house and can install and base their small to medium traffic sites on then, means that in reality, anti-Windows snobbishness doesn't really get you anywhere on a business level. Even though it has a logical core.
Michael, Do you ever quite trolling? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Tres and Owen, Using Tres's advice below, I was able to recompile TextIndexNG2 on my Windows machine using the MingW compiler. Works great! I used the Python that came with Zope and the latest MingW compiler. Just follow the instructions at the link provided by Tres below. With one additional instruction: Copy the .pyd files from the C:\Zope-Instance\Products\TextIndexNG2\build\lib.win32-2.3 directory to C:\Zope-Instance\Products\TextIndexNG2 Zope won't start unless you do this last step. System: Zope Version (Zope 2.7.6-final, python 2.3.5, win32) Python Version 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] System Platform win32 Barry Drake --- Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Owen K wrote:
Andreas, Barry, and all,
I have the same TextIndexNG2 install error as Barry (see "Error text" below). My setup: MS VisualC++ 7 . Zope 2.7.8-final, python 2.3.5, win32 Also installed are TextIndexNGExtensions-2.02.win32-py2.3.exe and python-Levenshtein-0.10.win32-py2.3.exe. My windows registry points to the python installation that I have under Plone 2.1.2, and that is the only python on my Windows XP Pro machine.
Barry, any luck?
Python 2.3.x was built with VC++ version 6; Python 2.4.x with version 7. If you can't lay your hands on that version, then perhaps Mingw would do:
http://sebsauvage.net/python/mingw.html
Tres. - --
===================================================================
Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD8dRS+gerLs4ltQ4RAumKAKCPszCd+VeCWjxQQPIIPFJLUXS8TgCeJ/fC
akN89KE6basU2l+47UBcpt8= =42eM -----END PGP SIGNATURE-----
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Barry Drake wrote:
Tres and Owen, Using Tres's advice below, I was able to recompile TextIndexNG2 on my Windows machine using the MingW compiler. Works great!
I used the Python that came with Zope and the latest MingW compiler. Just follow the instructions at the link provided by Tres below. With one additional instruction:
Copy the .pyd files from the C:\Zope-Instance\Products\TextIndexNG2\build\lib.win32-2.3 directory to C:\Zope-Instance\Products\TextIndexNG2
Zope won't start unless you do this last step.
System: Zope Version (Zope 2.7.6-final, python 2.3.5, win32) Python Version 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] System Platform win32
Glad that worked. I don't run Windows boxen any longer, so it was a shot in the dark. Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD8gRH+gerLs4ltQ4RAiMJAKDP5ccLck1Uqsa8dh6wfCUoGfZTIgCfc4dS hZP4eFQuNFRUsksUaFEf594= =z7f7 -----END PGP SIGNATURE-----
--On 14. Februar 2006 08:20:51 -0800 Barry Drake <bldrake@adaptcs.com> wrote:
Tres and Owen, Using Tres's advice below, I was able to recompile TextIndexNG2 on my Windows machine using the MingW compiler. Works great!
Could you contribute your work? Can you work on an archive? I think there is some distutils option for creating an archive or even an installer on windows. -aj
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Jung wrote:
--On 14. Februar 2006 08:20:51 -0800 Barry Drake <bldrake@adaptcs.com> wrote:
Tres and Owen, Using Tres's advice below, I was able to recompile TextIndexNG2 on my Windows machine using the MingW compiler. Works great!
Could you contribute your work? Can you work on an archive? I think there is some distutils option for creating an archive or even an installer on windows.
'bdist_win'? Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD8grV+gerLs4ltQ4RAhrmAKC5myb1u1di5wjYDzaTyj99THOs0gCfYT+E DOBLReQpoS+LW/fKGSROav0= =eu2p -----END PGP SIGNATURE-----
Hi all, I am trying to install TextIndexNG 3.1.5 on Windows. I recompiled the pyd files successfully using MinGW. However TextIndexNG3 setup fails to find them, traceback included below. There are three instructions from the fine manual and elsewhere that I am trying to follow: 1. README says Plone users must remove comments from configure.zcml . 2. Release notes say: rebuild *and* reinstall . Rebuild works, but reinstall does not. 3. Barry Drake suggested move the pyd files from build dir to TextIndexNG dir Regarding 1, I am using Plone 2.1.2. but I don't recognize anything that looks like a comment in 3.1.5 version of configure.zcml. (But I don't know how to read that kind of file.) Regarding 2. Build was successful, but reinstall fails as follows. Running "python setup.py install" in C:\Zope-Instance\Products\TextIndexNG3\extension_modules fails with the same error that started this thread regarding VC6 mismatch. However Barry and I have had pyds created by this method working successfully with TextIndexNG2. Regarding 3. The traceback error occurs regardless of whether the pyd files are in any of the following C:\Zope-Instance\Products\TextIndexNG3\ C:\Zope-Instance\Products\TextIndexNG3\extension_modules C:\Zope-Instance\Products\TextIndexNG3\extension_modules\zopyx\txng3 C:\Zope-Instance\Products\TextIndexNG3\Extensions My setup: python.exe is registered in Windows there is only one python.exe on the machine Zope 2.8.5 new install, includes python 2.3.5 Plone 2.1.2 TextIndexNG3.1.5 is installed in C:\Zope-Instance\Products\TextIndexNG3 Any thoughts? Thanks, Owen ....my event.log for this issue is next.... Traceback: ------ 2006-02-17T15:48:03 ERROR Zope Could not import Products.TextIndexNG3 Traceback (most recent call last): File "C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py", line 698, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\Zope-Instance\Products\TextIndexNG3\__init__.py", line 20, in ? import TextIndexNG3 File "C:\Zope-Instance\Products\TextIndexNG3\TextIndexNG3.py", line 18, in ? from textindexng.index import Index File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\index.py", line 20, in ? from evaluator import Evaluator File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\evaluator.py", line 18, in ? from stemmer import getStemmer File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\stemmer.py", line 11, in ? from zopyx.txng3 import stemmer ImportError: No module named zopyx.txng3 ------ [ ... snip ... ] ------ 2006-02-17T15:48:05 ERROR Zope Couldn't install Five Traceback (most recent call last): File "C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py", line 775, in install_product initmethod(context) File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\__init__.py", line 29, in initialize zcml.load_site() File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\zcml.py", line 45, in load_site _context = xmlconfig.file(file) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 439, in file include(context, name, package) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 375, in include processxmlfile(f, context) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 245, in processxmlfile parser.parse(src) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 225, in endElementNS self.context.end() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 518, in end self.stack.pop().finish() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 665, in finish actions = self.handler(context, **args) File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\fiveconfigure.py", line 56, in loadProducts xmlconfig.include(_context, zcml, package=product) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 375, in include processxmlfile(f, context) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 245, in processxmlfile parser.parse(src) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 225, in endElementNS self.context.end() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 518, in end self.stack.pop().finish() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 665, in finish actions = self.handler(context, **args) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 375, in include processxmlfile(f, context) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 245, in processxmlfile parser.parse(src) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 225, in endElementNS self.context.end() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 518, in end self.stack.pop().finish() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 664, in finish args = toargs(context, *self.argdata) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 1322, in toargs args[str(name)] = field.fromUnicode(s) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\fields.py", line 141, in fromUnicode raise schema.ValidationError(v) ZopeXMLConfigurationError: File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\skel\site.zcml", line 12.2-12.23 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\configure.zcml", line 5.2-5.56 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\configure.zcml", line 26.2-30.8 ConfigurationError: ('Invalid value for', 'component', "Couldn't import textindexng.splitter, No module named zopyx.txng3.splitter") ------ ___________________ "Barry Drake" <bldrake@adaptcs.com> wrote in message news:20060214162051.41816.qmail@web202.biz.mail.re2.yahoo.com... Tres and Owen, Using Tres's advice below, I was able to recompile TextIndexNG2 on my Windows machine using the MingW compiler. Works great! I used the Python that came with Zope and the latest MingW compiler. Just follow the instructions at the link provided by Tres below. With one additional instruction: Copy the .pyd files from the C:\Zope-Instance\Products\TextIndexNG2\build\lib.win32-2.3 directory to C:\Zope-Instance\Products\TextIndexNG2 Zope won't start unless you do this last step. System: Zope Version (Zope 2.7.6-final, python 2.3.5, win32) Python Version 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] System Platform win32 Barry Drake
Update: I have learned how to uncomment configure.zcml by removing a matching pair <!-- --> ; then restarted Zope. At this point the traceback looks the same as documented below and the install configlet does not appear in Plone 2.1.2 add/remove products page. There is an error reported on that page: TextIndexNG3 Error Type exceptions.ImportError Error Value cannot import name textindexng_globals Hmm.... "Owen K" <oekelly@sympatico.ca> wrote in message news:dt5dk2$ke6$1@sea.gmane.org...
Hi all,
I am trying to install TextIndexNG 3.1.5 on Windows. I recompiled the pyd files successfully using MinGW. However TextIndexNG3 setup fails to find them, traceback included below. There are three instructions from the fine manual and elsewhere that I am trying to follow:
1. README says Plone users must remove comments from configure.zcml . 2. Release notes say: rebuild *and* reinstall . Rebuild works, but reinstall does not. 3. Barry Drake suggested move the pyd files from build dir to TextIndexNG dir
Regarding 1, I am using Plone 2.1.2. but I don't recognize anything that looks like a comment in 3.1.5 version of configure.zcml. (But I don't know how to read that kind of file.)
Regarding 2. Build was successful, but reinstall fails as follows. Running "python setup.py install" in C:\Zope-Instance\Products\TextIndexNG3\extension_modules fails with the same error that started this thread regarding VC6 mismatch. However Barry and I have had pyds created by this method working successfully with TextIndexNG2.
Regarding 3. The traceback error occurs regardless of whether the pyd files are in any of the following C:\Zope-Instance\Products\TextIndexNG3\ C:\Zope-Instance\Products\TextIndexNG3\extension_modules C:\Zope-Instance\Products\TextIndexNG3\extension_modules\zopyx\txng3 C:\Zope-Instance\Products\TextIndexNG3\Extensions
My setup: python.exe is registered in Windows there is only one python.exe on the machine Zope 2.8.5 new install, includes python 2.3.5 Plone 2.1.2 TextIndexNG3.1.5 is installed in C:\Zope-Instance\Products\TextIndexNG3
Any thoughts?
Thanks,
Owen ....my event.log for this issue is next....
Traceback: ------ 2006-02-17T15:48:03 ERROR Zope Could not import Products.TextIndexNG3 Traceback (most recent call last): File "C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py", line 698, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\Zope-Instance\Products\TextIndexNG3\__init__.py", line 20, in ? import TextIndexNG3 File "C:\Zope-Instance\Products\TextIndexNG3\TextIndexNG3.py", line 18, in ? from textindexng.index import Index File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\index.py", line 20, in ? from evaluator import Evaluator File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\evaluator.py", line 18, in ? from stemmer import getStemmer File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\stemmer.py", line 11, in ? from zopyx.txng3 import stemmer ImportError: No module named zopyx.txng3 ------ [ ... snip ... ] ------ 2006-02-17T15:48:05 ERROR Zope Couldn't install Five Traceback (most recent call last): File "C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py", line 775, in install_product initmethod(context) File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\__init__.py", line 29, in initialize zcml.load_site() File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\zcml.py", line 45, in load_site _context = xmlconfig.file(file) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 439, in file include(context, name, package) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 375, in include processxmlfile(f, context) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 245, in processxmlfile parser.parse(src) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 225, in endElementNS self.context.end() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 518, in end self.stack.pop().finish() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 665, in finish actions = self.handler(context, **args) File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\fiveconfigure.py", line 56, in loadProducts xmlconfig.include(_context, zcml, package=product) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 375, in include processxmlfile(f, context) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 245, in processxmlfile parser.parse(src) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 225, in endElementNS self.context.end() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 518, in end self.stack.pop().finish() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 665, in finish actions = self.handler(context, **args) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 375, in include processxmlfile(f, context) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 245, in processxmlfile parser.parse(src) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py", line 123, in parse self.feed(buffer) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py", line 225, in endElementNS self.context.end() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 518, in end self.stack.pop().finish() File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 664, in finish args = toargs(context, *self.argdata) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py", line 1322, in toargs args[str(name)] = field.fromUnicode(s) File "C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\fields.py", line 141, in fromUnicode raise schema.ValidationError(v) ZopeXMLConfigurationError: File "C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\skel\site.zcml", line 12.2-12.23 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\configure.zcml", line 5.2-5.56 ZopeXMLConfigurationError: File "C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\configure.zcml", line 26.2-30.8 ConfigurationError: ('Invalid value for', 'component', "Couldn't import textindexng.splitter, No module named zopyx.txng3.splitter") ------
___________________
"Barry Drake" <bldrake@adaptcs.com> wrote in message news:20060214162051.41816.qmail@web202.biz.mail.re2.yahoo.com... Tres and Owen, Using Tres's advice below, I was able to recompile TextIndexNG2 on my Windows machine using the MingW compiler. Works great!
I used the Python that came with Zope and the latest MingW compiler. Just follow the instructions at the link provided by Tres below. With one additional instruction:
Copy the .pyd files from the C:\Zope-Instance\Products\TextIndexNG2\build\lib.win32-2.3 directory to C:\Zope-Instance\Products\TextIndexNG2
Zope won't start unless you do this last step.
System: Zope Version (Zope 2.7.6-final, python 2.3.5, win32) Python Version 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] System Platform win32
Barry Drake
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Owen, Just saw your message. Instead of restarting Zope, did you try stop and then start. I've had trouble in the past with restarting my Zope/Plone sites; not everything seems to get reinitialized with just a restart. Also, I'm not using the versions of Zope/Plone you are using. I'm way behind you!!! Usually, when I see import exceptions, I start doing grep on the .py files in the product directory where the error is appearing. Try grep on partial names of the module that is not being imported and see what comes up (on windows, I use UltraEdit's "Find in Files", which does regular expressions, etc.). Barry --- Owen K <wrote:
Update:
I have learned how to uncomment configure.zcml by removing a matching pair <!-- --> ; then restarted Zope. At this point the traceback looks the same as documented below and the install configlet does not appear in Plone 2.1.2 add/remove products page. There is an error reported on that page:
TextIndexNG3 Error Type exceptions.ImportError Error Value cannot import name textindexng_globals
Hmm....
"Owen K" <oekelly@sympatico.ca> wrote in message news:dt5dk2$ke6$1@sea.gmane.org...
Hi all,
I am trying to install TextIndexNG 3.1.5 on Windows. I recompiled the pyd files successfully using MinGW. However TextIndexNG3 setup fails to find them, traceback included below. There are three instructions from the fine manual and elsewhere that I am trying to follow:
1. README says Plone users must remove comments from configure.zcml . 2. Release notes say: rebuild *and* reinstall . Rebuild works, but reinstall does not. 3. Barry Drake suggested move the pyd files from build dir to TextIndexNG dir
Regarding 1, I am using Plone 2.1.2. but I don't recognize anything that looks like a comment in 3.1.5 version of configure.zcml. (But I don't know how to read that kind of file.)
Regarding 2. Build was successful, but reinstall fails as follows. Running "python setup.py install" in
C:\Zope-Instance\Products\TextIndexNG3\extension_modules
fails with the
same error that started this thread regarding VC6 mismatch. However Barry and I have had pyds created by this method working successfully with TextIndexNG2.
Regarding 3. The traceback error occurs regardless of whether the pyd files are in any of the following C:\Zope-Instance\Products\TextIndexNG3\
C:\Zope-Instance\Products\TextIndexNG3\extension_modules
C:\Zope-Instance\Products\TextIndexNG3\extension_modules\zopyx\txng3
C:\Zope-Instance\Products\TextIndexNG3\Extensions
My setup: python.exe is registered in Windows there is only one python.exe on the machine Zope 2.8.5 new install, includes python 2.3.5 Plone 2.1.2 TextIndexNG3.1.5 is installed in C:\Zope-Instance\Products\TextIndexNG3
Any thoughts?
Thanks,
Owen ....my event.log for this issue is next....
Traceback: ------ 2006-02-17T15:48:03 ERROR Zope Could not import Products.TextIndexNG3 Traceback (most recent call last): File "C:\Program
Files\Zope-2.8.5-final\lib\python\OFS\Application.py",
line 698, in import_product product=__import__(pname, global_dict, global_dict, silly) File
"C:\Zope-Instance\Products\TextIndexNG3\__init__.py",
line 20, in ?
import TextIndexNG3 File
"C:\Zope-Instance\Products\TextIndexNG3\TextIndexNG3.py",
line 18,
in ? from textindexng.index import Index File
"C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\index.py",
line 20, in ? from evaluator import Evaluator File
"C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\evaluator.py",
line 18, in ? from stemmer import getStemmer File
"C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\stemmer.py",
line 11, in ? from zopyx.txng3 import stemmer ImportError: No module named zopyx.txng3 ------ [ ... snip ... ] ------ 2006-02-17T15:48:05 ERROR Zope Couldn't install Five Traceback (most recent call last): File "C:\Program
Files\Zope-2.8.5-final\lib\python\OFS\Application.py",
line 775, in install_product initmethod(context) File "C:\Program
Files\Zope-2.8.5-final\lib\python\Products\Five\__init__.py",
line 29, in
initialize zcml.load_site() File "C:\Program
Files\Zope-2.8.5-final\lib\python\Products\Five\zcml.py",
line 45, in
load_site _context = xmlconfig.file(file) File "C:\Program
Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py",
line
439, in file include(context, name, package) File "C:\Program
Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py",
line
375, in include processxmlfile(f, context) File "C:\Program
Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py",
line
245, in processxmlfile parser.parse(src) File "C:\Program
Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py",
line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "C:\Program
Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py",
line 123, in parse self.feed(buffer) File "C:\Program
Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py",
line 207, in feed self._parser.Parse(data, isFinal) File "C:\Program
Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py",
line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "C:\Program
Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py",
line
225, in endElementNS self.context.end() File "C:\Program
Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py",
line 518,
in end self.stack.pop().finish() File "C:\Program
Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py",
line 665,
in finish actions = self.handler(context, **args)
=== message truncated ===
--On 17. Februar 2006 16:01:34 -0500 Owen K <oekelly@sympatico.ca> wrote:
Hi all,
I am trying to install TextIndexNG 3.1.5 on Windows. I recompiled the pyd files successfully using MinGW. However TextIndexNG3 setup fails to find them, traceback included below. There are three instructions from the fine manual and elsewhere that I am trying to follow:
1. README says Plone users must remove comments from configure.zcml . 2. Release notes say: rebuild *and* reinstall . Rebuild works, but reinstall does not.
Why not? Errors? Tracebacks? -aj
Andreas, There were no errors during the build. The new files are here Directory of C:\Zope-Instance\Products\TextIndexNG3\extension_modules\build\lib .win32-2.3\zopyx\txng3 02/18/2006 09:16 AM <DIR> . 02/18/2006 09:16 AM <DIR> .. 02/18/2006 09:16 AM 59,904 levenshtein.pyd 02/18/2006 09:16 AM 9,728 normalizer.pyd 02/18/2006 09:16 AM 18,432 splitter.pyd 02/18/2006 09:16 AM 180,736 stemmer.pyd 02/18/2006 09:16 AM 6,656 support.pyd 10/22/2005 09:41 AM 14 __init__.py 6 File(s) 275,470 bytes 2 Dir(s) 17,930,670,080 bytes free Here is the install error: C:\Zope-Instance\Products\TextIndexNG3\extension_modules>python setup.py install running install running build running build_py running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. Is there anything else I can provide? Regards, Owen "Andreas Jung" <lists@andreas-jung.com> wrote in message news:C05B3B20A416D963C048DC39@suxmac.local...
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Problem solved. MinGW built the pyd files in C:\Zope-Instance\Products\TextIndexNG3\extension_modules\build\lib.win32-2.3\zopyx\txng3 , but for some reason the zopyx folder was not on the Python search path (under Windows). The fine manual (here http://www.python.org/doc/essays/packages.html and here http://docs.python.org/ref/import.html ) describes that Windows module search for import has differences from other operating systems. One solution (not too elegant), is to move the zopyx folder into a folder that is being searched. I moved the zopyx folder to the site-packages folder. (Setting $PYTHONPATH to C:\Zope-Instance\Products\TextIndexNG3 might also have worked, or putting the right zopyx.pth file somewhere might have worked). By "solved" I mean the TextIndexNG3.1.5 configlet now appears in the Plone2.1.2 add/remove products page without any errors. And the event.log traceback errors have disappeared. Thanks everyone! -Owen "Owen K" <oekelly@sympatico.ca> wrote in message news:dt7aqh$jef$1@sea.gmane.org...
Andreas,
There were no errors during the build. The new files are here
Directory of C:\Zope-Instance\Products\TextIndexNG3\extension_modules\build\lib .win32-2.3\zopyx\txng3
02/18/2006 09:16 AM <DIR> . 02/18/2006 09:16 AM <DIR> .. 02/18/2006 09:16 AM 59,904 levenshtein.pyd 02/18/2006 09:16 AM 9,728 normalizer.pyd 02/18/2006 09:16 AM 18,432 splitter.pyd 02/18/2006 09:16 AM 180,736 stemmer.pyd 02/18/2006 09:16 AM 6,656 support.pyd 10/22/2005 09:41 AM 14 __init__.py 6 File(s) 275,470 bytes 2 Dir(s) 17,930,670,080 bytes free
Here is the install error:
C:\Zope-Instance\Products\TextIndexNG3\extension_modules>python setup.py install
running install running build running build_py running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed.
[truncated]
participants (6)
-
Andreas Jung -
Barry Drake -
Chris Withers -
michael nt milne -
Owen K -
Tres Seaver