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

HTTP Error code: 255 - Is this an issue with python3.10? #41

Open
thagoober opened this issue May 4, 2023 · 2 comments
Open

HTTP Error code: 255 - Is this an issue with python3.10? #41

thagoober opened this issue May 4, 2023 · 2 comments

Comments

@thagoober
Copy link

Making note of a weird error in my aws instance, throwing me an error with import mapping innit.py

Think it might be because python 3.10 has a change re collections to collections.abc ?

Possible code fix might be:

try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping

@jonhanford
Copy link

I can confirm that using an older version of python fixes the issue. 3.8.16 works fine.

You should be able to install, alongside your current version, an older version of python on your aws instance.
Then installing/running like this works.

$ python3.8 -m venv .venv
$ source .venv/bin/activate
$ python3.8 -m pip install -r requirements.txt
$ python3.8 app.py

@jonthornton
Copy link
Owner

I was unable to reproduce the error myself on a macbook, but my best guess is maybe it's caused by an old version of Flask on a new version of python. I recently updated the Flask dependency; does the latest commit at d85e635 fix the error for you?

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

No branches or pull requests

3 participants