Skip to content

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

@pyxsqbs

Description

@pyxsqbs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions