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

"test" extra can not be installed on Ubuntu Oracular #620

Open
offby1 opened this issue Feb 25, 2025 · 0 comments
Open

"test" extra can not be installed on Ubuntu Oracular #620

offby1 opened this issue Feb 25, 2025 · 0 comments

Comments

@offby1
Copy link

offby1 commented Feb 25, 2025

It works fine without the "test" extra:

not-workme@ubuntu:~$ cd /tmp
not-workme@ubuntu:/tmp$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.10"
NAME="Ubuntu"
VERSION_ID="24.10"
VERSION="24.10 (Oracular Oriole)"
VERSION_CODENAME=oracular
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=oracular
LOGO=ubuntu-logo
not-workme@ubuntu:/tmp$ python3 -m venv .venv
not-workme@ubuntu:/tmp$ ./.venv/bin/pip --version
pip 24.2 from /tmp/.venv/lib/python3.12/site-packages/pip (python 3.12)
not-workme@ubuntu:/tmp$
not-workme@ubuntu:/tmp$ ./.venv/bin/pip install python-lsp-server
Collecting python-lsp-server
  Downloading python_lsp_server-1.12.2-py3-none-any.whl.metadata (10 kB)
Collecting docstring-to-markdown (from python-lsp-server)
  Downloading docstring_to_markdown-0.15-py3-none-any.whl.metadata (2.0 kB)
Collecting jedi<0.20.0,>=0.17.2 (from python-lsp-server)
  Downloading jedi-0.19.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting pluggy>=1.0.0 (from python-lsp-server)
  Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting python-lsp-jsonrpc<2.0.0,>=1.1.0 (from python-lsp-server)
  Downloading python_lsp_jsonrpc-1.1.2-py3-none-any.whl.metadata (1.5 kB)
Collecting ujson>=3.0.0 (from python-lsp-server)
  Downloading ujson-5.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (9.3 kB)
Collecting parso<0.9.0,>=0.8.4 (from jedi<0.20.0,>=0.17.2->python-lsp-server)
  Downloading parso-0.8.4-py2.py3-none-any.whl.metadata (7.7 kB)
Downloading python_lsp_server-1.12.2-py3-none-any.whl (74 kB)
Downloading jedi-0.19.2-py2.py3-none-any.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 20.8 MB/s eta 0:00:00
Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
Downloading python_lsp_jsonrpc-1.1.2-py3-none-any.whl (8.8 kB)
Downloading ujson-5.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (51 kB)
Downloading docstring_to_markdown-0.15-py3-none-any.whl (21 kB)
Downloading parso-0.8.4-py2.py3-none-any.whl (103 kB)
Installing collected packages: ujson, pluggy, parso, docstring-to-markdown, python-lsp-jsonrpc, jedi, python-lsp-server
Successfully installed docstring-to-markdown-0.15 jedi-0.19.2 parso-0.8.4 pluggy-1.5.0 python-lsp-jsonrpc-1.1.2 python-lsp-server-1.12.2 ujson-5.10.0

it fails with the "test" extra

not-workme@ubuntu:/tmp$ ./.venv/bin/pip install 'python-lsp-server[test]'
Requirement already satisfied: python-lsp-server[test] in ./.venv/lib/python3.12/site-packages (1.12.2)
Requirement already satisfied: docstring-to-markdown in ./.venv/lib/python3.12/site-packages (from python-lsp-server[test]) (0.15)
Requirement already satisfied: jedi<0.20.0,>=0.17.2 in ./.venv/lib/python3.12/site-packages (from python-lsp-server[test]) (0.19.2)
Requirement already satisfied: pluggy>=1.0.0 in ./.venv/lib/python3.12/site-packages (from python-lsp-server[test]) (1.5.0)
Requirement already satisfied: python-lsp-jsonrpc<2.0.0,>=1.1.0 in ./.venv/lib/python3.12/site-packages (from python-lsp-server[test]) (1.1.2)
Requirement already satisfied: ujson>=3.0.0 in ./.venv/lib/python3.12/site-packages (from python-lsp-server[test]) (5.10.0)
Collecting pylint<4,>=3.1 (from python-lsp-server[test])
  Downloading pylint-3.3.4-py3-none-any.whl.metadata (12 kB)
Collecting pytest (from python-lsp-server[test])
  Downloading pytest-8.3.4-py3-none-any.whl.metadata (7.5 kB)
Collecting pytest-cov (from python-lsp-server[test])
  Downloading pytest_cov-6.0.0-py3-none-any.whl.metadata (27 kB)
Collecting coverage (from python-lsp-server[test])
  Downloading coverage-7.6.12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (8.5 kB)
Collecting numpy (from python-lsp-server[test])
  Downloading numpy-2.2.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (63 kB)
Collecting pandas (from python-lsp-server[test])
  Downloading pandas-2.2.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.metadata (89 kB)
Collecting matplotlib (from python-lsp-server[test])
  Downloading matplotlib-3.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (11 kB)
Collecting pyqt5 (from python-lsp-server[test])
  Downloading PyQt5-5.15.11.tar.gz (3.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 31.9 MB/s eta 0:00:00
  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
  ╰─> [25 lines of output]
      Traceback (most recent call last):
        File "/tmp/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/tmp/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-89x50f30/overlay/lib/python3.12/site-packages/sipbuild/api.py", line 28, in build_wheel
          project = AbstractProject.bootstrap('wheel',
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-89x50f30/overlay/lib/python3.12/site-packages/sipbuild/abstract_project.py", line 74, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "/tmp/pip-build-env-89x50f30/overlay/lib/python3.12/site-packages/sipbuild/project.py", line 629, in setup
          self.apply_user_defaults(tool)
        File "/tmp/pip-install-4j70wb7c/pyqt5_9851379570584a0c9c7d5c2254ac256a/project.py", line 68, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "/tmp/pip-build-env-89x50f30/overlay/lib/python3.12/site-packages/pyqtbuild/project.py", line 51, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "/tmp/pip-build-env-89x50f30/overlay/lib/python3.12/site-packages/sipbuild/project.py", line 243, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "/tmp/pip-build-env-89x50f30/overlay/lib/python3.12/site-packages/pyqtbuild/builder.py", line 49, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [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.
not-workme@ubuntu:/tmp$
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

1 participant