Skip to content

运行报错No module named 'regex._regex' #35

@atorber

Description

@atorber

在本地运行可以,上传到云函数运行报No module named 'regex._regex'
{
"errorCode":-1,
"errorMessage":"Traceback (most recent call last):
File "/var/runtime/python3/bootstrap.py", line 133, in init_handler
func_handler = get_func_handler(file.rsplit(".", 1)[0], func)
File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler
mod = imp.load_module(mname, *imp.find_module(mname))
File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "", line 675, in _load
File "", line 655, in _load_unlocked
File "", line 678, in exec_module
File "", line 205, in _call_with_frames_removed
File "/var/user/index.py", line 9, in
from TimeNormalizer import TimeNormalizer # 引入包
File "/var/user/TimeNormalizer.py", line 8, in
import regex as re
File "/var/user/regex/init.py", line 1, in
from .regex import *
File "/var/user/regex/regex.py", line 419, in
import regex._regex_core as _regex_core
File "/var/user/regex/_regex_core.py", line 21, in
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'",
"requestId":"79e742a0-acdd-474d-bc2c-248fbaefdfdd",
"statusCode":443
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions