OSError: [Errno 13] Permission denied: '/Configurations2'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Appy |
Fix Released
|
Medium
|
Gaëtan Delannay |
Bug Description
When we're creating a pdf file using Renderer class In renderer.py, we catch a permission error.
This error occurs because the os.path.join function is considering the second entry as an absolute path.
The latter strings shouldn't start with a slash. If they start with a slash, then they're considered an "absolute path" and everything before them is discarded.
Quoting the Python docs for os.path.join:
If any component is an absolute path, all previous components (on Windows, including the previous drive letter, if there was one) are thrown away, and joining continues.
here the solution for the error:
Line 173:
if zippedFile.
os.
else:
os.
Changed in appy: | |
status: | Fix Committed → Fix Released |
Hi Gustavo,
Under Linux, it seems that "zippedFile" never starts with a leading "/". Could you send me more info about your environment? Thanks a lot,
Gaetan