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

cannot use LOCALE flag with a str pattern #22

Open
phanthuthao opened this issue Nov 11, 2021 · 1 comment
Open

cannot use LOCALE flag with a str pattern #22

phanthuthao opened this issue Nov 11, 2021 · 1 comment

Comments

@phanthuthao
Copy link

kunyu init --apikey 053A8E0c-e2d1-18498-d24f-dc8c4ac53bf 2 ⨯
Traceback (most recent call last):
File "/usr/local/bin/kunyu", line 33, in
sys.exit(load_entry_point('kunyu==1.5.0', 'console_scripts', 'kunyu')())
File "/usr/local/bin/kunyu", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/usr/local/lib/python3.9/dist-packages/kunyu-1.5.0-py3.9.egg/kunyu/console.py", line 17, in
from kunyu.core.console import KunyuInterpreter
File "/usr/local/lib/python3.9/dist-packages/kunyu-1.5.0-py3.9.egg/kunyu/core/console.py", line 19, in
from kunyu.lib.export import createdir
File "/usr/local/lib/python3.9/dist-packages/kunyu-1.5.0-py3.9.egg/kunyu/lib/export.py", line 14, in
import xlwt
File "/usr/local/lib/python3.9/dist-packages/xlwt/init.py", line 5, in
from .Row import Row
File "/usr/local/lib/python3.9/dist-packages/xlwt/Row.py", line 9, in
from . import ExcelFormula
File "/usr/local/lib/python3.9/dist-packages/xlwt/ExcelFormula.py", line 8, in
from . import ExcelFormulaParser, ExcelFormulaLexer
File "/usr/local/lib/python3.9/dist-packages/xlwt/ExcelFormulaLexer.py", line 53, in
_re = recompile(
File "/usr/lib/python3.9/re.py", line 252, in compile
return _compile(pattern, flags)
File "/usr/lib/python3.9/re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.9/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.9/sre_parse.py", line 958, in parse
p.state.flags = fix_flags(str, p.state.flags)
File "/usr/lib/python3.9/sre_parse.py", line 925, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern

@wikiZ
Copy link
Collaborator

wikiZ commented Nov 12, 2021

https://blog.csdn.net/xiaosaerjt/article/details/89142881

可以参考一下这里

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

2 participants