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

Pandoc on Microsoft Azure gives getAppUserDataDirectory error #7486

Closed
cricrazy opened this issue Aug 10, 2021 · 4 comments
Closed

Pandoc on Microsoft Azure gives getAppUserDataDirectory error #7486

cricrazy opened this issue Aug 10, 2021 · 4 comments

Comments

@cricrazy
Copy link

@cricrazy cricrazy commented Aug 10, 2021

Hello All, I am trying to run Pandoc on MS Azure environment to create HTML report from markdown file. The Pandoc command is real simple one.

pandoc test.md -o test.html

But I get the following error.

pandoc: getAppUserDataDirectory:sHGetFolderPath: illegal operation (unsupported operation)

It seems to me that MS Azure has Windows 10 sort of environment. I even tried to set up XDG_DATA_HOME or XDG_DATA_DIRS, but it still gives the same error.

Can you someone please help?

@jgm
Copy link
Owner

@jgm jgm commented Aug 10, 2021

I don't do Windows much, so I'm not sure. But note that you can explicitly specify the user data directory using --data-dir=DIR; this might help.

@cricrazy
Copy link
Author

@cricrazy cricrazy commented Aug 10, 2021

@jgm what does --data-dir do?

I am using this batch file to convert the file.

@echo ON
pandoc test.md -o test.html
EXIT

@jgm
Copy link
Owner

@jgm jgm commented Aug 10, 2021

Just as I said, it allows you to explicitly specify the user data directory (which normally defaults to XDG_DATA_HOME).
I don't know if this would help but you can try it (even just adding --data-dir=.).

@cricrazy
Copy link
Author

@cricrazy cricrazy commented Aug 10, 2021

@jgm thank you. I added this and it worked. Thank you so much.

pandoc final.md -o final.html --data-dir=.

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