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

Failed to install dependencies of OPEA benchmark tool if Python version is higher than 3.10 #99

Open
joshuayao opened this issue Sep 3, 2024 · 2 comments

Comments

@joshuayao
Copy link
Contributor

joshuayao commented Sep 3, 2024

Reproduce the issue:
Ensure python is 3.11.

pip install -r requirements.txt

commit id: 71637c0
The supported Python is 3.x in evals/benchmark/README.MD.

Error:

Collecting pyext==0.7 (from bigcode-eval@ git+https://github.com/bigcode-project/bigcode-evaluation-harness.git@e5c2f31625223431d7987f43b70b75b9d26ba118->-r /root/josh/GenAIEval/requirements.txt (line 1))
  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 "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-7t4xdpv1/pyext_419332a2abb045ec82db85220394d51e/setup.py", line 6, in <module>
          import pyext
        File "/tmp/pip-install-7t4xdpv1/pyext_419332a2abb045ec82db85220394d51e/pyext.py", line 117, in <module>
          oargspec = inspect.getargspec
                     ^^^^^^^^^^^^^^^^^^
      AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Workaround:
Downgrade python to 3.10 or lower.

@RongLei-intel
Copy link
Contributor

Looks like only 3.10 works now. 3.9 is not supported and I also encountered this issue with python3.11.

@lkk12014402
Copy link
Collaborator

upgrading bigcode version can fix the issue, see #125

lkk12014402 pushed a commit that referenced this issue Sep 19, 2024
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

3 participants