Traslate not work docker 7.0.5

i add traslate for italian language.
i see the help at url
i modify djangojs.po execute msgfmt -o djangojs.po
but commmand
./ python-env python3 seahub/ compilejsi18n -l it
give me error

root@590fe258a110:/opt/seafile/seafile-server-latest# ./ python-env python3 seahub/ compilejsi18n -l it

Failed to import the site module
Traceback (most recent call last):
File “/opt/seafile/seafile-server-7.0.5/seahub/thirdpart/”, line 74, in
File “/opt/seafile/seafile-server-7.0.5/seahub/thirdpart/”, line 26, in __boot
import imp # Avoid import loop in Python >= 3.3
File “/usr/lib/python3.6/”, line 27, in
import tokenize
File “/usr/lib/python3.6/”, line 33, in
import re
File “/usr/lib/python3.6/”, line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module ‘enum’ has no attribute ‘IntFlag’