Effacer les filtres
Effacer les filtres

Python with Matlab 2015a Ubuntu 15.10

1 vue (au cours des 30 derniers jours)
Mario Martos
Mario Martos le 10 Mai 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
  1 commentaire
Robert Snoeberger
Robert Snoeberger le 13 Mai 2016
A similar question was asked on the MATLAB Newsgroup. It might provide some useful information.
Link:

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by