Open SundareshSankaran opened 2 hours ago
TEMPORARY: I've solved this using the XDG Data Specifications and identified the environment variable to use (XDG_DATA_HOME). Curious if I missed this in any of your documentation, though, so leaving this hanging around.
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
I run sdv in a Python environment which is containerised and accessible via Kubernetes. The restricted nature of K8s disallows me from creating any directories in the root file system. Upon import of sdv, I noticed that attempts are made to create .local in the root directory of the pod from where I run Python, and hence I obtain an error traced to :
Steps to reproduce
The steps which got me the error above is simple.
However, I traced this back to the different classes called by init and found the offending line was the setting of the store_path variable:
/python3.10/site-packages/sdv/logging/utils.py
Note that this is in the root file system, which gives me the error.
Therefore, is there any way to set this path through an environment variable. I can manually edit the above, I suppose, but don't want to touch your inner code.
Thanks.