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

It has print statements with python 2.7 syntax which cannot be used in python 3.7 #162

Open
K-7 opened this issue Dec 1, 2018 · 0 comments

Comments

@K-7
Copy link

K-7 commented Dec 1, 2018

Kindly refer to error below

Connected to pydev debugger (build 141.1245)
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2357, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1777, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/K2A/GIT/saiva/runserver.py", line 1, in
from saivaApp import app
File "/Users/K2A/GIT/saiva/saivaApp/init.py", line 5, in
from saivaApp import user, home, admin
File "/Users/K2A/GIT/saiva/saivaApp/user/init.py", line 3, in
from . import views # noqa
File "/Users/K2A/GIT/saiva/saivaApp/user/views.py", line 5, in
from saivaApp.user.models import User
File "/Users/K2A/GIT/saiva/saivaApp/user/models.py", line 3, in
from saivaApp.database import BaseModel
File "/Users/K2A/GIT/saiva/saivaApp/database.py", line 3, in
from settings import basestring, db
File "/Users/K2A/GIT/saiva/settings.py", line 18, in
from flask_superadmin import Admin
File "/Users/K2A/GIT/saiva/env/lib/python3.7/site-packages/flask_superadmin/init.py", line 1, in
from .base import expose, Admin, BaseView, AdminIndexView
File "/Users/K2A/GIT/saiva/env/lib/python3.7/site-packages/flask_superadmin/base.py", line 7, in
from flask_superadmin import babel
File "/Users/K2A/GIT/saiva/env/lib/python3.7/site-packages/flask_superadmin/babel.py", line 15
print ctx
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ctx)?

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

1 participant