Musicxml import

122 views
Skip to first unread message

pihe...@gmail.com

unread,
Jul 1, 2015, 4:08:55 AM7/1/15
to fresc...@googlegroups.com
Hi all!

I tried to import a musicxml with frescobaldi, and the import failed:

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'

Note, that with denemo, I was able to import the same xml.

Should I share my musicxml somehow, or is the trace enough to resolve the issue?

thanks
Gergo

Urs Liska

unread,
Jul 1, 2015, 4:13:18 AM7/1/15
to fresc...@googlegroups.com


Am 01.07.2015 um 10:08 schrieb pihe...@gmail.com:
> Hi all!
>
> I tried to import a musicxml with frescobaldi, and the import failed:
>

> ...

>
> Note, that with denemo, I was able to import the same xml.
>
> Should I share my musicxml somehow, or is the trace enough to resolve
> the issue?
>

I'm not sure if the source XML is needed (although it would probably
help). But it is clear that the error is thrown by the musicxml2ly
script itself. This is part of LilyPond and out of Frescobaldi's
control. I don't know what Denemo does different. Maybe it uses the
external improved musicxml2ly
(https://github.com/Philomelos/lilypond-musicxml2ly-dev) or does have
its own method of importing. Anyway, this issue should actually be
directed to the bug-lilypond mailing list.

Urs

> thanks
> Gergo
>

Jim Weisbin

unread,
Oct 1, 2021, 10:26:54 AM10/1/21
to Frescobaldi
I have the same issue, error:
Starting musicxml2ly...
Python path configuration:
  PYTHONHOME = '/Applications/Frescobaldi.app/Contents/Resources'
  PYTHONPATH = '/Applications/Frescobaldi.app/Contents/Resources'
  program name = '/opt/local/bin/python3.8'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/opt/local/bin/python3.8'
  sys.base_prefix = '/Applications/Frescobaldi.app/Contents/Resources'
  sys.base_exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources'
  sys.executable = '/opt/local/bin/python3.8'
  sys.prefix = '/Applications/Frescobaldi.app/Contents/Resources'
  sys.exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources'
  sys.path = [
    '/Applications/Frescobaldi.app/Contents/Resources',
    '/Applications/Frescobaldi.app/Contents/Resources/lib/python38.zip',
    '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8',
    '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'


Reply all
Reply to author
Forward
0 new messages