bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xml conversion error


From: Gergely K.
Subject: Re: xml conversion error
Date: Wed, 1 Jul 2015 22:46:34 +0200

On Wed, Jul 1, 2015 at 8:15 PM, Simon Albrecht <address@hidden>
wrote:

> Hi,
>
> I’ve no experience with xml, but please try and narrow down the problem,
> so you can provide a _minimal_ xml file which shows the problem.
>
> Thank you,
> Simon
>
>
> Am 01.07.2015 um 11:28 schrieb Gergely K.:
>
>> Hi all!
>>
>> I imported some musicxml file, and got the following error message:
>>
>> The file couldn't be converted. Error message:
>> musicxml2ly: Reading MusicXML from /media/sf_Temp/poco moderato
>> midinek.xml
>> ...
>> Traceback (most recent call last):
>>    File "/usr/bin/musicxml2ly", line 2986, in <module>
>>      main()
>>    File "/usr/bin/musicxml2ly", line 2981, in main
>>      voices = convert (filename, options)
>>    File "/usr/bin/musicxml2ly", line 2883, in convert
>>      score_information = extract_score_information (tree)
>>    File "/usr/bin/musicxml2ly", line 201, in extract_score_information
>>      set_if_exists ('title', movement_title.get_text ())
>> AttributeError: 'NoneType' object has no attribute 'get_text'
>>
>> I imported with frescobaldi for windows:
>> Frescobaldi: 2.18
>>
>> Python: 2.7.1
>> Qt: 4.7.2
>> PyQt4: 4.8.4
>> sip: 4.12.2
>> python-ly: 0.9
>> poppler: unknown
>> python-poppler-qt4: unknown
>>
>> Operating System:
>> Windows-7-6.1.7601-SP1
>>
>>
>>
>>
>
Hi Simon,

As I only exported the xml from a close-sourced app, and knowing that xml
is a verbose format, I don't think I will have a file which fits as a mail
signature. From the trace I suspect a dev should know the problem.
Anyways, I managed to reduce the size of the xml, here is it:
================
<?xml version="1.0" encoding='UTF-8' standalone='no' ?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0
Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd";>
<score-partwise version="3.0">
 <work>
  <work-title />
 </work>
 <identification>
  <rights>Copyright © </rights>
  <encoding>
   <encoding-date>2015-07-01</encoding-date>
   <encoder>pihentagy</encoder>
   <software>Sibelius 7.5.0</software>
   <software>Direct export, not from Dolet</software>
   <encoding-description>Sibelius / MusicXML 3.0</encoding-description>
   <supports element="print" type="yes" value="yes" attribute="new-system"
/>
   <supports element="print" type="yes" value="yes" attribute="new-page" />
   <supports element="accidental" type="yes" />
   <supports element="beam" type="yes" />
   <supports element="stem" type="yes" />
  </encoding>
 </identification>
 <defaults>
  <scaling>
   <millimeters>210</millimeters>
   <tenths>1500</tenths>
  </scaling>
  <page-layout>
   <page-height>2121</page-height>
   <page-width>1500</page-width>
   <page-margins type="both">
    <left-margin>90</left-margin>
    <right-margin>90</right-margin>
    <top-margin>90</top-margin>
    <bottom-margin>90</bottom-margin>
   </page-margins>
  </page-layout>
  <system-layout>
   <system-margins>
    <left-margin>21</left-margin>
    <right-margin>0</right-margin>
   </system-margins>
   <system-distance>92</system-distance>
  </system-layout>
  <appearance>
   <line-width type="stem">0.9375</line-width>
   <line-width type="beam">5</line-width>
   <line-width type="staff">0.9375</line-width>
   <line-width type="light barline">1.5625</line-width>
   <line-width type="heavy barline">5</line-width>
   <line-width type="leger">1.5625</line-width>
   <line-width type="ending">1.5625</line-width>
   <line-width type="wedge">1.25</line-width>
   <line-width type="enclosure">0.9375</line-width>
   <line-width type="tuplet bracket">1.25</line-width>
   <line-width type="bracket">5</line-width>
   <line-width type="dashes">1.5625</line-width>
   <line-width type="extend">0.9375</line-width>
   <line-width type="octave shift">1.5625</line-width>
   <line-width type="pedal">1.5625</line-width>
   <line-width type="slur middle">1.5625</line-width>
   <line-width type="slur tip">0.625</line-width>
   <line-width type="tie middle">1.5625</line-width>
   <line-width type="tie tip">0.625</line-width>
   <note-size type="cue">75</note-size>
   <note-size type="grace">60</note-size>
  </appearance>
  <music-font font-family="Opus Std" font-size="15.874" />
  <lyric-font font-family="Times New Roman" font-size="9.1772" />
  <lyric-language xml:lang="en" />
 </defaults>
 <part-list>
  <score-part id="P1">
   <part-name>P1</part-name>
   <score-instrument id="P1-I1">
    <instrument-name>Violin</instrument-name>
    <instrument-sound>strings.violin</instrument-sound>
    <solo />
    <virtual-instrument>
     <virtual-library>General MIDI</virtual-library>
     <virtual-name>Violin</virtual-name>
    </virtual-instrument>
   </score-instrument>
  </score-part>
 </part-list>
 <part id="P1">
  <!--============== Part: P1, Measure: 1 ==============-->
  <measure number="1" width="1296">
   <print new-page="yes">
    <system-layout>
     <system-margins>
      <left-margin>22</left-margin>
      <right-margin>0</right-margin>
     </system-margins>
     <top-system-distance>272</top-system-distance>
    </system-layout>
   </print>
   <attributes>
    <divisions>256</divisions>
    <key color="#000000">
     <fifths>-2</fifths>
     <mode>major</mode>
    </key>
    <time color="#000000">
     <beats>3</beats>
     <beat-type>4</beat-type>
    </time>
    <staves>1</staves>
    <clef number="1" color="#000000">
     <sign>G</sign>
     <line>2</line>
    </clef>
    <staff-details number="1" print-object="yes" />
   </attributes>
   <note color="#000000" default-x="98" default-y="-55">
    <pitch>
     <step>B</step>
     <alter>-1</alter>
     <octave>4</octave>
    </pitch>
    <duration>384</duration>
    <instrument id="P1-I1" />
    <voice>1</voice>
    <type>quarter</type>
    <dot />
    <stem>down</stem>
    <staff>1</staff>
   </note>
   <note default-x="551">
    <rest />
    <duration>128</duration>
    <instrument id="P1-I1" />
    <voice>1</voice>
    <type>eighth</type>
    <staff>1</staff>
   </note>
   <note default-x="795">
    <rest />
    <duration>128</duration>
    <instrument id="P1-I1" />
    <voice>1</voice>
    <type>eighth</type>
    <staff>1</staff>
   </note>
   <note print-object="no" default-x="1038">
    <rest />
    <duration>128</duration>
    <instrument id="P1-I1" />
    <voice>1</voice>
    <type>eighth</type>
    <staff>1</staff>
   </note>
   <barline>
    <bar-style>light-heavy</bar-style>
   </barline>
  </measure>
 </part>
</score-partwise>
=============
Gergo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]