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

win10 run xinference-local error #3033

Open
1 of 3 tasks
kfchandsome opened this issue Mar 10, 2025 · 0 comments
Open
1 of 3 tasks

win10 run xinference-local error #3033

kfchandsome opened this issue Mar 10, 2025 · 0 comments
Milestone

Comments

@kfchandsome
Copy link

System Info / 系統信息

python 3.10
win10

Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?

  • docker / docker
  • pip install / 通过 pip install 安装
  • installation from source / 从源码安装

Version info / 版本信息

xinference, version 1.3.1

The command used to start Xinference / 用以启动 xinference 的命令

xinference-local

Reproduction / 复现过程

Traceback (most recent call last):
File "C:\Users\孔.conda\envs\xinference\lib\logging\config.py", line 565, in configure
handler = self.configure_handler(handlers[name])
File "C:\Users\孔.conda\envs\xinference\lib\logging\config.py", line 746, in configure_handler
result = factory(**kwargs)
File "C:\Users\孔.conda\envs\xinference\lib\logging\handlers.py", line 155, in init
BaseRotatingHandler.init(self, filename, mode, encoding=encoding,
File "C:\Users\孔.conda\envs\xinference\lib\logging\handlers.py", line 58, in init
logging.FileHandler.init(self, filename, mode=mode,
File "C:\Users\孔.conda\envs\xinference\lib\logging_init_.py", line 1169, in init
StreamHandler.init(self, self.open())
File "C:\Users\孔.conda\envs\xinference\lib\logging_init
.py", line 1201, in _open
return open_func(self.baseFilename, self.mode,
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\u5b54\.xinference\logs\local_1741632574501\xinference.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\孔.conda\envs\xinference\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\孔.conda\envs\xinference\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\孔.conda\envs\xinference\Scripts\xinference-local.exe_main
.py", line 7, in
sys.exit(local())
File "C:\Users\孔.conda\envs\xinference\lib\site-packages\click\core.py", line 1161, in call
return self.main(*args, **kwargs)
File "C:\Users\孔.conda\envs\xinference\lib\site-packages\click\core.py", line 1082, in main
rv = self.invoke(ctx)
File "C:\Users\孔.conda\envs\xinference\lib\site-packages\click\core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\孔.conda\envs\xinference\lib\site-packages\click\core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "C:\Users\孔.conda\envs\xinference\lib\site-packages\xinference\deploy\cmdline.py", line 226, in local
start_local_cluster(
File "C:\Users\孔.conda\envs\xinference\lib\site-packages\xinference\deploy\cmdline.py", line 109, in start_local_cluster
logging.config.dictConfig(dict_config) # type: ignore
File "C:\Users\孔.conda\envs\xinference\lib\logging\config.py", line 811, in dictConfig
dictConfigClass(config).configure()
File "C:\Users\孔.conda\envs\xinference\lib\logging\config.py", line 572, in configure
raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'file_handler'

Expected behavior / 期待表现

如何解决ValueError: Unable to configure handler 'file_handler' ,查看之前的帖子,增加电脑环境变量,复现了帖子处理,但还是运行报错

@XprobeBot XprobeBot added this to the v1.x milestone Mar 10, 2025
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