question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation of Qt 5.15.2 on macOS fails with python exception KeyError(name)

See original GitHub issue

First of all, thanks for developing and maintaining this action!

The action was working perfectly up to yesterday, but I just did another commit today and the action is now failing, see the job here:

https://github.com/vgc/vgc/runs/1972493790

python3 -m aqt install 5.15.2 mac desktop -O /Users/runner/work/vgc/Qt
Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 170, in __getitem__
    return next(iter(self.select(name=name)))
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/aqt/__main__.py", line 28, in <module>
    sys.exit(main())
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/aqt/__init__.py", line 38, in main
    return cli.run()
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/aqt/installer.py", line 433, in run
    return args.func(args)
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/aqt/installer.py", line 186, in run_install
    self._run_common_part(output_dir, base)
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/aqt/installer.py", line 145, in _run_common_part
    self.show_aqt_version()
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/aqt/installer.py", line 323, in show_aqt_version
    module_name = dist.entry_points[0].name
  File "/Users/runner/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 172, in __getitem__
    raise KeyError(name)
KeyError: 0
Error: The process 'python3' failed with exit code 1

Not sure what’s wrong, I haven’t tried investigating yet what the problem is, just reporting here.

Here is the workflow Yaml file that I use:

https://github.com/vgc/vgc/blob/master/.github/workflows/macosbuild.yml

Relevant subset:

name: macOS Build

on: [push, pull_request]

env:
  BUILD_TYPE: Release
  QT_VERSION: 5.15.2

jobs:
  build:
    runs-on: macos-10.15

    steps:

    [...]

    - name: Install Qt
      uses: jurplel/install-qt-action@v2
      with:
        version: ${{env.QT_VERSION}}
        setup-python: false

    [...]

Perhaps I need to set setup-python to true, I don’t remember why I have explicitly set it up to false (perhaps it was too slow?).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dalboriscommented, Feb 25, 2021

Thanks! I closed the issue, I suppose anyone should feel free to reopen if there are still issues about this.

1reaction
jurplelcommented, Feb 25, 2021

done

Read more comments on GitHub >

github_iconTop Results From Across the Web

qt/5.15.2: fails to build on macOS 12.0.1 Monterrey #7942
Package and Environment Details (include every applicable attribute). Package Name/Version: qt/5.15.2; Operating System+version: macOS 12.0.
Read more >
Error on installing pyqt5(pip install pyqt5) - Stack Overflow
I was able to solve the problem by installing the latest Python version 3.10.5, updating pip alone did not help. I was using...
Read more >
aqtinstall Documentation
Let's say we need to install some modules for Qt 5.15.2 on Windows Desktop. First we need to find out what the.
Read more >
Bug listing with status RESOLVED with resolution TEST ...
after upgrading Qt to 3.3.1 from 3.3.0-r1. ... Bug:67970 - "emerge of python-2.3.4 fails with "test" in FEATURES ("test_import" fails)" status:RESOLVED ...
Read more >
Qt 5.15.8 failed to compile for iOS platform on macos 12.3
Due to Python2.7 removal from macos 12.3 I have this error message when ... /usr/bin/python: bad interpreter: No such file or directory Any ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found