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

Deal with WARNING messages output at top of logs in some way so that they don't confuse users #140

Open
LuciMoore opened this issue Sep 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@LuciMoore
Copy link
Contributor

A short summary of what you would like to see in BIBSnet.

Look into common WARNINGs that pop up for folks when running BIBSNet. these shouldn't impact anything, but might be good to either address, suppress the warning, add logging to explain it can be safely ignored, etc:

"uname": executable file not found in $PATH
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-6yivpubv because the default path (/users/2/kweldon/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.

Do you have any interest in helping implement the feature?

Yes!

Add any additional information or context about the request here.

No response

@LuciMoore LuciMoore added the enhancement New feature or request label Sep 30, 2024
@scott-huberty
Copy link
Contributor

Naively I would think that for the Matplotlib warning, it's better to just explicitly set the config directory within the container, i.e. BIBSnet shouldn't be writing to folders outside the container anyways (unless we specifically mount them).

Something like this ?

from pathlib import Path
import os

Path.mkdir(Path.home() / "bibsnet" / "configs") # might need to adjust the permissions via `mode` argument
os.environ['MPLCONFIGDIR'] = Path.home() / "bibsnet" / "configs"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants