Permission denied fallback directory
- Dominant language
- Python
- Stars
- 424
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
We use confuse for pandas-profiling. Multiple users have reported the same Permission Denied issue:
https://github.com/pandas-profiling/pandas-profiling/issues/214. This issue is blocking usage of the package effectively.
The directory creation is not surrounded with a try/except block:
https://github.com/beetbox/confuse/blob/master/confuse.py#L996
When it attempts to create a global directory, it might not be permitted to do so. It could fall back to the current directory for example.
Moreover, #61 fixes a problem where comments cannot be inline, which is also problematic, but non-blocking.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at confuse.py around line 996 and review the directory creation path described in the issue and the linked pandas-profiling report. Reproduce the Permission Denied case, then verify that configuration can use the current directory when the global directory cannot be created, with tests covering both paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100