[Top][All Lists]

[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>

> 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-title />
  <rights>Copyright © </rights>
   <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" />
   <page-margins type="both">
   <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>
  <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" />
  <score-part id="P1">
   <score-instrument id="P1-I1">
    <solo />
     <virtual-library>General MIDI</virtual-library>
 <part id="P1">
  <!--============== Part: P1, Measure: 1 ==============-->
  <measure number="1" width="1296">
   <print new-page="yes">
    <key color="#000000">
    <time color="#000000">
    <clef number="1" color="#000000">
    <staff-details number="1" print-object="yes" />
   <note color="#000000" default-x="98" default-y="-55">
    <instrument id="P1-I1" />
    <dot />
   <note default-x="551">
    <rest />
    <instrument id="P1-I1" />
   <note default-x="795">
    <rest />
    <instrument id="P1-I1" />
   <note print-object="no" default-x="1038">
    <rest />
    <instrument id="P1-I1" />

reply via email to

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