expectedparrot / edsl

Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.
https://docs.expectedparrot.com
MIT License
187 stars 19 forks source link

In VS Code Jupyter NB Env, edsl cache directory cannot be created: #952

Open johnjosephhorton opened 2 months ago

johnjosephhorton commented 2 months ago

We might consider skipping a directory structure and just writing directly?

    [223](https://untitled+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.10/3.10.14_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py:223)         return
    [224](https://untitled+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.10/3.10.14_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py:224) try:
--> [225](https://untitled+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.10/3.10.14_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py:225)     mkdir(name, mode)
    [226](https://untitled+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.10/3.10.14_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py:226) except OSError:
    [227](https://untitled+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.10/3.10.14_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py:227)     # Cannot rely on checking for EEXIST, since the operating system
    [228](https://untitled+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.10/3.10.14_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py:228)     # could give priority to other errors like EACCES or EROFS
    [229](https://untitled+.vscode-resource.vscode-cdn.net/opt/homebrew/Cellar/python@3.10/3.10.14_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py:229)     if not exist_ok or not path.isdir(name):

OSError: [Errno 30] Read-only file system: '/.edsl_cache'
johnjosephhorton commented 2 months ago

@rbyh @zer0dss can one of you try to re-create?

SofieGoethals commented 3 weeks ago

Is there a solution for this?

johnjosephhorton commented 3 weeks ago

Hi @SofieGoethals so this bug has been intermittent for me. One potential solution is to to try creating the location manually like this, in the directory you're working in:

mkdir .edsl_cache

cc: @zer0dss @apostolosfilippas @rbyh if any of you have encountered this one, LMK.