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

bccache.py", line 26: def get(self, key: str) -> bytes: ^ SyntaxError: invalid syntax #10

Open
bogdannedelcu opened this issue Nov 19, 2021 · 4 comments

Comments

@bogdannedelcu
Copy link

bogdannedelcu commented Nov 19, 2021

Hi, I used this in the past and all worked well. The services still work and return valid URL of the image.

Not on a brand new instalation I get error when accessing any URL like the one bellow:

File "/base/data/home/apps/euwin-develop-d6298/20211119t184208.439520163638429856/lib/jinja2/bccache.py", line 26: def get(self, key: str) -> bytes: ^ SyntaxError: invalid syntax
at (/base/data/home/apps/e
uwin-develop-d6298/20211119t184208.439520163638429856/lib/jinja2/init.py:5)
at (/base/data/home/apps/euwin-develop-d6298/20211119t184208.439520163638429856/lib/flask/init.py:19)
at (/base/data/home/apps/e
uwin-develop-d6298/20211119t184208.439520163638429856/main.py:5)

I installed the latest version, python is 2.7... any advice is apreciated.

@shapkar
Copy link

shapkar commented Jan 4, 2022

@bogdannedelcu I face the same issue, did you find a solution? Thank you!

@bogdannedelcu
Copy link
Author

Did not, the old services still work but installing a mew one gives this error.

@PS-istarostenko
Copy link

@bogdannedelcu I was able to fix it by downgrading Flask to 0.12.5 in requirements.txt. Delete the lib directory and run pip install -r requirements.txt -t lib again.

@bogdannedelcu
Copy link
Author

@PS-istarostenko great job! it works for me too

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

3 participants