python-gcs-image icon indicating copy to clipboard operation
python-gcs-image copied to clipboard

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

Open bogdannedelcu opened this issue 3 years ago • 4 comments

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/e~uwin-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/e~uwin-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.

bogdannedelcu avatar Nov 19 '21 17:11 bogdannedelcu

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

shapkar avatar Jan 04 '22 19:01 shapkar

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

bogdannedelcu avatar Jan 04 '22 19:01 bogdannedelcu

@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.

PS-istarostenko avatar Jan 08 '22 02:01 PS-istarostenko

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

bogdannedelcu avatar Jan 09 '22 10:01 bogdannedelcu