qownnotes / scripts

QOwnNotes script repository
http://www.qownnotes.org
GNU General Public License v3.0
102 stars 78 forks source link

[BUG] export note using pandoc not working on windows #226

Closed netlimpopo closed 4 months ago

netlimpopo commented 6 months ago

Script name

export note using pandoc

Script authors

@student4life

Expected behavior

Export file to different file formats

Actual behavior

No output is generated

Steps to reproduce

Run script from UI

Output from the debug section in the settings dialog

see below

Relevant log output in the Log panel for export notes as pandoc

[16:48:07] [scripting] C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Notizen/Website with markdown/Home.md,-d,C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\pandoc-export/defaults.yaml,-o,C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Desktop/Home222.html [16:48:07] [scripting] C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\pandoc-export [16:48:07] [scripting] pandocExport: exported note file - C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Desktop/Home222.html [16:49:15] [scripting] C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Notizen/Website with markdown/Home.md,-d,C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\pandoc-export/defaults.yaml,-o,C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Desktop/Hometest.docx [16:49:15] [scripting] C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\pandoc-export [16:49:15] [scripting] pandocExport: exported note file - C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Desktop/Hometest.docx

Output from the debug section in the settings dialog

QOwnNotes Debug Information

General Info

Current Date: Mo. Mär 11 16:27:29 2024 Version: 24.3.1 Build date: Mar 8 2024 Build number: 1085 Platform: windows Operating System: Windows 10 Version 2009 Build architecture: x86_64 Current architecture: x86_64 Release: GitHub Actions Qt Version (build): 5.15.2 Qt Version (runtime): 5.15.2 Portable mode: no Settings path / key: \HKEY_CURRENT_USER\Software\PBE\QOwnNotes Application database path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite Application arguments: C:\Users\Alexander Zettler\OneDrive - BRG BORG Schloss Traunsee\Dokumente\QOwnNotes\QOwnNotes.exe Qt Debug: 0 Locale (system): de_AT Locale (interface): empty Primary screen resolution: 1920x1080 Icon theme: breeze-qownnotes Notes in current note folder: 7 Calendar items: 0 Enabled scripts: 7

Server Info

serverUrl: empty appIsValid: yes notesPathExists: empty serverVersion: empty appVersion: empty

Spellchecking

Enabled: true Selected language: auto Language codes: de_AT_frami, en_GB Language names: Österreichisches Deutsch (Österreich), British English (United Kingdom) Application dictionaries path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\dicts

Note folders

currentNoteFolderId: 2

Note folder Standard

id: 1 isCurrent: no activeTagId: 0 localPath: C:\Users\Alexander Zettler\OneDrive - BRG BORG Schloss Traunsee\Notizen\QOwnNotes remotePath: Notes cloudConnectionId: 1 isShowSubfolders: yes isUseGit: no allowDifferentNoteFileName: no activeNoteSubFolder name: empty database file: C:\Users\Alexander Zettler\OneDrive - BRG BORG Schloss Traunsee\Notizen\QOwnNotes\notes.sqlite

Note folder Website

id: 2 isCurrent: yes activeTagId: -2 localPath: C:\Users\Alexander Zettler\OneDrive - BRG BORG Schloss Traunsee\Notizen\Website with markdown remotePath: Notes cloudConnectionId: 1 isShowSubfolders: yes isUseGit: no allowDifferentNoteFileName: no activeNoteSubFolder name: empty database file: C:\Users\Alexander Zettler\OneDrive - BRG BORG Schloss Traunsee\Notizen\Website with markdown\notes.sqlite

Note folder Website lokal

id: 3 isCurrent: no activeTagId: 0 localPath: C:\Users\Alexander Zettler\Downloads\Website with markdown remotePath: Notes cloudConnectionId: 1 isShowSubfolders: yes isUseGit: no allowDifferentNoteFileName: no activeNoteSubFolder name: empty database file: C:\Users\Alexander Zettler\Downloads\Website with markdown\notes.sqlite

