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

raise OSError( OSError: Matplotlib requires access to a writable cache directory, but the default path (/root/.config/matplotlib) is not a writable directory, and a temporary directory could not be created; set the MPLCONFIGDIR environment variable to a writable directory error: exit status 255 #117

Open
5 tasks done
pyxsqbs opened this issue Dec 6, 2024 · 0 comments

Comments

@pyxsqbs
Copy link

pyxsqbs commented Dec 6, 2024

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.7.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Node [PY] 工作流输出 run failed: sandbox-python/tmp/68e7b735_8d47_4b5a_9cae_dcdf32e68c70.py", line 48, in File "", line 15, in File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 981, in dict.update(rcParams, _rc_params_in_file(matplotlib_fname())) File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 629, in matplotlib_fname for fname in gen_candidates(): File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 626, in gen_candidates yield os.path.join(get_configdir(), 'matplotlibrc') File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 339, in wrapper ret = func(**kwargs) File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 572, in get_configdir return _get_config_or_cache_dir(_get_xdg_config_dir) File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 540, in _get_config_or_cache_dir raise OSError( OSError: Matplotlib requires access to asandbox-python/tmp/68e7b735_8d47_4b5a_9cae_dcdf32e68c70.py", line 48, in File "", line 15, in File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 981, in dict.update(rcParams, _rc_params_in_file(matplotlib_fname())) File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 629, in matplotlib_fname for fname in gen_candidates(): File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 626, in gen_candidates yield os.path.join(get_configdir(), 'matplotlibrc') File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 339, in wrapper ret = func(**kwargs) File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 572, in get_configdir return _get_config_or_cache_dir(_get_xdg_config_dir) File "/usr/local/lib/python3.10/site-packages/matplotlib/init.py", line 540, in _get_config_or_cache_dir raise OSError( OSError: Matplotlib requires access to a writable cache directory, but the default path (/root/.config/matplotlib) is not a writable directory, and a temporary directory could not be created; set the MPLCONFIGDIR environment variable to a writable directory error: exit status 255

i got it, please help.

Originally posted by @pyxsqbs in #37 (comment)

✔️ Expected Behavior

Run success!

❌ Actual Behavior

OSError( OSError: Matplotlib requires access to a writable cache directory, but the default path (/root/.config/matplotlib) is not a writable directory, and a temporary directory could not be created; set the MPLCONFIGDIR environment variable to a writable directory error: exit status 255

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

No branches or pull requests

1 participant