Project

Profile

Help

Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.

Unable to run Saxon HEC 1.2.1 Python: looks for SaxonHEC1.2.0\libsaxonhec.dll

Added by Martin Honnen about 5 years ago

I am not able to run the latest version of Saxon-C HE 1.2.1 on one machine, installing cython and using it to compile saxonc seems to have worked fine; however, on trying to run any Python program trying to use saxonc I get an error it could not load the dll of 1.2.0 (note the difference of the last digit):

PS C:\Program Files\Saxonica\SaxonHEC1.2.1\Saxon.C.API\python-saxon> py .\saxon_example.py
Unable to load C:\Program Files\Saxonica\SaxonHEC1.2.0\libsaxonhec.dll
Error: : No error
PS C:\Program Files\Saxonica\SaxonHEC1.2.1\Saxon.C.API\python-saxon> py
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32

I am kind of lost why I get this error and how to fix it, this machine only has the HEC 1.2.1 installation, not any other version of Saxon-C at all.

Anyone an idea what could be the reason or how to check what is wrong?


Replies (4)

Please register to reply

RE: Unable to run Saxon HEC 1.2.1 Python: looks for SaxonHEC1.2.0\libsaxonhec.dll - Added by Martin Honnen about 5 years ago

I also tried building and running the C++ samples now and building works but running fails, there the culprit might be a wrong path in buildCPPSaxonHE.bat

PS C:\Program Files\Saxonica\SaxonHEC1.2.1\Saxon.C.API\python-saxon> type ..\..\samples\cppTests\buildCPPSaxonHE.bat
set jdkdir=C:\Program Files\Saxonica\SaxonHEC1.2.0\Saxon.C.API\jni

Would that also influence the cython/saxonc execution?

Oddly enough I am sure I run saxonc with 1.2.1 HE on a different machine and it seemed to work, other than having the J in the version.

RE: Unable to run Saxon HEC 1.2.1 Python: looks for SaxonHEC1.2.0\libsaxonhec.dll - Added by O'Neil Delpratt about 5 years ago

This is a bug. Due to the version change the path to the library was not updated in the maintenance release.

This is in the file SaxonSGlue.c

I have updated this in subversion, but it somehow did not make it in the release See: SaxonCGlue.c

I will look into implementing this in a different way.

RE: Unable to run Saxon HEC 1.2.1 Python: looks for SaxonHEC1.2.0\libsaxonhec.dll - Added by O'Neil Delpratt about 5 years ago

I have rebuilt Saxon/C on Windows for version 1.2.1 and uploaded it to the website.

    (1-4/4)

    Please register to reply