Cloud connections

Cloud connection Standard

id: 1 isCurrent: yes serverUrl: empty username: empty accountId: empty

Enabled scripts

Script Export notes as one HTML file

id: 1 path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\export-notes-as-one-html\export-notes-as-one-html.qml variablesJson: empty identifier: export-notes-as-one-html version: 1.0.0 minAppVersion: 18.03.7

Script Export notes as website

id: 2 path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\export-notes-as-website\export-notes-as-website.qml variablesJson:

{
    "defaultExportFolder": "",
    "defaultExportPath": "C:\\Users\\Alexander Zettler\\OneDrive - BRG BORG Schloss Traunsee\\Notizen\\Website with markdown_exported - 2 Versuch",
    "exportStyleSelection": "opt2",
    "useAbsolutePaths": false
}

identifier: export-notes-as-website version: 1.1.0 minAppVersion: 22.11.8

Script Pandoc Export

id: 3 path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\pandoc-export\pandoc-export.qml variablesJson:

{
    "pandocPath": "C:\\Program Files\\Pandoc\\pandoc.exe"
}

identifier: pandoc-export version: 0.0.1 minAppVersion: 21.12.0

Script Latex Math

id: 4 path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\latex-math\latex-math.qml variablesJson:

{
    "customPreamble": "\\newcommand{\\mycmd}[1]{\\bf \\underline{#1}}",
    "executable": "/usr/bin/klatexformula",
    "formulaBgColor": "-",
    "formulaColor": "#000000",
    "formulaPrefix": "\\bf ",
    "settingDPI": 600,
    "settingImageSize": 16,
    "usepackages": "amsmath,amssymb,amsfonts"
}

identifier: latex-math version: 0.0.6 minAppVersion: 20.8.0

Script Link titles

id: 5 path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\link-titles\link-titles.qml variablesJson: empty identifier: link-titles version: 0.0.1 minAppVersion: 20.6.0

Script Unique note id

id: 6 path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\unique-note-id\unique-note-id.qml variablesJson: empty identifier: unique-note-id version: 1.0.1 minAppVersion: 18.05.1

Script Insert Table of Contents (TOC)

id: 7 path: C:\Users\Alexander Zettler\AppData\Roaming\PBE\QOwnNotes\scripts\insert-toc\insert-toc.qml variablesJson:

{
    "tocLinks": true,
    "tocTitle": "Table of Contents"
}

identifier: insert-toc version: 0.0.3 minAppVersion: 17.06.2

Settings

