Installation issue with pip, building from source
Phil Thompson
phil at riverbankcomputing.com
Thu May 22 19:20:00 BST 2025
On 18/05/2025 23:55, Phil Thompson wrote:
> On 18/05/2025 18:30, Jeremy Sanders wrote:
>> Hi -
>>
>> Has anyone else encountered this issue? It fails for me with
>> pyqt6-6.9.0, sip-6.11.0, qt-6.9.0 and pip 25.1.1, on both Windows and
>> Ubuntu 22.04.
>>
>> It worked previously with pyqt6-6.9.0, sip-6.10.0 and pip 25.1.1,
>> suggesting that this might be a sip issue.
>>
>> Thanks
>>
>> Jeremy
>>
>> -----
>>
>> python3 -m pip -v install --config-settings --confirm-license=
>> --no-binary :all: PyQt6
>>
>> ...
>>
>> Compiling the project...
>> Installing the project...
>> Traceback (most recent call last):
>> File
>> "C:\hostedtoolcache\windows\Python\3.13.3\x64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py",
>> line 389, in <module>
>> main()
>> ~~~~^^
>> File
>> "C:\hostedtoolcache\windows\Python\3.13.3\x64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py",
>> line 373, in main
>> json_out["return_val"] = hook(**hook_input["kwargs"])
>> ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
>> File
>> "C:\hostedtoolcache\windows\Python\3.13.3\x64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py",
>> line 179, in prepare_metadata_for_build_wheel
>> return _get_wheel_metadata_from_wheel(
>> whl_basename, metadata_directory, config_settings
>> )
>> File
>> "C:\hostedtoolcache\windows\Python\3.13.3\x64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py",
>> line 238, in _get_wheel_metadata_from_wheel
>> whl_file = os.path.join(metadata_directory, whl_basename)
>> File "<frozen ntpath>", line 139, in join
>> File "<frozen genericpath>", line 188, in _check_arg_types
>> TypeError: join() argument must be str, bytes, or os.PathLike
>> object, not 'list'
>> error: subprocess-exited-with-error
>>
>> Preparing metadata (pyproject.toml) did not run successfully.
>> exit code: 1
>>
>> See
>> https://github.com/veusz/veusz/actions/runs/15097383491/job/42433858047
>> and
>> https://github.com/veusz/veusz/actions/runs/15096973165/job/42432933475
>
> The changes in this area are that the metadata version will have
> changed from v2.1 to v2.2, and that the names of sdists and/or wheels
> have changed to be all lower case. I don't know of caching works in a
> github environment - can there be an older mixed case file lying
> around as well?
>
> I'd hack pip to print out the arguments to join() which I would think
> would be a big clue.
It's now been fixed. I'll release v6.11.1 in a day or two.
Thanks,
Phil
More information about the PyQt
mailing list