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

[Bug] install error #60

Open
3 tasks
runyuma opened this issue Dec 8, 2022 · 0 comments
Open
3 tasks

[Bug] install error #60

runyuma opened this issue Dec 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@runyuma
Copy link

runyuma commented Dec 8, 2022

🐛 Bug

failed to install eagerx-gui in Poetry envrionment

To Reproduce

Firstly, I follow the instruction installing eagerx with Poetry.

I want to add eagerx-gui in this virtual environment. So I try to add it in poetry by:

poetry add eagerx-gui

Then came the error:

Using version ^0.2.14 for eagerx-gui

Updating dependencies
Resolving dependencies... (0.0s)

The current project's Python requirement (>=3.6.2,<4.0.0) is not compatible with some of the required packages Python requirement:
  - eagerx-gui requires Python >=3.8,<4.0, so it will not be satisfied for Python >=3.6.2,<3.8

Because eagerx-gui (0.2.14) requires Python >=3.8,<4.0
 and no versions of eagerx-gui match >0.2.14,<0.3.0, eagerx-gui is forbidden.
So, because eagerx depends on eagerx-gui (^0.2.14), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
    
    For eagerx-gui, a possible solution would be to set the `python` property to ">=3.8,<4.0.0"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

The python version is 3.9.13, which fit the condition ">=3.8,<4.0.0". So I do not know why it can not be installed.

I also tried:

python3.9 -m pip install eagerx-gui

Then came another error.

Collecting eagerx-gui
  Using cached eagerx_gui-0.2.14-py3-none-any.whl (20 kB)
Requirement already satisfied: eagerx<0.2.0,>=0.1.30 in /home/marunyu/.cache/pypoetry/virtualenvs/eagerx-izmxb-y5-py3.9/lib/python3.9/site-packages (from eagerx-gui) (0.1.33)
Collecting pyqtgraph<0.13.0,>=0.12.4
  Using cached pyqtgraph-0.12.4-py3-none-any.whl (995 kB)
Collecting PyQt6<7.0.0,>=6.2.3
  Using cached PyQt6-6.4.0.tar.gz (1.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Querying qmake about your Qt installation...
      Traceback (most recent call last):
        File "/home/marunyu/.cache/pypoetry/virtualenvs/eagerx-izmxb-y5-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, in prepare_metadata_for_build_wheel
          hook = backend.prepare_metadata_for_build_wheel
      AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/home/marunyu/.cache/pypoetry/virtualenvs/eagerx-izmxb-y5-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/home/marunyu/.cache/pypoetry/virtualenvs/eagerx-izmxb-y5-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/marunyu/.cache/pypoetry/virtualenvs/eagerx-izmxb-y5-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 148, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
        File "/tmp/pip-build-env-h5ltwfq7/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 46, in build_wheel
          project = AbstractProject.bootstrap('wheel',
        File "/tmp/pip-build-env-h5ltwfq7/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "/tmp/pip-build-env-h5ltwfq7/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 601, in setup
          self.update(tool)
        File "project.py", line 162, in update
      sipbuild.exceptions.UserException
      [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

It seems there is no way to install eagerx-gui for me now.

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have read the documentation (required)
  • I have provided a minimal working example to reproduce the bug (required)
@runyuma runyuma added the bug Something isn't working label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant