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

Continuation of "Error: package or namespace load failed for ‘pins’ on huggingface #822" #829

Open
F041 opened this issue May 20, 2024 · 2 comments

Comments

@F041
Copy link

F041 commented May 20, 2024

As for: #822 (comment)
sorry, I think I didn't quite understand where to insert that. If I do it in script. R, I get the same error

@juliasilge
Copy link
Member

If you are using a Dockerfile for Hugging Face spaces, I would probably use ARG as a way to set the PINS_CACHE_DIR environment variable: https://docs.docker.com/build/building/variables/#arg-usage-example

In #822 I showed using base::tempdir() but the goal here is to set the cache to somewhere that you have permission to write to on Hugging Face, like /tmp.

@F041
Copy link
Author

F041 commented May 24, 2024

I asked help to GPT with your input, since I did another attempt that failed: https://chatgpt.com/share/b1527fa1-43f5-45b1-b612-bc16050ce253
At first I got a permission denied related to b <- board_folder(path = "pins-r"), in the file plumber.R,
then I changed that path to tmp and I still get:

Error on line #7: '' - Error: [EACCES] Failed to make directory 'tmp': permission denied
Calls: <Anonymous> ... tryCatchList -> tryCatchOne -> <Anonymous> -> stopOnLine
Execution halted

I see some progress though.

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

2 participants