› Forums › Speech Synthesis › Merlin › Problem running modified run_lstm.py locally
- This topic has 4 replies, 2 voices, and was last updated 8 years, 2 months ago by Simon.
-
AuthorPosts
-
-
May 31, 2016 at 13:28 #3200
For my project I need to modify the run_lstm.py script. When I try to run my own modified version locally on one of the (formerly) Appleton Tower macs (PPLS-ATLab-008), I get the following error message.
File “run_lstm.py”, line 18, in <module>
from frontend.label_normalisation import HTSLabelNormalisation, XMLLabelNormalisation
File “/Users/s1205542/dnn_tts/frontend/label_normalisation.py”, line 9, in <module>
from lxml import etreeImportError: dlopen(/Volumes/Network/courses/ss/dnn/lib/python2.7/site-packages/lxml/etree.so, 2): no suitable image found. Did find:
/Volumes/Network/courses/ss/dnn/lib/python2.7/site-packages/lxml/etree.so: mach-o, but wrong architectureIt seems like running the script involves importing a package which has binary for the wrong architecture.
Is there a way to overcome this on the Appleton Tower machines?
-
May 31, 2016 at 13:52 #3201
Currently libxml isn’t working on the lab machines. But it’s not needed – comment out all lxml (or modules from lxml) imports. These will be in
frontend/label_composer.py frontend/label_normalisation.py
Or, if you want to be more future-proof (you might need the libxml functions if you want to integrate with Ossian), wrap the imports in
try...except
such astry: from lxml import etree except: print "Failed to import etree from lxml"
or
try: import lxml from lxml import etree from lxml.etree import * MODULE_PARSER = etree.XMLParser() except: print "Failed to import lxml"
-
May 31, 2016 at 16:42 #3203
A similar import problem, during generation, this time for
import bandmat as bm
import bandmat.linalg as blain mlpg_fast.py. Is there any way to get this package on the PPLS Macs?
-
May 31, 2016 at 16:56 #3205
You can take a copy of
bandmat
from/Volumes/Network/courses/ss/dnn/dnn_tts/bandmat
, or add that to your PYTHONPATH
-
-
AuthorPosts
- You must be logged in to reply to this topic.