Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./manager.py db upgrade #181

Open
andrel0 opened this issue Nov 9, 2019 · 2 comments
Open

./manager.py db upgrade #181

andrel0 opened this issue Nov 9, 2019 · 2 comments

Comments

@andrel0
Copy link

andrel0 commented Nov 9, 2019

Hello! ,

I have centos7 / mariadb mysql / python 2.7 and pip 19.3.1. Unfortunately, the name of the BD is not only called "get5" but when you have cpanel it generates an alias before. Example:
user_get5.

Any suggestions for this error ( I am having problems during the process ) :

./manager.py db upgrade

Traceback (most recent call last):
File "./manager.py", line 3, in
import get5
File "/home/tournament/public_html/play/plataforma-mm/get5/init.py", line 29, in
from flask import (Flask, render_template, flash, jsonify,
File "/home/tournament/public_html/play/plataforma-mm/venv/lib/python2.7/site-packages/flask/init.py", line 21, in
from .app import Flask, Request, Response
File "/home/tournament/public_html/play/plataforma-mm/venv/lib/python2.7/site-packages/flask/app.py", line 20, in
from werkzeug.routing import Map, Rule, RequestRedirect, BuildError
File "/home/tournament/public_html/play/plataforma-mm/venv/lib/python2.7/site-packages/werkzeug/routing.py", line 948
exec(code, globs, locs)
SyntaxError: unqualified exec is not allowed in function '_compile_builder' it contains a nested function with free variables

@enyineer
Copy link
Contributor

Did you set your connection string for the get5-web config according to the user_get5 database name?

@andrel0
Copy link
Author

andrel0 commented Nov 10, 2019

Hi Nico, thanks for answering. It is correct, set the username / password and address of the BD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants