When starting OpenMolar for the first time, it has an error when it
creates the application database:
ERROR - error creating database tables
Traceback (most recent call last):
File
"/gnu/store/smx5rayf45ylqn59czjkvx2hcrl95p5x-openmolar-1.0.15-gd81f9e5/lib/python3.5/site-packages/openmolar/create_db.py",
line 145, in create_tables
f = open(fp, "r")
FileNotFoundError: [Errno 2] No existe el fichero o el directorio:
'/usr/share/openmolar/resources/schema.sql'
when it should look for the following file:
/gnu/store/smx5rayf45ylqn59czjkvx2hcrl95p5x-openmolar-1.0.15-gd81f9e5/share/openmolar/resources/schema.sql
The flaw in the definition is in:
/gnu/store/smx5rayf45ylqn59czjkvx2hcrl95p5x-openmolar-1.0.15-gd81f9e5/lib/python3.5/site-packages/openmolar/settings/localsettings.py:
SHARE_DIR = os.path.join("/usr", "share", "openmolar")
I do not know haw to fix it. Please instruct how to do it.