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

Fails with DrawIO Error: [WinError 5] Access is denied - because of whitespace in path #84

Open
daniel3097 opened this issue Apr 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@daniel3097
Copy link

using ".. drawio-figure:: test.drawio" directive results in the following error (windows, whitespace in pathname)

DrawIO Error:
draw.io ("C:\Users\AB1234\OneDrive - ABC\repo\needs\docs\utils\draw.io-21.1.2-windows-no-installer.exe" --export --crop --page-index 0 --scale 1.0 --format png --output C
:\Users\AB1234\OneDrive - ABC\repo\needs\docs\build\html.doctrees\drawio\f7cee1ec9581edc5b575d34416e8fd53113b8808\test.png C:\Users\AB1234\OneDrive - ABC\repo
\needs\docs\source\snmp\test.drawio --enable-logging) exited with error:
[WinError 5] Access is denied

To Reproduce
whitespace in sphinx project name path

Setup Information

  • OS: Windows
  • Python: 3.10
  • Version: 0.0.16

Additional context
when i add quotes to export and input path in init.py in drawio_args like this
....
line 261
# str(export_abspath),
# str(input_abspath),
f'"{str(export_abspath)}"',
f'"{str(input_abspath)}"',

then it is working fine

@daniel3097 daniel3097 added the bug Something isn't working label Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant