[ome-users] Trouble initializing the Django database

C Neves carlos at glencoesoftware.com
Tue May 5 17:19:27 BST 2009


Hey Ameir,

In the settings.py file, where it reads

DATABASE_NAME = 'C:\omero_dist\lib\pythonlib\omeroweb\db.sqlite3'   # Or 
path to database file if using sqlite3.

it should read

DATABASE_NAME = 'C:\omero_dist\lib\python\omeroweb\db.sqlite3'   # Or 
path to database file if using sqlite3.

This appears to be a typo in the instructions, and should now be fixed. 
Thanks for spotting it!

Regards,

Carlos

Ameir Myers wrote:
> Hi Carlos,
>
> I have attached settings.py file with email for your review.
>
> On a machine running XP Version 2002 Service pack 2, I am executing 
> the command from the exact path described in the instruction guide:
> |C:\omero_dist\lib\python\omeroweb> python manage.py syncdb.
>
> .
>
>
>
> |
>
> On Mon, May 4, 2009 at 12:21 PM, C Neves <carlos at glencoesoftware.com 
> <mailto:carlos at glencoesoftware.com>> wrote:
>
>     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
>         <mailto:ome-users at lists.openmicroscopy.org.uk>
>         http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>          
>
>
>
>




More information about the ome-users mailing list