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

More useful error when Prince isn't found #67

Open
mDuo13 opened this issue Jan 26, 2022 · 0 comments
Open

More useful error when Prince isn't found #67

mDuo13 opened this issue Jan 26, 2022 · 0 comments

Comments

@mDuo13
Copy link
Collaborator

mDuo13 commented Jan 26, 2022

When building PDF, the command to call Prince can fail if the executable isn't available at your PATH as prince or if Prince isn't installed at all. However, the error message in this case is a bit misleading.

On Windows, the error currently looks like this:

  File "C:\Users\Your Username Here\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Instead, the error should report that Prince could not be found and instruct the user to make sure it is installed and their path is set accordingly.

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

No branches or pull requests

1 participant