lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <jans...@parc.com>
Subject Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7
Date Mon, 22 Nov 2010 12:45:44 GMT
Roman Chyla <roman.chyla@gmail.com> wrote:

> I had similar/same issue on win xp, it was the space in the java path,
> but i can't recall details. What happens if you change config.py to?
> C:\\Program\ Files\ (x86)\\Java\\jdk1.6.0_22\\lib

Wouldn't that eval to the same Python string?

I tried quoting all the spaces in the strings, with no help.

It's when it attempts to load jcc/_jcc.pyd that it fails.

One possible problem is that there are two different _jcc submodules
there:

  -rw-rw-rw-   1 wjanssen root           282 11-22 12:29 _jcc.py
  -rw-rw-rw-   1 wjanssen root           577 11-22 12:29 _jcc.pyc
  -rw-rw-rw-   1 wjanssen root        512418 11-22 12:29 _jcc.pyd

I'm not sure why, or if that's a problem.

Using depends.exe on _jcc.pyd says that the missing file is
Python27.dll, which seems odd.  Where should I find that?

Bill

> 
> roman
> 
> On Mon, Nov 22, 2010 at 7:53 PM, Bill Janssen <janssen@parc.com> wrote:
> > I got a brand-new Windows 7 machine, and thought I'd try building
> > PyLucene with a newer version of Python, 2.7, the 32-bit version.
> >
> > I also had to move to setuptools-0.6c11, because 0.6c9 doesn't seem to
> > work with Python 2.7.  Using 32-bit Java 6.0_22.
> >
> > But I can't get JCC to run here:
> >
> > sh-3.1$ which jcc.dll
> > /c/Python27/Lib/site-packages/JCC-2.6-py2.7-win32.egg/jcc.dll
> > sh-3.1$ which jvm.dll
> > /c/Program Files (x86)/Java/jre6/bin/client/jvm.dll
> > sh-3.1$ python -m jcc.__main__ --help
> > c:\Python27\python.exe: DLL load failed: The specified module could not be found.
> > sh-3.1$
> >
> > sh-3.1$ python -c 'import os; print os.environ.get("PATH")'
> > c:\Windows\system32;c:\Windows;c:\Windows\System32\Wbem;c:\Windows\System32\WindowsPowerShell\v1.0\;C:\MinGW\msys\1.0\bin;C:\MinGW\bin;c:\Python27;c:\Program
Files\apache-ant-1.8.1\bin;c:\Program Files (x86)\Java\jre6\bin\client;c:\Python27\Lib\site-packages\JCC-2.6-py2.7-win32.egg
> >
> > It seems to build and install OK, but when I run python in verbose mode,
> > I see
> >
> > import jcc # directory c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc
> > # c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\__init__.pyc matches
c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\__init__.py
> > import jcc # precompiled from c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\__init__.pyc
> > # c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\config.pyc matches c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\config.py
> > import jcc.config # precompiled from c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\config.pyc
> > c:\Python27\python.exe: DLL load failed: The specified module could not be found.
> >
> > So, what's in jcc/config.py?  Here's what's in it:
> >
> > INCLUDES=['C:\\Program Files (x86)\\Java\\jdk1.6.0_22\\include', 'C:\\Program Files
(x86)\\Java\\jdk1.6.0_22\\include\\win32']
> > CFLAGS=['-fno-strict-aliasing', '-Wno-write-strings']
> > DEBUG_CFLAGS=['-O0', '-g', '-DDEBUG']
> > LFLAGS=['-LC:\\Program Files (x86)\\Java\\jdk1.6.0_22\\lib', '-ljvm']
> > IMPLIB_LFLAGS=['-Wl,--out-implib,%s']
> > SHARED=True
> > VERSION="2.6"
> >
> > Any ideas about what's going wrong?  I suspect those parentheses in the
> > path to the jvm, myself.
> >
> > Bill
> >

Mime
View raw message