Skip to content Skip to sidebar Skip to footer

How To Fix Read-only File System Error Python

I am trying to make a python script that runs the command line for turning a file into a .zip using python3 on my Mac. However, whenever I run: os.system('zip -er file.zip /Users/m

Solution 1:

i will suggest 3 steps ! first run :

fsck -n -f

then reboot !

make sure to run the python file as root

import os
try:

    os.system('zip mag.zip mag.ppk')
    print ('success')
 except:
    print ('problem')

screnshoot for my test

Post a Comment for "How To Fix Read-only File System Error Python"