Python with Matlab 2015a Ubuntu 15.10
조회 수: 2 (최근 30일)
이전 댓글 표시
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
Robert Snoeberger
2016년 5월 13일
A similar question was asked on the MATLAB Newsgroup. It might provide some useful information.
Link:
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!