-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Fix/devcontainer qt deps #61611
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
Fix/devcontainer qt deps #61611
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3' | ||
services: | ||
dev: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
# Uncomment the line below if you are using Mac with M1/M2/M3 and encounter build issues. | ||
# platform: linux/amd64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're adding docker-compose because platform cannot be specified in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should add docker-compose.yml here; as @rhshadrach already mentioned we have very little support activity in our Docker space, so I don't think we should expand it at the moment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If you put |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this only affects Macs? I vaguely recall there being some kind of issue with qt on all platforms, and since this is in a Dockerfile anyway I'm not sure why the host should matter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apparently not only Macs, but arm64 arch in general?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this has anything to do with the platform architecture, but rather when running a headless environment (like a Docker container)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to fix this issue too. My approach was to use PyQt6 (#62176).
The main problem is that PyQt5 doesn't provide pre-compiled binaries for linux-arm64.
If you want to have PyQt5 in the container, you must compile it from source. For that, you will need to install some Qt5 libraries. I was verifying this approach with QEMU emulation, but after 3h building PyQt5, I gave up on the idea.
Another solution is to remove the Qt dependencies from the image for ARM64.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The qt dependency is only for a very small set of tests in the code base. If it's problematic for environment creation, I think it would be fine to separate that out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @WillAyd, I applied your idea on #62422.