Skip to content
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

Closed
TheMushrr00m opened this issue Apr 5, 2018 · 5 comments
Closed

pelican-import getting error with pandoc@2.1.3 #2322

TheMushrr00m opened this issue Apr 5, 2018 · 5 comments

Comments

@TheMushrr00m
Copy link

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
Copy link
Author

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

@sagamusix
Copy link

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
Copy link
Author

@sagamusix your solution works for me.
Thanks!

@sagamusix
Copy link

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

@TheMushrr00m
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants