Clear Filters
Clear Filters

Python with Matlab 2015a Ubuntu 15.10

1 view (last 30 days)
Mario Martos
Mario Martos on 10 May 2016
Commented: Robert Snoeberger on 13 May 2016
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

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!