Project

Profile

Help

Bug #5860

open

Self built python extension failure to link library

Added by O'Neil Delpratt about 1 year ago.

Status:
New
Priority:
Normal
Category:
Python Build
Start date:
2023-01-26
Due date:
% Done:

0%

Estimated time:
Found in version:
12.0
Fixed in version:
Platforms:

Description

Reported by userL https://saxonica.plan.io/boards/4/topics/9261

There is a problem to self build the python library from the pypi directory.

Currently if we build the wheel with the command:

python3 setup.py bdist_wheel

or building the extension locallly:

python3 setup.py build_ext -if

It builds successfully (although user reported that they had to make changes in the setup file to locate the library). When we run a sample python script we get the following error:

Traceback (most recent call last):
  File "/Users/ond1/work/saxondev/build/temp/libsaxon-EEC-mac-x86_64-v12.0/pypi/samples/saxon_example.py", line 1, in <module>
    import saxoncee
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/saxoncee.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace (_addProcessorDataPair)

No data to display

Please register to edit this issue

Also available in: Atom PDF