Skip to content

[Bug] 不支持python3.10以上安装 #1234

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

Closed
2 tasks done
rangehow opened this issue Jun 10, 2024 · 7 comments · May be fixed by #1985
Closed
2 tasks done

[Bug] 不支持python3.10以上安装 #1234

rangehow opened this issue Jun 10, 2024 · 7 comments · May be fixed by #1985
Assignees

Comments

@rangehow
Copy link

先决条件

问题类型

我正在使用官方支持的任务/模型/数据集进行评估。

环境

python 3.11

重现问题 - 代码/配置示例

.

重现问题 - 命令或脚本

pip install opencompass

重现问题 - 错误信息

Collecting pyext (from opencompass)
Using cached pyext-0.7.tar.gz (7.8 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/data/ruanjh/tmp/pip-install-oxjvkmov/pyext_7fd78ecb368043fd8e5011c0ea165836/setup.py", line 6, in
import pyext
File "/data/ruanjh/tmp/pip-install-oxjvkmov/pyext_7fd78ecb368043fd8e5011c0ea165836/pyext.py", line 117, in
oargspec = inspect.getargspec
^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
[end of output]

其他信息

如何在python3.10+的版本上使用opencompass?

@CloudyDory
Copy link

我也遇到了相同的问题

@jiusi9
Copy link

jiusi9 commented Jul 31, 2024

我也遇到了这个问题, 还没有人回复呀

@ZiHAO-LI-cmd
Copy link

3.12也是

@hrdxwandg
Copy link

参考:refi64/PyExt#3

@rangehow rangehow closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
@ShaohonChen
Copy link

可以参考#1985

@rangehow
Copy link
Author

如果后续还有人碰到这个问题,可以先通过@ShaohonChen 提交的PR修改安装pyExt,不清楚opencompass为什么会依赖一个如此古早的package,项目的依赖管理可能还有调整空间。

pip install git+https://github.com/refi64/PyExt.git@a95f488490fc57ec17d0c00a99c6bc0a4726824f

@aicodex
Copy link

aicodex commented May 20, 2025

如果后续还有人碰到这个问题,可以先通过@ShaohonChen 提交的PR修改安装pyExt,不清楚opencompass为什么会依赖一个如此古早的package,项目的依赖管理可能还有调整空间。

pip install git+https://github.com/refi64/PyExt.git@a95f488490fc57ec17d0c00a99c6bc0a4726824f

有用

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

Successfully merging a pull request may close this issue.

8 participants