Opened 6 months ago
Last modified 6 months ago
#70136 new defect
ImportError for pyexpat with python 3.8
Reported by: | aarongeller | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | python38 |
Description
After upgrading my python 3.8, trying to run from pyexpat import *
gives:
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/pyexpat.cpython-38-darwin.so, 0x0002): Symbol not found: _XML_SetReparseDeferralEnabled` `Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/pyexpat.cpython-38-darwin.so` `Expected in: /Applications/MATLAB/MATLAB_Runtime/R2023a/bin/maci64/libexpat.1.8.7.dylib`
I was able to fix this by restoring the old version of /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/pyexpat.cpython-38-darwin.so
.
Note: See
TracTickets for help on using
tickets.
Did you install from a binary or from source? Is
pyexpat.cpython-38-darwin.so
actually linked against your MATLAB installation or could aDYLD_*
environment variable be set?In the Sonoma x86_64 binary: