-
Notifications
You must be signed in to change notification settings - Fork 4
Windows : commands.py [WinError 2] #41
Copy link
Copy link
Open
Description
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
Microsoft Windows [Version 10.0.17763.2300]
(c) 2018 Microsoft Corporation. All rights reserved.
D:\>D:\----\Winpython310\python-3.10.0.amd64\Lib\site-packages\paper2html\commands.py "X:\---\001.pdf" --browser_path="D:\---\chrome.exe"
Traceback (most recent call last):
File "D:\----\Winpython310\python-3.10.0.amd64\Lib\site-packages\paper2html\commands.py", line 151, in <module>
fire.Fire(open_paper_htmls)
File "D:\----\Winpython310\python-3.10.0.amd64\lib\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "D:\----\Winpython310\python-3.10.0.amd64\lib\site-packages\fire\core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "D:\----\Winpython310\python-3.10.0.amd64\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "D:\----\Winpython310\python-3.10.0.amd64\Lib\site-packages\paper2html\commands.py", line 147, in open_paper_htmls
raise e
File "D:\----\Winpython310\python-3.10.0.amd64\Lib\site-packages\paper2html\commands.py", line 143, in open_paper_htmls
for url in paper2html(pdf_filename, working_dir, line_margin_rate, verbose):
File "D:\----\Winpython310\python-3.10.0.amd64\Lib\site-packages\paper2html\commands.py", line 112, in paper2html
pdf_filename = clean_pdf(pdf_filename, fixed_dir)
File "D:\----\Winpython310\python-3.10.0.amd64\Lib\site-packages\paper2html\commands.py", line 75, in clean_pdf
subprocess.run(['pdftocairo', '-pdf', pdf_filename, new_pdf_filename])
File "D:\----\Winpython310\python-3.10.0.amd64\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\----\Winpython310\python-3.10.0.amd64\lib\subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\----\Winpython310\python-3.10.0.amd64\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels