Python with Matlab 2015a Ubuntu 15.10
2 views (last 30 days)
Show older comments
Hello, I wanted to ask about an error or problem I have with Matlab when I want to run a python file from the command window , to see if you have any idea how to fix or solve it, because I don't know what happens. the problem or error is as follows:
command = ['python xml2abc.py -p 0.83,1,21.0,1.00,1.00,1,1 ' song.filename]; [status,cmdout] = system(command); cmdout
cmdout =
type 'exceptions.ImportError'> occurred: No module named expat; use SimpleXMLTreeBuilder instead in Bach789Sco.xml
command = ['python -c "import xml.parsers.expat" xml2abc.py -p 0.83,1,21.0,1.00,1.00,1,1 ' song.filename]; [status,cmdout] = system(command); cmdout
cmdout =
Traceback (most recent call last): File "<string>", line 1, in module File "/usr/lib/python2.7/xml/parsers/expat.py", line 4, in module from pyexpat import * ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so: undefined symbol: XML_SetHashSalt
py.sys.path
ans =
Python list with no properties.
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
Any idea what 's going on? Thanks you
1 Comment
Robert Snoeberger
on 13 May 2016
A similar question was asked on the MATLAB Newsgroup. It might provide some useful information.
Link:
Answers (0)
See Also
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!