请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

nohup启动失败 ,日志里出现跟数据库有关 的错误!如下,打了下滑线,虚拟环境使用正常··

"nohup.out" 77L, 5118C                                                                                                     1,1           Top
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
    context)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
    cursor.execute(statement, parameters)
  File "/usr/local/lib/python3.5/site-packages/pymysql/cursors.py", line 166, in execute
    result = self._query(query)
  File "/usr/local/lib/python3.5/site-packages/pymysql/cursors.py", line 322, in _query
    conn.query(q)
  File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 856, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 1057, in _read_query_result
    result.read()
  File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 1340, in read
    first_packet = self.connection._read_packet()
  File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 1014, in _read_packet
    packet.check_error()
  File "/usr/local/lib/python3.5/site-packages/pymysql/connections.py", line 393, in check_error
    err.raise_mysql_exception(self._data)
  File "/usr/local/lib/python3.5/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'movie.tag' doesn't exist")

The above exception was the direct cause of the following exception:


Traceback (most recent call last):
  File "manage.py", line 2, in <module>
    from app import app
  File "/usr/local/nginx/html/movie_project/app/__init__.py", line 14, in <module>
    from app.admin import admin as admin_blueprint
  File "/usr/local/nginx/html/movie_project/app/admin/__init__.py", line 5, in <module>
    import app.admin.views
  File "/usr/local/nginx/html/movie_project/app/admin/views.py", line 11, in <module>
    from app.admin.forms import LoginForm, TagForm, MovieFrom, PreviewForm, PwdFrom, AuthForm, RoleForm, AdminForm
  File "/usr/local/nginx/html/movie_project/app/admin/forms.py", line 37, in <module>
    tags = Tag.query.all()
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 2703, in all
    return list(self)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 2855, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 2878, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
                                                                                                                             

正在回答

1回答

同学,你好,检查下你的数据库看看表是否完整

pymysql.err.ProgrammingError: (1146, "Table 'movie.tag' doesn't exist")

0 回复 有任何疑惑可以回复我~
  • 提问者 类嗨宾果啊 #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2017-10-26 10:28:07
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信