Python API Audio File Issue: How to Fix Errno 30 Read-only File System Error?

This topic was automatically generated from Slack. You can find the original thread here.

Hello I’m using Python to hit an API, the result of which returns an audio file. I’ve created a datastore for the step, but I still get the error [Errno 30] Read-only file system: 'output.mp3'. Anything else I need to do? Photos in the thread.

Oh, I see, i needed /tmp/output.mp3.

Hey, I’m running into this same problem, however I don’t think I’m understanding your solution. So you changed the line to be with open('/tmp/output.mp3', 'wb') as f: and it worked?

Yep, looks like it. The only directory that has write enabled is /tmp, so that’s why using open('/tmp/output.mp3', 'wb') worked