[ome-users] Trouble initializing the Django database

C Neves carlos at glencoesoftware.com
Mon May 4 17:21:00 BST 2009


Hello Ameir,

Can you give me a few extra details to help in debugging this one? I'll
need the path where you are issuing the command from and the contents of
C:\omero_dist\lib\python\omeroweb\settings.py and while at it, which
version of windows are you using?

Thanks,

Carlos

Ameir Myers wrote:
> Hi,
> I am trying to initialize the Django database with the command "python 
> manage.py syncdb", but i getting these python errors instead:
>
> Traceback (most recent call last):
>   File 
> "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", 
> line 307, in RunScript
>     debugger.run(codeObject, __main__.__dict__, start_stepping=1)
>   File 
> "C:\Python25\Lib\site-packages\pythonwin\pywin\debugger\__init__.py", 
> line 60, in run
>     _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
>   File 
> "C:\Python25\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", 
> line 624, in run
>     exec cmd in globals, locals
>   File "C:\omero_dist\lib\python\omeroweb\manage.py", line 108, in 
> <module>
>     execute_manager(settings)
>   File "C:\omero_dist\lib\python\django\core\management\__init__.py", 
> line 340, in execute_manager
>     utility.execute()
>   File "C:\omero_dist\lib\python\django\core\management\__init__.py", 
> line 295, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "C:\omero_dist\lib\python\django\core\management\base.py", line 
> 77, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File "C:\omero_dist\lib\python\django\core\management\base.py", line 
> 96, in execute
>     output = self.handle(*args, **options)
>   File "C:\omero_dist\lib\python\django\core\management\base.py", line 
> 178, in handle
>     return self.handle_noargs(**options)
>   File 
> "C:\omero_dist\lib\python\django\core\management\commands\syncdb.py", 
> line 51, in handle_noargs
>     cursor = connection.cursor()
>   File "C:\omero_dist\lib\python\django\db\backends\__init__.py", line 
> 56, in cursor
>     cursor = self._cursor(settings)
>   File "C:\omero_dist\lib\python\django\db\backends\sqlite3\base.py", 
> line 144, in _cursor
>     self.connection = Database.connect(**kwargs)
> OperationalError: unable to open database file
>
> I would appreciate it if someone can let me know what I am doing 
> wrong. Thank you.
> ------------------------------------------------------------------------
>
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>   





More information about the ome-users mailing list