[ome-users] Trouble initializing the Django database

Ameir Myers ameir.myers at gmail.com
Fri May 1 21:16:59 BST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20090501/59f5498c/attachment.html>


More information about the ome-users mailing list