ActiveNoteHistoryItem (NoteHistoryItem): <binary data> Debug/fakeOldVersionNumber (QString): false Debug/fileLogging (QString): false Editor/CurrentSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb Editor/autoBracketClosing (QString): true Editor/autoBracketRemoval (QString): true Editor/disableCursorBlinking (QString): false Editor/editorWidthInDFMOnly (QString): true Editor/highlightCurrentLine (QString): true Editor/indentSize (int): 4 Editor/removeTrailingSpaces (QString): false Editor/showLineNumbers (QString): false Editor/useTabIndent (QString): false Editor/vimMode (QString): false FileDialog/LastPath (QString): C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Desktop FileDialog/LastPath-NoteHTMLExport (QString): C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Desktop FileDialog/LastPath-ScriptSettingsFile-export-notes-as-website-defaultExportPath (QString): C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Notizen/Website with markdown_exported - 2 Versuch FileDialog/LastPath-ScriptSettingsFile-pandoc-export-pandocPath (QString): C:/Program Files/Pandoc ImageDialog/disableCopying (QString): false ImageDialog/geometry (QByteArray): <binary data> IssueAssistantDialog/geometry (QByteArray): <binary data> LastUpdateCheck (QDateTime): 2024-03-11T16:11:21.135 LinkDialog/geometry (QByteArray): <binary data> MainWindow/geometry (QByteArray): <binary data> MainWindow/mainToolBar.iconSize (int): 30 MainWindow/menuBarGeometry (QByteArray): <binary data> MainWindow/noteSubFolderTreeWidgetExpandState-1 (QStringList): export/Digitales, Organisatorisches, Organisatorisches/Schule, Organisatorisches/Schule/Test, Digitales, Organisatorisches/Schule/Test/Pandoc MainWindow/noteSubFolderTreeWidgetExpandState-2 (QStringList): Website with markdown, 1/1.2, 2, 1 MainWindow/noteSubFolderTreeWidgetExpandState-3 (QStringList): 1 MainWindow/noteTextEdit.code.font (QString): Courier New,20,-1,2,50,0,0,0,0,0 MainWindow/noteTextEdit.font (QString): MS Shell Dlg 2,20,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.code.font (QString): Courier New,9,-1,2,50,0,0,0,0,0 MainWindow/noteTextView.font (QString): MS Shell Dlg 2,7.8,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.ignoreCodeFontSize (QString): true MainWindow/noteTextView.refreshDebounceTime (int): 600 MainWindow/noteTextView.rtl (QString): false MainWindow/noteTextView.underline (QString): true MainWindow/noteTextView.useEditorStyles (QString): true MainWindow/noteTextView.useInternalExportStyling (QString): true MainWindow/showNotesFromAllNoteSubFolders (QString): false NoteFolder-1/NoteTabNameList (QStringList): Export als Website, Hilfen NoteFolder-1/NoteTabStickinessList (QStringList): empty NoteFolder-1/NoteTabSubFolderPathDataList (QStringList):

Organisatorisches
Schule
Test
Pandoc, Organisatorisches
Schule
Test
Pandoc

NoteFolder-2/NoteTabNameList (QStringList): Ebene 2_2 NoteFolder-2/NoteTabStickinessList (QStringList): empty NoteFolder-2/NoteTabSubFolderPathDataList (QStringList):

2
2.2

NoteFolder-3/NoteTabNameList (QStringList): Home, Ebene 2.1 NoteFolder-3/NoteTabStickinessList (QStringList): empty NoteFolder-3/NoteTabSubFolderPathDataList (QStringList):

, 2
2.1

