Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Move all apps to Python 3 #39

Open
iambibhas opened this issue Dec 5, 2019 · 2 comments
Open

Move all apps to Python 3 #39

iambibhas opened this issue Dec 5, 2019 · 2 comments

Comments

@iambibhas
Copy link
Contributor

Py2 is reaching EOL. All apps need to port to Py3. We're using 2to3 to update codes and creating PR. Going to tag this issue in all the PRs to keep track of them.

@iambibhas
Copy link
Contributor Author

iambibhas commented Dec 5, 2019

Issue with moving Hasjob, it's throwing this exception -

~/W/h/hasjob ❯❯❯ FLASK_ENV=development ./runserver.py                   (hasgeekpinned3)  ✘ 1 py3 ✭ ✱
Traceback (most recent call last):
  File "./runserver.py", line 5, in <module>
    from hasjob import app
  File "/Users/bibhas/Work/hasgeek/hasjob/hasjob/__init__.py", line 32, in <module>
    from . import models, views  # NOQA
  File "/Users/bibhas/Work/hasgeek/hasjob/hasjob/models/__init__.py", line 18, in <module>
    class POST_STATE(LabeledEnum):
  File "/Users/bibhas/Work/hasgeek/hasjob/hasjob/models/__init__.py", line 34, in POST_STATE
    UNPUBLISHED = {DRAFT, PENDING}
TypeError: unhashable type: '_LazyString'

It probably has something to do with flask-babelex. More issue there - hasgeek/baseframe#181 (comment)

No error if we use gettext instead of lazy gettext.

@jace
Copy link
Member

jace commented Mar 3, 2020

It probably has something to do with flask-babelex. More issue there - hasgeek/baseframe#181 (comment)

No error if we use gettext instead of lazy gettext.

This has been resolved via https://github.com/hasgeek/flask-babelhg

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

No branches or pull requests

2 participants