New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pelican-import getting error with pandoc@2.1.3 #2322

Open
TheMushrr00m opened this Issue Apr 5, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@TheMushrr00m

TheMushrr00m commented Apr 5, 2018

Trying to import all of my content from wordpress i am getting this error:

screenshot_20180405_042617

I am using the command:
pelican-import --wpfile -o output laesporadelhongo.wordpress.2018-04-05.xml --dir-page --dir-cat -m markdown
The error it's related with the most recent pandoc's version 2.1.3 in Arch Linux.

@TheMushrr00m

This comment has been minimized.

Show comment
Hide comment
@TheMushrr00m

TheMushrr00m Apr 5, 2018

I think that changing in this line how pelican-import invokes to pandoc the errors will be resolved.

TheMushrr00m commented Apr 5, 2018

I think that changing in this line how pelican-import invokes to pandoc the errors will be resolved.

@sagamusix

This comment has been minimized.

Show comment
Hide comment
@sagamusix

sagamusix Apr 27, 2018

I changed the invocation of pandoc in pelican_import.py like this, it works with recent pandoc releases then:

            parse_raw = '-raw_html' if not strip_raw else ''
            cmd = ('pandoc  --from=html'
                   ' --to={1}{0} -o "{2}" "{3}"')

sagamusix commented Apr 27, 2018

I changed the invocation of pandoc in pelican_import.py like this, it works with recent pandoc releases then:

            parse_raw = '-raw_html' if not strip_raw else ''
            cmd = ('pandoc  --from=html'
                   ' --to={1}{0} -o "{2}" "{3}"')
@TheMushrr00m

This comment has been minimized.

Show comment
Hide comment
@TheMushrr00m

TheMushrr00m May 14, 2018

@sagamusix your solution works for me.
Thanks!

TheMushrr00m commented May 14, 2018

@sagamusix your solution works for me.
Thanks!

@sagamusix

This comment has been minimized.

Show comment
Hide comment
@sagamusix

sagamusix May 14, 2018

Note that there is also a pending pull request which might be a bit more comprehensive and correct than my quick hack: #2289

sagamusix commented May 14, 2018

Note that there is also a pending pull request which might be a bit more comprehensive and correct than my quick hack: #2289

@TheMushrr00m

This comment has been minimized.

Show comment
Hide comment
@TheMushrr00m

TheMushrr00m May 15, 2018

I see, but your "quick hack" was what I needed at the moment and with that I was able to resolve my situation. Thanks again.

TheMushrr00m commented May 15, 2018

I see, but your "quick hack" was what I needed at the moment and with that I was able to resolve my situation. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment