-
Notifications
You must be signed in to change notification settings - Fork 5
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
Windows : commands.py [WinError 2] #41
Comments
Thank you for using paper2html and sending a feedback. Please try some codes because I've not found the reason yet. If you fail installing Poppler, you will fail the command below.
In this case, you may success with readme-operations. Or if Winpython requires path-portability or something, you will fail the script below. import subprocess
subprocess.run(['pdftocairo', '-pdf', PDF_FILENAME, TMP_OUTPUT_FILENAME]) In this case, we need more investigation. |
Thanks for the quick reply:)
paper2html is gitclone from pip.
thank you:)
|
Sorry for my omitted reply. If you want to run commands.py directly in a windows environment, you have to install Poppler for Windows manually (it is not done with pip install). Download Poppler from the url in readme. And register the absolute path to the folder which contains pdftocairo in the environment variable. You can check the success of this task by Command Prompt and that command.
The expected result is displaying the folder path which contains pdftocairo. After that, commands.py will be executed successfully. Otherwise, please try the 'subprocess.run' script again. However you need to replace |
This was done in a windows environment to run commands.py directly for speed.
I'm try command this.
$ python paper2html/commands.py "path-to-paper-file.pdf"
Is it a problem with my environment?
Thank you for the great software, it is exactly the behavior I was looking for.
By the way, main.py (localhost conversion) and the Docker version work fine:)
Winpython310
Windows10 LTSC 1809
The text was updated successfully, but these errors were encountered: