Can't install PyQt via pip because it ask about the license

Phil Thompson phil at riverbankcomputing.com
Wed Oct 5 11:52:56 BST 2022


On 05/10/2022 11:34, c.buhtz at posteo.jp wrote:
> On 2022-10-05 11:46 Florian Bruhin <me at the-compiler.org> wrote:
>> See the install docs you already linked for details.
> 
> I'm not sure but I used this archive. Maybe this is meant by "sdist"?
> <https://files.pythonhosted.org/packages/e1/57/2023316578646e1adab903caab714708422f83a57f97eb34a5d13510f4e1/PyQt5-5.15.7.tar.gz>
> 
> I unpacked and cd'ed into it where the project.toml file resists.
> Then I did "sip-install --confirm-license" and got a "zip() takes no
> keyword arguments" exception.
> 
> Here is the full traceback.
> 
> Generating the pylupdate bindings...
> sip-install: An internal error occurred...
> Traceback (most recent call last):
>   File "/home/user/.local/bin/sip-install", line 8, in <module>
>     sys.exit(main())
>   File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/tools/install.py",
> line 37, in main handle_exception(e) File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/exceptions.py",
> line 81, in handle_exception raise e File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/tools/install.py",
> line 34, in main project.install() File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/project.py",
> line 442, in install self.builder.install() File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/builder.py",
> line 224, in install self._generate_bindings() File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/builder.py",
> line 277, in _generate_bindings buildable = bindings.generate() File
> "/home/user/PyQt5-5.15.7/project.py", line 1091, in generate buildable
> = super().generate() File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/bindings.py",
> line 171, in generate resolve(spec) File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/generator/resolver/resolver.py",
> line 95, in resolve _resolve_module(spec, spec.modules[0], error_log)
> File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/generator/resolver/resolver.py",
> line 213, in _resolve_module _resolve_module(spec, imported_mod,
> error_log, seen=seen) File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/generator/resolver/resolver.py",
> line 216, in _resolve_module _resolve_typedefs(spec, mod, error_log)
> File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/generator/resolver/resolver.py",
> line 816, in _resolve_typedefs _resolve_type(spec, typedef.module,
> typedef.scope, typedef.type, File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/generator/resolver/resolver.py",
> line 1751, in _resolve_type _search_mapped_types(spec, mod, type) File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/generator/resolver/resolver.py",
> line 1923, in _search_mapped_types if same_base_type(mapped_type.type,
> type): File
> "/home/user/.local/lib/python3.8/site-packages/sipbuild/generator/utils.py",
> line 408, in same_base_type for ad1, ad2 in zip(td1.types.args,
> td2.types.args, strict=True): TypeError: zip() takes no keyword
> arguments

That's the bug reported a couple of days ago that affects older versions 
of Python. The workaround is to remove the 'strict=True' argument. I 
will release v6.7.1 soon.

Phil


More information about the PyQt mailing list