Page 1 of 1

Pyscripter: Error: attempt to write a read-only database

Published: July 25, 2018 - 08:43
by seb b
Hello everyone.

I have been experiencing a problem in my development environment for some time now.
When the PC on which I develop my "home" packages reboots while a package is open in pyscripter (and saved), it is impossible to launch the execution configurations afterwards, I get the message in the title, namely "OperationalError: attempt to write a readonly database.

That takes me back to the next line:

Code: Select all

self.db.execute('insert or replace into wap_params(name,value,create_date) values(?,?,?), (name, value, datetime2isodate()))
from common.py (line 1087)

How can I reset the permissions on this database? Without having to recreate my package from scratch, because that's the only way I've found so far.

So far I have tested without success:
  • restarting the workstation
  • relaunch of the wapt service
  • reinstalling the workstation
  • reset the permissions on the package folder
If anyone has an idea, I'm all ears, because having to recreate it for each test on multi-gigabyte packets isn't very practical ;)

Thank you and have a good day.

Re: Pyscripter: Error: attempt to write a read-only database

Published: July 25, 2018 - 09:44
by sfonteneau
https://www.wapt.fr/fr/doc/Frequent-pro ... pyscripter

You can also check in the properties of pyscripter that it should always be launched as administrator.

Re: Pyscripter: Error: attempt to write a read-only database

Published: July 25, 2018 - 11:25 AM
by seb b
So cool! Thanks!

Just a quick suggestion: if the error message text could be searchable, that would be awesome.

[SOLVED] Pyscripter Error: attempt to write a read-only database

Published: July 25, 2018 - 11:30 AM
by seb b
I can confirm, it works.

Thank you!