Build wheel failure during Python virtual environment library installation

1,456 views
Skip to first unread message

Marcus Jones

unread,
Jun 28, 2024, 5:04:41 PM6/28/24
to QATrack+
Hi !

I'm trying to deploy QATrack+ on Ubuntu, and whilst following the installation process, I get to the step which installs the libraries needed for QATrack+ with PostgreSQL. Unfortunately, this results in a build wheel failure.

After entering the command: 

pip install -r requirements/postgres.txt

...the process fails with the following error message and trace:

 Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
 
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Traceback (most recent call last):
        File "/home/marcus/venvs/qatrack31/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/marcus/venvs/qatrack31/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 "/home/marcus/venvs/qatrack31/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-_13x4ymd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-_13x4ymd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-_13x4ymd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 497, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-_13x4ymd/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 52, in <module>
        File "/tmp/pip-install-0h5f7toi/matplotlib_2df3abc497f24186921ee8a6e6497159/versioneer.py", line 1410, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/tmp/pip-install-0h5f7toi/matplotlib_2df3abc497f24186921ee8a6e6497159/versioneer.py", line 1344, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-0h5f7toi/matplotlib_2df3abc497f24186921ee8a6e6497159/versioneer.py", line 401, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


Has anyone come across this problem during installation before? I can't see any similar reports in the Google group message archive.

Many thanks,

Marcus

Kym Nitschke

unread,
Jun 29, 2024, 6:34:16 AM6/29/24
to Marcus Jones, QATrack+
Hi Marcus,

I notice that you are running Python 3.12. The QA Track documentation recommends Python 3.9.

There have been some ‘recent’ changes to setuptools which could be the problem.

Kym

Sent from my iPhone

On 29 Jun 2024, at 7:04 AM, Marcus Jones <marcus.j...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/CADi%3D3xvxh9krdaLB9-7WzLD76OH83FCO9CGGyPrzhbUjYUQ2fA%40mail.gmail.com.

Marcus Jones

unread,
Jun 30, 2024, 1:45:51 PM6/30/24
to Kym Nitschke, QATrack+
Thanks Kym.

I did notice that there is only experimental support for 3.12 currently (things like Versioneer etc). 

I'll try with an older version.

Thanks, 

Marcus
Reply all
Reply to author
Forward
0 new messages