Error in BrainVISA : unable to open database file

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
up_mc_jack
Posts: 2
Joined: Thu Mar 10, 2011 7:09 pm

Error in BrainVISA : unable to open database file

Post by up_mc_jack »

Hi,
I just installed BrainVISA 4.0.2 on my machine (windows XP)
And at the first launch I got an error message saying :

"unable to open database file
OperationalError
neuroHierarchy.py (98) in openDatabases:
base = SQLDatabase( sqlite, dbSettings.directory, fso=dbSettings.expert_settings.ontology, context=defaultContext(), otherSqliteFiles=otherSqliteFiles )
sqlFSODatabase.py (397) in __init__:
if not self.checkTables():
sqlFSODatabase.py (597) in checkTables:
cursor = self._getDatabaseCursor()
sqlFSODatabase.py (527) in _getDatabaseCursor:
cursor = self._connection._getConnection().cursor()
sqlite_tools.py (101) in _getConnection:
connection = sqlite3.connect( *self.__args, **self.__kwargs ) "

Am I missing something ? I don't quite know what I have to do to make it right...

Thank you in advance for any advice you might have !
Dominique Geffroy
Site Admin
Posts: 161
Joined: Thu Mar 01, 2007 4:22 pm
Location: IFR 49 - Neurospin, Gif-sur-Yvette, France
Contact:

Re: Error in BrainVISA : unable to open database file

Post by Dominique Geffroy »

Hi,

Does Brainvisa start anyway ? If so, myabe you can try to update databases using the process "Data management -> Update Databases".

Dominique
up_mc_jack
Posts: 2
Joined: Thu Mar 10, 2011 7:09 pm

Re: Error in BrainVISA : unable to open database file

Post by up_mc_jack »

Thank you for your reply, Yes, Brainvisa starts, so I did what you told me to do, and then I got this Error message from then on :

OperationalError
neuroHierarchy.py (98) in openDatabases:
base = SQLDatabase( sqlite, dbSettings.directory, fso=dbSettings.expert_settings.ontology, context=defaultContext(), otherSqliteFiles=otherSqliteFiles )
sqlFSODatabase.py (397) in __init__:
?
sqlFSODatabase.py (597) in checkTables:
?
sqlFSODatabase.py (527) in _getDatabaseCursor:
?
sqlite_tools.py (101) in _getConnection:
?

:(
Dominique Geffroy
Site Admin
Posts: 161
Joined: Thu Mar 01, 2007 4:22 pm
Location: IFR 49 - Neurospin, Gif-sur-Yvette, France
Contact:

Re: Error in BrainVISA : unable to open database file

Post by Dominique Geffroy »

This is very strange, I've never seen this error before. Maybe the database file is corrupted. You can try to remove the database.sqlite file in your database directory. If you don't have any database directory selected, maybe it is the brainvisa shared database file that is corrupted and you can try to remove the file database-2.0.sqlite from <brainvisa_pack_directory>/share/shfj-4.0.

Dominique
Post Reply