public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Image resources are in local but pandoc searches in url
@ 2022-10-14 12:45 Joan
       [not found] ` <104b27cf-2655-4b9d-af96-8595468994d1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Joan @ 2022-10-14 12:45 UTC (permalink / raw)
  To: pandoc-discuss


[-- 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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Image resources are in local but pandoc searches in url
       [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>
  0 siblings, 1 reply; 3+ messages in thread
From: Craig Parker @ 2022-10-14 16:20 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1660 bytes --]

Do you have to preface the image URL in the document itself with ./ ? I 
just yesterday uncluttered a directory, and now have md, html, and pdf 
files in their own separate subdirectories. But now I have to use a 
dot/slash in the markdown because I'm running the script 
(pandoc/weasyprint) from a directory above where all the files and images 
are.

On Friday, October 14, 2022 at 8:45:38 AM UTC-4 Joan wrote:

> 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
>
>

-- 
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/48fffed6-ebd1-4b67-bde7-9712b4b11b8en%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3661 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Image resources are in local but pandoc searches in url
       [not found]     ` <48fffed6-ebd1-4b67-bde7-9712b4b11b8en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-10-17  7:54       ` Joan
  0 siblings, 0 replies; 3+ messages in thread
From: Joan @ 2022-10-17  7:54 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 3232 bytes --]

Hi, I have the files in a local folder, I've did this way to avoid dealing 
with the web authentication and to have the full list of pages in the wiki. 
Do you mean that the dokuwiki reader is only for http connections? I tried 
to read the source code but couldn't find this part.

Regards

On Friday, 14 October 2022 at 18:20:27 UTC+2 craig.f...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:

> Do you have to preface the image URL in the document itself with ./ ? I 
> just yesterday uncluttered a directory, and now have md, html, and pdf 
> files in their own separate subdirectories. But now I have to use a 
> dot/slash in the markdown because I'm running the script 
> (pandoc/weasyprint) from a directory above where all the files and images 
> are.
>
> On Friday, October 14, 2022 at 8:45:38 AM UTC-4 Joan wrote:
>
>> 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/da5801de-e1fc-4c50-a8cf-764b916b7b9bn%40googlegroups.com.

[-- Attachment #2: Type: text/html, Size: 6520 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-17  7:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-14 12:45 Image resources are in local but pandoc searches in url Joan
     [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

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).