Petrus, 
not sure if that helps, but I recently had a similar issue with JCC and
MinGW on Windows: I was able to build (and install) JCC, but the final
"python -m jcc.__main__ xyz.jar" (when building PyLucene) did fail - the
python.exe crashed!

I couldn't figure out what the problem is and finally ended up in again
using Microsoft Visual C-compiler (actually Microsoft Visual Studio 9.0 ==
msvcr90.dll with Python 2.6). Lesson learnt: it does matter what libc is
used in your python2x distribution (e.g. msvcr90.dll) - and if the stuff you
compile with mingw uses another DLL that may cause problems...


Regards,

Thomas

> -----Original Message-----
> From: Petrus Hyvönen [mailto:petrus.hyvo...@gmail.com]
> Sent: Wednesday, September 07, 2011 10:11 PM
> To: pylucene-dev@lucene.apache.org; Andi Vajda
> Subject: Re: JCC crash when building
> 
> Thanks, I tried now to uninstall Java 7 completely, and recompile JCC,
same
> problem.
> 
> I should maybe mention that I'm on 64-bit Windows 7, and a 32 bit python
> (python xy)
> 
> Regards
> /Petrus
> 
> 
> On Wed, Sep 7, 2011 at 9:04 PM, Andi Vajda <va...@apache.org> wrote:
> 
> >
> > I'm sorry, I'm not ignoring you, but since I don't run Windows much and
> > mingw not at all, I can't help you. It is very likely you've got some
DLLs
> > mixed up indeed.
> >
> > Maybe someone with mingw experience here can chime in ?
> >
> > Andi..
> >
> >
> > On Tue, 6 Sep 2011, Petrus Hyvönen wrote:
> >
> >  Hi again,
> >>
> >> python -m jcc --find-jvm-dll crashes as well.
> >>
> >> jcc.path gives me following:
> >>
> >> ['C:\\Python27\\lib\\site-**packages\\jcc-2.10-py2.7-**win32.egg',
> >> 'C:\\MinGW32-xy\\bin',
> >> 'C:\\Python27\\Lib\\site-**packages\\PyQt4',
> >> 'C:\\Program Files (x86)\\MiKTeX 2.9\\miktex\\bin',
> >> 'C:\\Windows\\system32',
> >> 'C:\\Windows',
> >> 'C:\\Windows\\System32\\Wbem',
> >> 'C:\\Windows\\System32\\**WindowsPowerShell\\v1.0\\',
> >> 'C:\\Program Files\\Intel\\WiFi\\bin\\',
> >> 'C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\**',
> >> 'C:\\Program Files\\TortoiseHg\\',
> >> 'C:\\Program Files\\TortoiseSVN\\bin',
> >> 'C:\\Program Files (x86)\\Java\\jdk1.6.0_26\\bin'**,
> >> 'C:\\Program Files (x86)\\QuickTime\\QTSystem\\',
> >> 'C:\\Program Files (x86)\\Git\\cmd',
> >> 'C:\\Program Files (x86)\\Java\\jdk1.7.0\\jre\\**bin\\client',
> >> 'c:\\Program Files\\java\\jdk1.7.0\\bin',
> >> 'C:\\Python27\\Lib\\site-**packages\\PyQt4',
> >> 'C:\\Windows\\System32',
> >> 'C:\\Program Files (x86)\\Java\\jre7\\bin\\**client',
> >> 'C:\\Python27',
> >> 'C:\\Python27\\DLLs',
> >> 'C:\\Python27\\Scripts',
> >> 'C:\\Python27\\Lib\\site-**packages\\vtk',
> >> 'C:\\Python27\\gnuplot\\**binary',
> >> 'C:\\Program Files (x86)\\pythonxy\\console',
> >> 'C:\\Program Files (x86)\\pythonxy\\SciTE-2.26',
> >> 'C:\\MinGW32-xy\\bin',
> >> 'C:\\Program Files (x86)\\pythonxy\\swig',
> >> 'C:\\Program Files (x86)\\pythonxy\\gettext\\bin'**]
> >>
> >> Your expertise is, as always, very appriciated :)
> >>
> >> On Tue, Sep 6, 2011 at 8:05 PM, Petrus Hyvönen
<petrus.hyvo...@gmail.com>
> >> **wrote:
> >>
> >>  Dear all,
> >>>
> >>> I reinstalled my python xy environment, from 2.6 to python 2.7 and
need
> >>> to
> >>> compile jcc and my java modules.
> >>>
> >>> Compiling jcc went well with python setup.py build --compiler=mingw32,
no
> >>> errors reported and installs fine.
> >>>
> >>> I had initially lots of troubles with "No module named _jcc" errors,
but
> >>> this was caused by trying to run python -m jcc in jcc build dir, and
it
> >>> imports the wrong jcc. Several trouble reports on the net possible
caused
> >>> by
> >>> this.
> >>>
> >>> Anyway, my current issue is when trying to build my java wrapper. When
> >>> performing the python -m jcc --jar orekit.jar ... command, jcc crashes
> >>> python silently. It does not seem to matter which jar I use.
> >>>
> >>> Somehow this kind of errors is often from incompatible libraries. How
is
> >>> it
> >>> with java, i have both v6 and v7 installed, and in the compilation it
> >>> seems
> >>> to use v7, which client I have in the PATH. Could there be somthing
> >>> related
> >>> to java versions? What other things can mess up? :)
> >>>
> >>> Regards
> >>> /Petrus
> >>>
> >>> --
> >>> ______________________________**_______________
> >>> Petrus Hyvönen, Uppsala, Swedenv
> >>> Mobile Phone/SMS:+46 73 803 19 00
> >>>
> >>>
> >>
> >>
> >> --
> >> ______________________________**_______________
> >> Petrus Hyvönen, Uppsala, Sweden
> >> Mobile Phone/SMS:+46 73 803 19 00
> >>
> >
> 
> 
> --
> _____________________________________________
> Petrus Hyvönen, Uppsala, Sweden
> Mobile Phone/SMS:+46 73 803 19 00


Reply via email to