IDLabMedia / blender-lightfield-addon

Blender addon to configure and render light fields
MIT License
35 stars 4 forks source link

OSError: read-only file system while enabling the addon #4

Closed thomas0329 closed 1 year ago

thomas0329 commented 1 year ago

I cloned the repo into the Blender addon directory, and when I clicked the checkbox to enable "6D Lightfield Renderer", I got this error

Screenshot 2023-04-10 at 4 27 00 PM

I tried setting writable permission to the blender-lightfield-addon folder with chmod -R 777 path/to/blender-lightfield-addon but it didn't work. If anyone happening to read this can help me out, I'd appreciate it greatly

mcourteaux commented 1 year ago

Looking at the code, it makes a directory, which I think I don't like (I didn't write that bit), in the temporary folder configured in Blender itself:

bpy.context.preferences.filepaths.temporary_directory

So, I'm guessing this temporary_directory is not configured at all, and is actually empty. Online, I find a screenshot:

Please check if the "Temporary Files" field is filled out.

mcourteaux commented 1 year ago

This is definitely not to my liking that it immediately creates a new folder upon enabling the addon. I'll leave this on.

mcourteaux commented 1 year ago

I got rid of the automatic directory creation in the last commit, which you can also try.

thomas0329 commented 1 year ago

Looking at the code, it makes a directory, which I think I don't like (I didn't write that bit), in the temporary folder configured in Blender itself:

bpy.context.preferences.filepaths.temporary_directory

So, I'm guessing this temporary_directory is not configured at all, and is actually empty. Online, I find a screenshot:

Please check if the "Temporary Files" field is filled out.

That's the case. Sorry I'm new to blender. Thank you for your help!