./mach lint fails due to SRE module mismatch
Categories
(Developer Infrastructure :: Lint and Formatting, defect, P3)
Tracking
(Not tracked)
People
(Reporter: sebo, Unassigned)
Details
Attachments
(2 files)
When I call ./mach lint
it tells me that it fails importing the site module and outputs "SRE module mismatch".
Sebastian
Comment 1•5 years ago
|
||
Research says that this error can result from loading a copy of the re
module using a different Python version, such as loading a Python 3.6 copy of re
using Python 3.7. The virtualenv output implies the same: it says "Not overwriting existing python script".
Have you tried running ./mach clobber
? That should kill all virtualenvs. It will rebuild them the next time you run a command that needs them.
Reporter | ||
Comment 2•5 years ago
|
||
Thank you for the info! And excuse my late reply!
After running ./mach clobber
I don't get the SRE error anymore, though now I get a UnicodeDecodeError error. I didn't find a bug report for that. Is there already one? If not, should this one be reused or should I created a new one?
Sebastian
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Have a look at bug 1291843. Does that sound like the issue you are seeing? If so have a look at the workaround in bug 1291843 comment 8.
I suggest you file a new bug and closed this one as FIXED. Your issue sounds similar to 1291843 but the traceback being raised is very different because of MozProcess. The new issue should block bug 1543241 (tracking bug for all mach bustage).
Comment 4•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 5•5 years ago
|
||
Sebastian, is this still an issue for you?
Reporter | ||
Comment 6•5 years ago
|
||
No, with the newest revisions it works as expected and I even didn't need the workaround Māris mentioned. Sorry that I didn't mention it earlier!
So let's close this one. Thank you for your help!
Sebastian
Updated•2 years ago
|
Description
•