в kid3-qt есть плагин на qml для быстрого экспорта и импорта тегов в гуи это работает как полагается. но мне надо запускать это из терминала. в дискуссиях на sourceforge автор часто советует запускать это таким -
способом:
$qml -I /usr/lib/kid3/plugins/imports /usr/share/kid3/qml/script/ExportCsv.qml export.csv
или c в режиме отладки:
$QML_IMPORT_TRACE=1 qml -verbose -I /usr/lib/kid3/plugins/imports /usr/share/kid3/qml/script/ExportCsv.qml export.csv
что я и делаю. но почему-то не выходит. на 2 разных системах пробовал. вот вывод:
QML_IMPORT_TRACE=1 /usr/local/lib/qt5/bin/qml --verbose -I /usr/local/lib/kid3/imports/ -f /usr/local/share/kid3/qml/script/ExportCsv.qml export.csv
QQmlImportDatabase::addImportPath: "/usr/local/lib/qt5/qml"
QQmlImportDatabase::addImportPath: "qrc:/qt-project.org/imports"
QQmlImportDatabase::addImportPath: "/usr/local/lib/qt5/bin"
QQmlImportDatabase::addImportPath: "/usr/local/lib/kid3/imports/"
qml: Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2))
qml: Using built-in configuration: default.qml
QQmlImportDatabase::addImportPath: "/usr/local/lib/qt5/qml"
QQmlImportDatabase::addImportPath: "qrc:/qt-project.org/imports"
QQmlImportDatabase::addImportPath: "/usr/local/lib/qt5/bin"
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::addLibraryImport: "QmlRuntime.Config" 1.0 as ""
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::resolveType: "Configuration" => "Config" TYPE
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::resolveType: "PartialScene" => "PartialScene" TYPE
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::addImplicitImport
qml: loading file:///usr/local/share/kid3/qml/script/ExportCsv.qml
QQmlImports(file:///usr/local/share/kid3/qml/script/ExportCsv.qml)::addLibraryImport: "Kid3" 1.0 as ""
QQmlImports(file:///usr/local/share/kid3/qml/script/ExportCsv.qml)::importExtension: loaded "/usr/local/lib/kid3/imports/Kid3/qmldir"
QQmlImportDatabase::registerPluginTypes: "Kid3" from "/usr/local/lib/kid3/imports/Kid3"
QQmlImports(file:///usr/local/share/kid3/qml/script/ExportCsv.qml)::resolveType: "Kid3Script" => "" QUrl("file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml") TYPE/URL
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::addLibraryImport: "QtQml" 2.2 as ""
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::importExtension: loaded "/usr/local/lib/qt5/qml/QtQml/qmldir"
QQmlImportDatabase::registerPluginTypes: "QtQml" from "/usr/local/lib/qt5/qml/QtQml"
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::addLibraryImport: "Kid3" 1.0 as ""
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::importExtension: loaded "/usr/local/lib/kid3/imports/Kid3/qmldir"
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::resolveType: "ScriptUtils" => "ScriptUtils" TYPE
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::resolveType: "Timer" => "QQmlTimer" TYPE
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::resolveType: "QtObject" => "QObject" TYPE
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::resolveType: "Component" => "QQmlComponent" TYPE
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::resolveType: "ConfigObjects" => "ConfigObjects" TYPE
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::addImplicitImport
QQmlImports(file:///usr/local/lib/kid3/imports/Kid3/Kid3Script.qml)::resolveType: "QtObject" => "QObject" TYPE
QQmlImports(file:///usr/local/share/kid3/qml/script/ExportCsv.qml)::addImplicitImport
qml: loading file:///usr/home/a11111z/s/test wv/export.csv
QQmlApplicationEngine failed to load component
file:///usr/home/a11111z/s/test wv/export.csv: No such file or directory
qml: Did not load any objects, exiting.
вывод со второй системы:
ML_IMPORT_TRACE=1 qml --verbose -I /mnt/hdd/tr/kid/kid3-git20211030-Linux/plugins/imports/ -f /usr/share/kid3/qml/script/ExportCsv.qml export.csv
qt.qpa.xcb: XKeyboard extension not present on the X server
QQmlImportDatabase::addImportPath: "/usr/lib/qt/qml"
QQmlImportDatabase::addImportPath: "qrc:/qt-project.org/imports"
QQmlImportDatabase::addImportPath: "/usr/bin"
QQmlImportDatabase::addImportPath: "/mnt/hdd/tr/kid/kid3-git20211030-Linux/plugins/imports/"
qml: Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.1.0)
qml: Using built-in configuration: default.qml
QQmlImportDatabase::addImportPath: "/usr/lib/qt/qml"
QQmlImportDatabase::addImportPath: "qrc:/qt-project.org/imports"
QQmlImportDatabase::addImportPath: "/usr/bin"
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::addLibraryImport: "QmlRuntime.Config" 1.0 as ""
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::resolveType: "PartialScene" => "PartialScene" TYPE
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::resolveType: "Configuration" => "Config" TYPE
QQmlImports(file::/qt-project.org/QmlRuntime/conf/default.qml)::addImplicitImport
qml: loading file:///usr/share/kid3/qml/script/ExportCsv.qml
QQmlImports(file:///usr/share/kid3/qml/script/ExportCsv.qml)::addLibraryImport: "Kid3" 1.0 as ""
QQmlImports(file:///usr/share/kid3/qml/script/ExportCsv.qml)::importExtension: loaded "/mnt/hdd/tr/kid/kid3-git20211030-Linux/plugins/imports/Kid3/qmldir"
QQmlApplicationEngine failed to load component
file:///usr/share/kid3/qml/script/ExportCsv.qml:24:1: plugin cannot be loaded for module "Kid3": Cannot load library /mnt/hdd/tr/kid/kid3-git20211030-Linux/plugins/imports/Kid3/libkid3qml.so: (/mnt/hdd/tr/kid/kid3-git20211030-Linux/plugins/imports/Kid3/../../../libQt5Quick.so.5: undefined symbol: _ZN3QV47Managed9isEqualToEPS0_S1_, version Qt_5_PRIVATE_API)
qml: loading file:///mnt/hdd/tr/123/export.csv
QQmlApplicationEngine failed to load component
file:///mnt/hdd/tr/123/export.csv: No such file or directory
qml: Did not load any objects, exiting.
почему-то указывает на файл export.csv что не найден, хотя он должен создаться. если попробовать открыть через qmlscene то выскакивает окно с предложением открыть csv файл. c остальными скриптами программы то-же самое.
хотел написал в sourceforge, но на странице сообщения больше не проходят. в общем помогите пожалуйста, я в коде не шарю. а команда эта позарез как нужна...
версия Qt 5.15.2,
kid3-qt 3.8.6
код скрипта прикрепил во вложении.