c2hnihao
老生
老生
  • UID89
  • 粉丝1
  • 关注0
  • 发帖数1
阅读:7904回复:0

python unable to open database file问题

楼主#
更多 发布于:2016-01-01 19:31
F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\core\management\__init__.py:314: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if subcommand == 'runserver' and '--noreload' not in self.argv:
F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\core\management\__init__.py:314: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if subcommand == 'runserver' and '--noreload' not in self.argv:
Performing system checks...


System check identified no issues (0 silenced).
Unhandled exception in thread started by <function wrapper at 0x01762070>
Traceback (most recent call last):
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\utils\autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\core\management\commands\runserver.py", line 117, in inner_run
    self.check_migrations()
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\core\management\commands\runserver.py", line 163, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\migrations\executor.py", line 20, in __init__
    self.loader = MigrationLoader(self.connection)
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\migrations\loader.py", line 49, in __init__
    self.build_graph()
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\migrations\loader.py", line 176, in build_graph
    self.applied_migrations = recorder.applied_migrations()
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\migrations\recorder.py", line 65, in applied_migrations
    self.ensure_schema()
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\migrations\recorder.py", line 52, in ensure_schema
    if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\backends\base\base.py", line 231, in cursor
    cursor = self.make_debug_cursor(self._cursor())
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\backends\base\base.py", line 204, in _cursor
    self.ensure_connection()
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\backends\base\base.py", line 199, in ensure_connection
    self.connect()
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\utils.py", line 95, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\backends\base\base.py", line 199, in ensure_connection
    self.connect()
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\backends\base\base.py", line 171, in connect
    self.connection = self.get_new_connection(conn_params)
  File "F:\Python27\lib\site-packages\django-1.9-py2.7.egg\django\db\backends\sqlite3\base.py", line 207, in get_new_connection
    conn = Database.connect(**conn_params)
django.db.utils.OperationalError: unable to open database file
游客

返回顶部