ABC Import (plugin) not working since updating MuseScore
I just updated to 4.3.1 and find my ABC Import plugin doesn't work.
Here is the process i've been using hereto:
-I acquire an ABC file from https://thesession.org/ - it comes down as a ".abc" file.
-I open this file using Notepad (Win11 pc).
-Select All & Copy.
-Open MuseScore
-Start a New Score (just General- treble clef)
-Go to Plugins then ABC Import
-This opens a window where you can Paste your ABC tune, or use an Open file button (I choose to paste).
-Then click Import.
-This creates an XML file
But when MuseScore tries to open the xml file it give error that its not a valid MusicXML file.
I can see that it's not going to work because the XML file is just 1kb.
When i open the XML file in Notepad it shows there was an internal server error.
<head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator at webmaster@musescore.jeetee.net to inform them of the time this error occurred, and the actions you performed just before this error.</p> <p>More information about this error may be available in the server error log.</p> </body>
Comments
That is a known issue
In reply to That is a known issue by Jojo-Schmitz
It is only a problem with the latest release?
Should I try installing an older version?
In reply to It is only a problem with… by JD123456
It is an issue with MuseScore 4.x, all of them. Works with 3.x
In reply to It is an issue with… by Jojo-Schmitz
I just installed 3.6.2 but it's still not working.
XML file shows server error.
500 Server Error.
The server encountered an error and could not complete your request.
In reply to I just installed 3.6.2 but… by JD123456
Additionally, I must have had this working under a version 4 because the v 3.6 interface looks different to me
In reply to Additionally, I must have… by JD123456
Nope, it never worked with 4.x, as that is lacking the file I/O API for plugins
I haven't tried it myself, so don't know what it's worth, but maybe you can try https://wim.vree.org/svgParse/abc2xml.html
In reply to I haven't tried it myself,… by frfancha
Another option: easyabc. https://sourceforge.net/projects/easyabc/
Can export to musicxml and is multiplatorm.
In reply to Another option: easyabc. Can… by graffesmusic
Easyabc is working perfectly for this.
Many thanks for the suggestion!
https://musescore.org/en/node/365527#comment-1248288
Hi Everyone!
I've updated the ABC import plugin to work with Musescore 4.3 and up and it works on my Linux laptops. Unfortunately, I tried it on Windows and it doesn't work, and I couldn't find a way to get the log/debug information on Windows.
So if you have Linux, I encourage you to try it: https://github.com/vgstef/abc_import/tree/mscore4.3%2B
There are still limitations because of MS Api, but at least we can again convert ABC texts.
And if you know how to debug a plugin on Windows, please tell me!
In reply to Hi Everyone! I've updated… by vgStef
You could check the logs, this is where plugins put their log output too
In reply to Hi Everyone! I've updated… by vgStef
In 4.3.2 that plugin doesn't show at all. It does show in 4.4.4, but doesn't work there, showing only an empty dialog window
From the logs (of a 4.3.2 PortableApp):
2025-03-09T11:14:23.040 | ERROR | main_thread | PluginView::load | Failed to load QML plugin from QVariant(QUrl, QUrl("file:///C:/Users/Jojo/Documents/MuseScore4/Plugins/abc_import/abc_import.qml"))
2025-03-09T11:14:23.040 | ERROR | main_thread | PluginView::load | "file:///C:/Users/Jojo/Documents/MuseScore4/Plugins/abc_import/abc_import.qml: Library import requires a version"
In reply to Hi Everyone! I've updated… by vgStef
Try the attached
In reply to Try the attached by Jojo-Schmitz
Thanks Jojo, I tried you file, but it doesn't work on Windows 11 and on Linux. On Linux, when I remove the version of the import modules, it works (that's why there was no version in my file). By the version, at least since Qt 6, the version is optional. And if not mentioned, it will use the latest version available on the system.
And yes, on Windows 11, the plugin only shows an empty windows. And that's what I'm trying to debug.
For the log, I can't find them. In which folder are they on Windows?
In reply to Thanks Jojo, I tried you… by vgStef
It does work on Windows 11, that's what I tried.
"I've updated the ABC import plugin to work with Musescore 4.3" Ignoring the "and up" for now)
With MuseScore 4.3.2. Not with 4.4.4.
The logs are where the other settings are too, C:\Users\USERNAME\AppData\Local\MuseScore\MuseScore4\logs
Qt 5.15 (like used in MuseScore 4.3.2) apparently needs those version numbers, only 4.4 uses Qt 6.2.9 and doesn't need them anymore, but there they don't harm at least. The reason for the empty dialog is not related to those version number but to the different Qt versions and the difference in 4.4's framework API
In reply to It does work on Windows 11,… by Jojo-Schmitz
This works (4.4 and 4.3 on Linux)
diff abc_import.qml abc_import.qml-orig
20,24c20,25
< import QtQuick 2.2
< import QtQuick.Controls 2.15
< import MuseScore 3.0
< import FileIO 3.0
<
> import QtQuick
> import QtQuick.Dialogs
> import QtQuick.Controls
> import QtQuick.Window
> import MuseScore
> import FileIO
90,93d90
< focus: true // Ensure it can receive focus
< readOnly: false // Ensure it's editable
< selectByMouse: true // Allow mouse selection
< selectByKeyboard: true // Allow keyboard selection
(focus lines added)
(only tested on Linux, 4.4 and 4.3)
In reply to This works (4.4 and 4.3 on… by graffesmusic
Again: with Qt 5.x you need the version numbers. 4.3 used Qt 5.x. unless maybe you're using FlatPak or a selfbuilt one
Else (like in 4.3.2 PortableApp on Windows 11) you get this in the logs:
2025-03-10T09:38:58.860 | ERROR | main_thread | PluginView::load | Failed to load QML plugin from QVariant(QUrl, QUrl("file:///C:/Users/Jojo/Documents/MuseScore4/Plugins/abc_import/abc_import.qml"))
2025-03-10T09:38:58.861 | ERROR | main_thread | PluginView::load | "file:///C:/Users/Jojo/Documents/MuseScore4/Plugins/abc_import/abc_import.qml:52:5: FileDialog is not a type"
and the plugin doesn't get loaded
The 4 added lines and the 2 deleted imports indeed seems to make the plugin work in 4.4 though!
In reply to Again: with Qt 5.x you need… by Jojo-Schmitz
It is not (just?) the missing versions, but (also?) the missing "import QtQuick.Dialogs 1.2"
Needed in 4.3, causes failure in 4.4
So we can't have that plugin working for 4.3 (and before) and 4.4 (and after)
In reply to Edit: it is not (just?) the… by Jojo-Schmitz
Sorry, i tested on 4.4.4 and 4.4.3, bit not 4.3x
This one then: works in 4.3. (without Dialogs)
I removed all unneeded stuff.
In reply to This works (4.4 and 4.3 on… by graffesmusic
Oh, I see, your diff is the wrong way round, it wants orig first ;.)
In reply to Oh, I see, your diff is the… by Jojo-Schmitz
Sorry ..
In reply to Sorry .. by graffesmusic
and the -u (unified) option is usefull (or -c (context), but -u is better IMHO)