symbolic icon indicating copy to clipboard operation
symbolic copied to clipboard

ImportError: ... pyexpat.so: undefined symbol: XML_SetHashSalt

Open cbm755 opened this issue 10 years ago • 6 comments

On new regexp branch, I get this error using Matlab 2014a.

Seems its: https://bugzilla.redhat.com/show_bug.cgi?id=821337

Workaround:

octsympy_config python 'LD_LIBRARY_PATH="" python'

(to clear the dynamic linking path)

FIXME: test on Mac and Windows

cbm755 avatar Jul 30 '14 16:07 cbm755

Now the command is

sympref python 'LD_LIBRARY_PATH="" python'

cbm755 avatar Sep 25 '14 08:09 cbm755

Also see this on Ubuntu 14.04.1 with Matlab 2013a.

cbm755 avatar Mar 05 '15 12:03 cbm755

Also on Ubuntu 14.04.3 LTS with Matlab 2014b

cbm755 avatar Nov 26 '15 00:11 cbm755

Does setenv PYTHON 'LD_LIBRARY_PATH="" python' work with the current release in Matlab?

It doesn't work for me in Octave.

Using setenv LD_LIBRARY_PATH '' is roughly equivalent, but may cause other things to break unexpectedly.

mtmiller avatar Aug 02 '18 23:08 mtmiller

Yes I think that works. It also works in Octave using the sympref ipc system (which is the only ipc supported on matlab anyway).

I guess this is about the way spaces are treated in popen2 versus system, at least I recall there is some subtly there.

cbm755 avatar Aug 06 '18 04:08 cbm755

works in Octave using the sympref ipc system

Thank you, hadn't tried that!

mtmiller avatar Aug 06 '18 22:08 mtmiller