Open DavideWalder opened 1 month ago
We added additional logging capabilities to help troubleshoot user issues. This is the line that is most likely causing the issue.
Can you explain the usecase on why there isn't a user profile?
Other parts of the kagglehub expect the user directory to exists such as downloads. We store the files in ~/.cache. This folder will be created regardless. See code here. The location is also configurable.
@DavideWalder - Would allowing a env variable for the log path be a sufficient solution?
Here is my use case:
I have a containerized application using tensorflow
and keras-nlp
, the latter has a dependency on kagglehub
(I am not using it directly).
The application is a stateless container deployed on k8s, therefore running as non-root and without a home folder (since it is stateless).
There are a few design points that should be considered:
The only simple solution I see is storing logs in a folder relative to the project's root. Environment variables make the interface to the library more complex and implicit.
I already have workarounds for this problems, so not pressing for me. I just wanted to make the project aware that this is happening
Another point: This is happening on import, having side-effects on imports is in general something I would avoid. Solutions could be:
This was not the case with 0.2.5
To reproduce:
Dockerfile: