Thanks! That worked.

Has anybody successfully got it working with Python 2.5 or later versions?

Regards.

On Wed, Jan 19, 2011 at 5:14 PM, Eddie Epstein <eaepst...@gmail.com> wrote:
> As a sanity check, keep all the files in %uimacpp_home%\scriptators\python
> and try runaecpp pythonsample.xml ..\..\examples\data
> This should run a few documents and find annotations in some.
>
> I get the same error as you if pythonnator.py is moved to another directory.
> However, all works again for me if PYTHONPATH points to that directory.
>
> Here's all the python in my environment:
>
> C:\temp\apache-uima\uimacpp\scriptators\python>set | grep PYTH
> PYTHONPATH=C:\temp\apache-uima\uimacpp\scriptators\python\SAVE
> PYTHON_INCLUDE=\Python24\include
> PYTHON_LIB=\Python24\lib
> PYTHON_LIBDIR=\Python24\libs
>
> Eddie
>
> On Tue, Jan 18, 2011 at 10:27 PM, Ajnabee Parinda
> <ajnabee.pari...@gmail.com> wrote:
>> I'm having some issues building and running pythonnator. I've followed the
>> instructions and am able to build the pythonnator successfully with the
>> instructions specified in the python.html file. I then copied over the
>> _pythonnator.dll, pythonnator.py and sample.py files to %UIMACPP_HOME%\bin,
>> which is on PYTHONPATH. However, when I run the runAEcpp command with the
>> PythonSample.xml as the descriptor and a sample input file, I get the
>> following errors:
>>
>> Pythonnator: Initialize - debug=101
>> Pythonnator:sample: failed to import pythonnator module, PYTHONPATH problem?
>> Pythonnator: destroy
>> Exception exceptions.ImportError: 'No module named _pythonnator' in 'garbage
>> collection' ignored
>> Fatal Python error: unexpected exception during garbage collection
>>
>> This happens with both Python 2.4 and 2.5. I'm at my wit's end trying to
>> resolve this issue. Can anybody please help me with this?
>>
>> Regards.
>>
>

Reply via email to