Read-only file system error
oliver408i opened this issue · 2 comments
oliver408i commented
Full error message:
File "**hidden**/Functions/Main/m.py", line 32, in m
db.dump()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pickledb.py", line 92, in dump
json.dump(self.db, open(self.loco, 'wt'))
OSError: [Errno 30] Read-only file system: '../../database.txt
Code used: db = pickledb.load('../../database.txt', False)
tory1103 commented
can you send file privileges?
if you are in linux, try : ls -l .
oliver408i commented
I found a way to fix this by just accessing a database in the main dir, but I don't have the files anymore, so I can't get the permissions. However, I remember I did do chmod +x file-name
I'll close this now