Closed Bug 1599244 Opened 5 years ago Closed 5 years ago

./mach lint fails due to SRE module mismatch

Categories

(Developer Infrastructure :: Lint and Formatting, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sebo, Unassigned)

Details

Attachments

(2 files)

Attached file mach lint output on Windows 10.txt (deleted) —

When I call ./mach lint it tells me that it fails importing the site module and outputs "SRE module mismatch".

Sebastian

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.

Flags: needinfo?(sebastianzartner)
Attached file mach lint output after clobber.txt (deleted) —

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

Flags: needinfo?(sebastianzartner)
Flags: needinfo?(mars)

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).

Flags: needinfo?(mars)

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Lint and Formatting

Sebastian, is this still an issue for you?

Flags: needinfo?(sebastianzartner)

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

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(sebastianzartner)
Resolution: --- → FIXED

Thanks.

Resolution: FIXED → WORKSFORME
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: