Title: UnboundLocalError: local variable 'val' referenced before assignment · Issue #80 · frescobaldi/python-ly · GitHub
Open Graph Title: UnboundLocalError: local variable 'val' referenced before assignment · Issue #80 · frescobaldi/python-ly
X Title: UnboundLocalError: local variable 'val' referenced before assignment · Issue #80 · frescobaldi/python-ly
Description: Reported by a Frescobaldi user: Exporting the following file to MusicXML \version "2.19.49" \language "english" origBreak = { \break } ThirdTune = \relative { \repeat volta 2 { \time 4/4 \key g \major | e''4 e g8 e d b | e8 d b a d4 b | ...
Open Graph Description: Reported by a Frescobaldi user: Exporting the following file to MusicXML \version "2.19.49" \language "english" origBreak = { \break } ThirdTune = \relative { \repeat volta 2 { \time 4/4 \key g \ma...
X Description: Reported by a Frescobaldi user: Exporting the following file to MusicXML \version "2.19.49" \language "english" origBreak = { \break } ThirdTune = \relative { \repeat volta 2 { ...
Opengraph URL: https://github.com/frescobaldi/python-ly/issues/80
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UnboundLocalError: local variable 'val' referenced before assignment","articleBody":"Reported by a Frescobaldi user:\r\n\r\n> Exporting the following file to MusicXML\r\n\r\n```lilypond\r\n\\version \"2.19.49\"\r\n\\language \"english\"\r\n\r\norigBreak = { \\break }\r\n\r\nThirdTune =\r\n\\relative {\r\n \\repeat volta 2 {\r\n \\time 4/4\r\n \\key g \\major\r\n | e''4 e g8 e d b\r\n | e8 d b a d4 b\r\n | e4 e g8 e g4\r\n | a2 g\r\n \\origBreak\r\n | e4 e g8 e d b\r\n | e8 d b a d4 b\r\n | e4 d8 b d b a g\r\n | b8 a g4 e2\r\n \\origBreak\r\n }\r\n \\repeat volta 2 {\r\n | b'4 a8 g e4 b'\r\n | a8 g e g a4 b\r\n | d2 cs2\r\n | c2 a\r\n | b4 a8 g e4 b'\r\n \\origBreak\r\n | a8 g e d g4 e\r\n }\r\n \\alternative {\r\n {\r\n | b4 d8 d b4 d\r\n | ds4 b ds8 fs a4\r\n }\r\n {\r\n | g8 c c c b4 g\r\n | a8 fs d4 e2\r\n }\r\n }\r\n}\r\n\r\nThirdTuneChords = \\chordmode {\r\n \\repeat volta 2 {\r\n | e1:m s s a2 g\r\n | e1:m s e2:m d b:7 e:m\r\n | e1:m s d2 a c b:7 e1:m\r\n | s1\r\n }\r\n \\alternative {\r\n { d1 b1:7 }\r\n { c2 g d e:m }\r\n }\r\n}\r\n\r\n\\score {\r\n \u003c\u003c\r\n \\new ChordNames \\ThirdTuneChords\r\n \\new Staff { \\clef treble \\ThirdTune }\r\n >> \r\n \\layout {\r\n indent = 0 \\in\r\n \\override Score.BarNumber.break-visibility = #'#(#f #f #f)\r\n }\r\n}\r\n```\r\n\r\nresults in:\r\n\r\n```python\r\nFile \"/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py\", line \r\n96, in parse_text\r\nself.parse_document(doc)\r\nFile \"/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py\", line \r\n109, in parse_document\r\nself.parse_tree(mustree)\r\nFile \"/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py\", line \r\n123, in parse_tree\r\nself.parse_nodes(mus_nodes)\r\nFile \"/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py\", line \r\n135, in parse_nodes\r\nfunc_call(m)\r\nFile \"/usr/lib/python3/dist-packages/ly/musicxml/lymus2musxml.py\", line \r\n173, in Assignment\r\nself.mediator.new_header_assignment(a.name(), val)\r\nUnboundLocalError: local variable 'val' referenced before assignment\r\n```","author":{"url":"https://github.com/wbsoft","@type":"Person","name":"wbsoft"},"datePublished":"2017-02-14T13:25:37Z","url":"https://github.com/frescobaldi/python-ly/issues/80"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a4f5e7ce-e693-945c-9c8e-f246103c3eb6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9348:29B887:27FF395:347FA6A:6B09B088 |
| html-safe-nonce | 16c89054602c371c42273e5d1f706248e0835705b8129e384b8027873296d246 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzQ4OjI5Qjg4NzoyN0ZGMzk1OjM0N0ZBNkE6NkIwOUIwODgiLCJ2aXNpdG9yX2lkIjoiNTY1ODE2MjY5NjA0MzQ3NTA4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 78b851b4968ae79ee6f72368c198c390f59eb060dc77caf8f1628b3db248b724 |
| hovercard-subject-tag | issue:207514533 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/frescobaldi/python-ly/80/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f52e4233402326b30d753b897601f5a9a732eb8c80148fe8887e16c5ff7bb0c/frescobaldi/python-ly/issues/80 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f52e4233402326b30d753b897601f5a9a732eb8c80148fe8887e16c5ff7bb0c/frescobaldi/python-ly/issues/80 |
| og:image:alt | Reported by a Frescobaldi user: Exporting the following file to MusicXML \version "2.19.49" \language "english" origBreak = { \break } ThirdTune = \relative { \repeat volta 2 { \time 4/4 \key g \ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wbsoft |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5ee9972cda5524016b9eddec37d51a4550d0a8a3bc7d0c189531849d55d54b8c |
| turbo-cache-control | no-preview |
| go-import | github.com/frescobaldi/python-ly git https://github.com/frescobaldi/python-ly.git |
| octolytics-dimension-user_id | 19853952 |
| octolytics-dimension-user_login | frescobaldi |
| octolytics-dimension-repository_id | 29728425 |
| octolytics-dimension-repository_nwo | frescobaldi/python-ly |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29728425 |
| octolytics-dimension-repository_network_root_nwo | frescobaldi/python-ly |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d87ea1696ca7d53c0e83fef3db13186e4a6cce7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width