~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/converter/subConverters.py in show(self, obj, fmt, app, subformats, **keywords) 349 for s in scores: 350 fp = helperSubConverter.write(s, helperFormat, --> 351 subformats=helperSubformats, **keywords) 352 353 if helperSubformats[0] == 'png':
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/converter/subConverters.py in write(self, obj, fmt, fp, subformats, **keywords) 879 and ('png' in subformats or 'pdf' in subformats) 880 and not str(environLocal['musescoreDirectPNGPath']).startswith('/skip')): --> 881 fp = self.runThroughMusescore(fp, subformats, **keywords) 882 883 return fp
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/converter/subConverters.py in findPNGfpFromXMLfp(self, xmlFilePath) 748 else: 749 raise SubConverterFileIOException( --> 750 "png file of xml not found. Or file >999 pages?") 751 return pngfp 752
SubConverterFileIOException: png file of xml not found. Or file >999 pages?
Hi Dears,
ReplyDeleteI'm using the version 5.3.0 in Ubuntu release 16.04 and I'm facing show() issue as follows:
alto = sBach.parts[1] # parts count from zero, so soprano is 0 and alto is 1
-----
alto = sBach.parts[1] # parts count from zero, so soprano is 0 and alto is 1
excerpt = alto.measures(1, 4)
excerpt.show()
#output
---------------------------------------------------------------------------
SubConverterFileIOException Traceback (most recent call last)
in ()
----> 1 excerpt.show()
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/stream/__init__.py in show(self, *args, **kwargs)
256 if self.isSorted is False and self.autoSort:
257 self.sort()
--> 258 return super().show(*args, **kwargs)
259
260 #---------------------------------------------------------------------------
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/base.py in show(self, fmt, app, **keywords)
2576 app=app,
2577 subformats=subformats,
-> 2578 **keywords)
2579
2580 #--------------------------------------------------------------------------
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/converter/subConverters.py in show(self, obj, fmt, app, subformats, **keywords)
349 for s in scores:
350 fp = helperSubConverter.write(s, helperFormat,
--> 351 subformats=helperSubformats, **keywords)
352
353 if helperSubformats[0] == 'png':
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/converter/subConverters.py in write(self, obj, fmt, fp, subformats, **keywords)
879 and ('png' in subformats or 'pdf' in subformats)
880 and not str(environLocal['musescoreDirectPNGPath']).startswith('/skip')):
--> 881 fp = self.runThroughMusescore(fp, subformats, **keywords)
882
883 return fp
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/converter/subConverters.py in runThroughMusescore(self, fp, subformats, **keywords)
836
837 if subformatExtension == 'png':
--> 838 return self.findPNGfpFromXMLfp(fpOut)
839 else:
840 return fpOut
~/anaconda2/envs/py36/lib/python3.6/site-packages/music21/converter/subConverters.py in findPNGfpFromXMLfp(self, xmlFilePath)
748 else:
749 raise SubConverterFileIOException(
--> 750 "png file of xml not found. Or file >999 pages?")
751 return pngfp
752
SubConverterFileIOException: png file of xml not found. Or file >999 pages?
----
Does anybody have idea how to fix it?
Thank you.
Milton