Open v3ucn opened 1 month ago
just edit util.py to pass this bug:
def imp_find_module(name, path=None):
"""
same as imp.find_module, but handles dotted names
"""
names = name.split(".")
print(names)
if names == ['ruamel']:
return (None, '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ruamel', ('', '', 5))
if path is not None:
if isinstance(path, (str, unicode)):
path = [os.path.realpath(path)]
for name in names:
# if name != "ruamel":
result = imp.find_module(name, path)
if result[0] is not None:
result[0].close()
path = [result[1]]
print(result)
return result
Did you try putting the yaml file inside the resources dict?
OPTIONS = {
'argv_emulation': False,
'strip': False, # 不去除debug信息
'includes': ['gradio'],
'resources': ['ruamel.yaml'],
}
my setup.py:
it's print:
there's "ruamel" in the dict
got this error:
the thing is, there isn't a library named "ruamel", it's only "ruamel.yaml", need help guys, many thanks