isidroas / code_to_pdf

This tool converts a folder of files in a printable A4 PDF
MIT License
3 stars 2 forks source link

OSError: No wkhtmltopdf executable found: "b''" #12

Closed Daniel-Trung-Nguyen closed 1 year ago

Daniel-Trung-Nguyen commented 1 year ago

Hi, thanks a lot for the repo! I am running into this error when trying to convert the src folder of a c++ program. cmd: code_to_pdf --title model_main ./src

image

The src folder is structured as below:

image
Daniel-Trung-Nguyen commented 1 year ago

After installing wkhtmltopdf, I ran into this DeprecationError:

image
Daniel-Trung-Nguyen commented 1 year ago

I believe the version on pypi is not up-to-date. I uninstalled it and reinstalled the lib from github repo and it worked. There was a Debug message as below, but overall this is a very nice implementation. I truely appreciate the effort! Thanks, Daniel

image
isidroas commented 1 year ago

Thanks for the report!

I have uploaded the last version to pypi and updated the README to advice of that wkhtmltopdf dependency.

Regarding to

DEBUG: git.util:Failed checking if running in CYGWIN due to: FileNotFoundError(2,
 'No such file or directory')

It seems a trace of the GitPython package.

The only hypothesis I can think is that you don't have git installed

Daniel-Trung-Nguyen commented 1 year ago

Thanks, @isidroas ! I worked fine when I installed from github repo. I did have git installed