NoteHistory-1 (QVariantList): <variant list with 7 item(s)> NoteHistory-2 (QVariantList): <variant list with 21 item(s)> NoteHistory-3 (QVariantList): <variant list with 10 item(s)> NoteHistoryCurrentIndex-1 (int): 6 NoteHistoryCurrentIndex-2 (int): 15 NoteHistoryCurrentIndex-3 (int): 9 PiwikClientId (QString): <hidden> ScriptRepositoryDialog/geometry (QByteArray): <binary data> ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data> SearchEngineId (int): 2 SettingsDialog/geometry (QByteArray): <binary data> SettingsDialog/mainSplitterState (QByteArray): <binary data> ShowSystemTray (QString): false StartHidden (QString): false WelcomeDialog/geometry (QByteArray): <binary data> acceptAllExternalModifications (QString): false allowNoteEditing (QString): true allowOnlyOneAppInstance (QString): true appMetrics/disableAppHeartbeat (QString): false appMetrics/disableTracking (QString): false appMetrics/notificationShown (QString): true autoReadOnlyMode (QString): false autoReadOnlyModeTimeout (int): 30 automaticNoteFolderDatabaseClosing (QString): false checkSpelling (QString): true closeTodoListAfterSave (QString): false cryptoKey (qlonglong): <hidden> currentNoteFolderId (int): 2 currentWorkspace (QString): initial cursorWidth (int): 1 darkMode (QString): false darkModeColors (QString): false darkModeIconTheme (QString): false darkModeTrayIcon (QString): false defaultNoteFileExtension (QString): md demoNotesCreated (QString): true disableAutomaticUpdateDialog (QString): true disableSavedSearchesAutoCompletion (QString): false dockWasInitializedOnce (QString): true enableNoteTree (QString): false enableSocketServer (QString): false enableWebAppSupport (QString): false externalEditorPath (QString): empty fullyHighlightedBlockquotes (QString): false gitCommitInterval (int): 30 gitExecutablePath (QString): empty gitLogCommand (QString): empty guiFirstRunInit (QString): true ignoreAllExternalModifications (QString): false ignoreAllExternalNoteFolderChanges (QString): false ignoreNoteSubFolders (QString): ^\. ignoredNoteFiles (QString): empty imageScaleDown (QString): false imageScaleDownMaximumHeight (int): 1024 imageScaleDownMaximumWidth (int): 1024 initialLayoutIdentifier (QString): minimal insertTimeFormat (QString): empty interfaceFontSize (int): 11 interfaceLanguage (QString): empty internalIconTheme (QString): false itemHeight (int): 18 legacyLinking (QString): false localTrash/autoCleanupDays (int): 30 localTrash/autoCleanupEnabled (QString): true localTrash/supportEnabled (QString): true markdownHighlightingEnabled (QString): true navigationPanelAutoSelect (QString): true navigationPanelHideSearch (QString): false networking/ignoreSSLErrors (QString): true networking/proxyType (int): 2 newNoteAskHeadline (QString): false noteEditIsCentralWidget (QString): true noteFileExtensionList (QStringList): md, txt noteListPreview (QString): false noteSaveIntervalTime (int): 10 noteSubfoldersPanelDisplayAsFullTree (QString): true noteSubfoldersPanelHideSearch (QString): false noteSubfoldersPanelOrder (int): 0 noteSubfoldersPanelShowFullPath (QString): false noteSubfoldersPanelShowNotesRecursively (QString): false noteSubfoldersPanelShowRootFolderName (QString): true noteSubfoldersPanelSort (int): 0 noteSubfoldersPanelTabsUnsetAllNotesSelection (QString): false notesPanelOrder (int): 0 notesPanelSort (int): 1 notesPath (QString): C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Notizen/Website with markdown notifyAllExternalModifications (QString): false overrideInterfaceFontSize (QString): false ownCloud/supportEnabled (QString): false ownCloud/todoCalendarBackend (int): 3 ownCloud/todoCalendarCalDAVPassword (QString): <hidden> ownCloud/todoCalendarCalDAVServerUrl (QString): empty ownCloud/todoCalendarCalDAVUsername (QString): empty ownCloud/todoCalendarCloudConnectionId (int): 1 ownCloud/todoCalendarDisplayNameList (QStringList): empty ownCloud/todoCalendarEnabledList (QStringList): empty ownCloud/todoCalendarEnabledUrlList (QStringList): empty ownCloud/todoCalendarUrlList (QStringList): empty ownCloudInfo/appIsValid (QString): true ownCloudInfo/connectionErrorMessage (QString): empty ownCloudInfo/notesPathExistsText (QString): empty ownCloudInfo/serverVersion (QString): empty recentNoteFolders (QStringList): C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Notizen/QOwnNotes, C:/Users/Alexander Zettler/Downloads/Website with markdown, C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Desktop/Website with markdown, C:/Users/Alexander Zettler/OneDrive - BRG BORG Schloss Traunsee/Notizen/HTML Export von Qownnotes restoreCursorPosition (QString): true restoreLastNoteAtStartup (QString): true restoreNoteTabs (QString): true savedSearches/noteFolder-2 (QStringList): Ebene 1 showMatches (QString): true showMenuBar (QString): true showStatusBar (QString): true spellCheckLanguage (QString): auto startInReadOnlyMode (QString): false systemIconTheme (QString): false taggingShowNotesRecursively (QString): false tagsPanelHideNoteCount (QString): false tagsPanelHideSearch (QString): false tagsPanelOrder (int): 0 tagsPanelSort (int): 0 todoCalendarSupport (QString): true toolbar/1/items (QStringList): action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionShow_Todo_List toolbar/1/name (QString): mainToolBar toolbar/1/title (QString): Hauptsymbolleiste toolbar/2/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote toolbar/2/name (QString): formattingToolbar toolbar/2/title (QString): Formatierungs-Werkzeugleiste toolbar/3/items (QStringList): actionInsert_text_link, actionInsert_image, actionInsert_current_time toolbar/3/name (QString): insertingToolbar toolbar/3/title (QString): Einfügen-Werkzeugleiste toolbar/4/items (QStringList): action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note toolbar/4/name (QString): encryptionToolbar toolbar/4/title (QString): Verschlüsselung-Werkzeugleiste toolbar/5/items (QStringList): actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size toolbar/5/name (QString): windowToolbar toolbar/5/title (QString): Fenster-Werkzeugleiste toolbar/6/items (QStringList): action_Quit toolbar/6/name (QString): quitToolbar toolbar/6/title (QString): Beenden - Symbolleiste toolbar/size (int): 6 useNoteFolderButtons (QString): false useUNIXNewline (QString): false webAppClientService/serverUrl (QString): wss://app.qownnotes.org webAppClientService/token (QString): <hidden> webSocketServerService/bookmarksNoteName (QString): Bookmarks webSocketServerService/bookmarksTag (QString): bookmarks webSocketServerService/commandSnippetsNoteName (QString): Commands webSocketServerService/commandSnippetsTag (QString): commands webSocketServerService/port (int): 22222 workspace-initial/name (QString): Minimal workspace-initial/noteSubFolderDockWidgetVisible (QString): true workspace-initial/windowState (QByteArray): <binary data> workspaces (QStringList): initial

