-
Notifications
You must be signed in to change notification settings - Fork 70
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
[CI] macOS builds: "AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?" #384
Comments
Updating Bazel to 7.x and rules_python seems like a way to go. Thanks! |
Sorry for delayed response. The new rules_python provides a different way for |
See: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources This probably won't fix proxy-wasm#384, but will resurface those errors. Signed-off-by: Martijn Stevenson <[email protected]>
Early finding: I can upgrade to Bazel 6.5.0 but with Bazel 7 (turning off bzlmod) I get wasm build errors. I may proceed with 6.5.0 for now (which matches Envoy). Build errors seem to generally relate to toolchains + transitions:
|
Drive-by comment, but This works in Envoy right now, because it's also forcing C++17, but this should be fixed sooner, rather than later. |
There is a common CI issue on macOS/x86-64 about
pkgutil. ImpImporter
triggered by 'rules_python"It turns out that
pkgutil.ImpImporter
, as a long-deprecated class, has been removed from python 3.12. A proper way of fixing is upgrade rules_python.But if using the latest rules_python 0.31, another error will be meet.
It is because
RunEnvironmentInfo
is not exposed in Bazel < 5.3. Currently, proxy-wasm-cpp-host is using Build label: 5.2.0.So I am kind of stuck here, shall I ?
The text was updated successfully, but these errors were encountered: