From: Joan <joan.juvanteny-vk/qBwCwXONDSbLPxUAx79BPR1lH4CV8@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Image resources are in local but pandoc searches in url
Date: Fri, 14 Oct 2022 05:45:38 -0700 (PDT) [thread overview]
Message-ID: <104b27cf-2655-4b9d-af96-8595468994d1n@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2321 bytes --]
I have been searching for this in this forum, tickets, etc,,.. and haven't
been able to find a answer to what seems to be simple.
The case is that I'm converting from a local dokuwiki export to gfm and I
wanted to migrate the images too.
The script I'm using is:
*pandoc -s -f dokuwiki -t gfm
--resource-path=/home/user/src/wiki_gitbacked --extract-media ./media/
pages/test_webservices.txt -o ../dsi.wiki/test_webservices.md --verbose*
And I get an error that pandoc couldn't fetch the resource at the url http://test_webservices/rest.png
(test_webservices is the dokuwiki page name)
The file is at media/test_webservices/rest.png so if it was using local
paths it would get the proper image.
Is there anything I'm missing on this?
The full message is attached.
Thanks,
Joan
--
Us cal imprimir aquest missatge? Protegim el medi ambient · ¿Necesitan
imprimir este mensaje? Protejamos el medio ambiente · Do you need to print
this message? Let’s protect the environment.
Advertiment legal: la
informació d’aquest missatge de correu electrònic és confidencial i
s’adreça exclusivament al destinatari previst. Si heu rebut aquest missatge
per error, si us plau, notifiqueu-ho al remitent i esborreu-lo sense
copiar-lo, enregistrar-lo ni distribuir-lo.
Advertencia legal: la
información de este mensaje de correo electrónico es confidencial y se
dirige exclusivamente al destinatario previsto. Si usted ha recibido el
mensaje por error, por favor, notifíquelo al remitente y bórrelo sin
copiarlo, grabarlo ni distribuirlo.
Legal warning: the information
contained in this e-mail message is confidential and it’s for the exclusive
attention of the intended recipient. If you have recieved this message by
mistake, please notify the sender and delete the message without copying,
recording or distributing it.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/104b27cf-2655-4b9d-af96-8595468994d1n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 5017 bytes --]
[-- Attachment #2: msg.txt --]
[-- Type: text/plain, Size: 1237 bytes --]
$ pandoc -s -f dokuwiki -t gfm --resource-path=/home/user/src/wiki_gitbacked --extract-media ./media/ pages/test_webservices.txt -o ../dsi.wiki/test_webservices.md --verbose
[INFO] Fetching http://test_webservices/rest.png...
[WARNING] Could not fetch resource http://test_webservices/rest.png: HttpExceptionRequest Request {
host = "test_webservices"
port = 80
secure = False
requestHeaders = []
path = "/rest.png"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
proxySecureMode = ProxySecureWithConnect
}
(ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = NothReplacing image with description.rvices", service name: Just "80"): does not exist (Try again))
pandoc: /test_webservices/soapui_pass1.png: withBinaryFile: does not exist (No such file or directory)
next reply other threads:[~2022-10-14 12:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 12:45 Joan [this message]
[not found] ` <104b27cf-2655-4b9d-af96-8595468994d1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-14 16:20 ` Craig Parker
[not found] ` <48fffed6-ebd1-4b67-bde7-9712b4b11b8en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-17 7:54 ` Joan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=104b27cf-2655-4b9d-af96-8595468994d1n@googlegroups.com \
--to=joan.juvanteny-vk/qbwcwxondsblpxuax79bpr1lh4cv8@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).