System environment

ALLUSERSPROFILE: C:\ProgramData APPDATA: C:\Users\Alexander Zettler\AppData\Roaming CommonProgramFiles: C:\Program Files\Common Files CommonProgramFiles(x86): C:\Program Files (x86)\Common Files CommonProgramW6432: C:\Program Files\Common Files COMPUTERNAME: LMDM-E-ZETTLER ComSpec: C:\windows\system32\cmd.exe DriverData: C:\Windows\System32\Drivers\DriverData FPS_BROWSER_APP_PROFILE_STRING: Internet Explorer FPS_BROWSER_USER_PROFILE_STRING: Default HOMEDRIVE: C: HOMEPATH: \Users\Alexander Zettler LOCALAPPDATA: C:\Users\Alexander Zettler\AppData\Local LOGONSERVER: \\LMDM-E-ZETTLER NUMBER_OF_PROCESSORS: 4 OneDrive: C:\Users\Alexander Zettler\OneDrive - BRG BORG Schloss Traunsee OneDriveCommercial: C:\Users\Alexander Zettler\OneDrive - BRG BORG Schloss Traunsee OS: Windows_NT Path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\Pandoc\;C:\Users\Alexander Zettler\AppData\Local\Microsoft\WindowsApps;C:\texlive\2021\bin\win32 PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE: AMD64 PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 126 Stepping 5, GenuineIntel PROCESSOR_LEVEL: 6 PROCESSOR_REVISION: 7e05 ProgramData: C:\ProgramData ProgramFiles: C:\Program Files ProgramFiles(x86): C:\Program Files (x86) ProgramW6432: C:\Program Files PSModulePath: C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC: C:\Users\Public SESSIONNAME: Console SystemDrive: C: SystemRoot: C:\windows TEMP: C:\Users\ALEXAN~1\AppData\Local\Temp TMP: C:\Users\ALEXAN~1\AppData\Local\Temp USERDOMAIN: LMDM-E-ZETTLER USERDOMAIN_ROAMINGPROFILE: LMDM-E-ZETTLER USERNAME: Alexander Zettler USERPROFILE: C:\Users\Alexander Zettler windir: C:\windows ZES_ENABLE_SYSMAN: 1

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 4 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.