-
Notifications
You must be signed in to change notification settings - Fork 132
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
Bug 1697100: Don't let environment affect subprocess module search path #1542
Conversation
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.
Awaiting confirmation that it solves the issue.
I copied your new https://github.com/mozilla/glean/blob/95fb6783762608800d70c2e071b665a8c094e8a6/glean-core/python/glean/_process_dispatcher.py to my objdir
|
Looks like I just needed to re-run I don't have a I reran |
It would be helpful if mach had a clobber status so it could warn users when they need to re-run |
Hmpf, sounds like bad interaction between the 2 python programs.
IMO worth reporting on bugzilla. Would also play well with |
Thanks @cpeterso. It feels like it should at least theoretically be possible to ensure that the code in the subprocess is the same as in the parent process somehow (even if this shot-in-the-dark didn't work). Then we wouldn't have to worry about clobbering issues etc. So, I'll close this PR as WONTFIX, but might keep the parent bug open for a while to investigate further. |
I was having a similar issue on NixOS, and grabbing the patch appears to fix it. |
da7f7c2
to
a1a443f
Compare
a1a443f
to
cbbe413
Compare
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 think this is still fine. We had originally chosen to pass on it because we didn't full understand the root cause (and we still don't). But it's definitely helping the minority that falls into this -- we should keep an eye out on any regressions when this lands in m-c, though.l
@cpeterso: Can you confirm this addresses your issue by copying
_process_dispatcher.py
on this branch to/Users/chris/Code/mozilla/firefox/obj-x86_64-apple-darwin20.3.0-clang-mozbuild/_virtualenvs/init_py3/lib/python3.8/site-packages/glean/
?