THUDM / ChatGLM-6B

ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型
Apache License 2.0
40.75k stars 5.22k forks source link

NotADirectoryError: [WinError 267] 目录名称无效。: 'C:\\Program Files (x86)\\Graphviz 2.28\\bin\\dot.exe' #993

Open huberyWJH opened 1 year ago

huberyWJH commented 1 year ago

Is your feature request related to a problem? Please describe.

│ D:\Anaconda3\envs\py39\lib\site-packages\cpm_kernels\library\base.py:16 in lookup_dll │ │ │ │ 13 │ for path in paths: │ │ 14 │ │ if not os.path.exists(path): │ │ 15 │ │ │ continue │ │ ❱ 16 │ │ for name in os.listdir(path): │ │ 17 │ │ │ if name.startswith(prefix) and name.lower().endswith(".dll"): │ │ 18 │ │ │ │ return os.path.join(path, name) │ │ 19 │ return None │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ NotADirectoryError: [WinError 267] 目录名称无效。: 'C:\Program Files (x86)\Graphviz 2.28\bin\dot.exe'

Solutions

nan

Additional context

No response

xiaoToby commented 1 year ago

需要转义一下 , 路径前加 r