Closed Bug 1636865 Opened 1 year ago Closed 1 year ago

ImportError: bad magic number in 'ply'

Categories

(Firefox Build System :: General, defect)

Unspecified
Linux
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sg, Unassigned)

References

(Blocks 1 open bug)

Details

 0:33.83 Traceback (most recent call last):
 0:33.83   File "/home/simon/work/refactor/ipc/ipdl/ipdl.py", line 12, in <module>
 0:33.83     import ipdl
 0:33.83   File "/home/simon/work/refactor/build/mach_bootstrap.py", line 475, in __call__
 0:33.83     module = self._original_import(name, globals, locals, fromlist, level)
 0:33.83   File "/home/simon/work/refactor/ipc/ipdl/ipdl/__init__.py", line 16, in <module>
 0:33.83     from ipdl.parser import Parser, ParseError
 0:33.83   File "/home/simon/work/refactor/build/mach_bootstrap.py", line 475, in __call__
 0:33.83     module = self._original_import(name, globals, locals, fromlist, level)
 0:33.83   File "/home/simon/work/refactor/ipc/ipdl/ipdl/parser.py", line 6, in <module>
 0:33.83     from ply import lex, yacc
 0:33.83   File "/home/simon/work/refactor/build/mach_bootstrap.py", line 475, in __call__
 0:33.83     module = self._original_import(name, globals, locals, fromlist, level)
 0:33.83 ImportError: bad magic number in 'ply': b'\x03\xf3\r\n'

mach clobber solved this issue, though.

Yeah, this sort of stuff is going to happen when Python scripts get moved around, which is something that happened in a push over the weekend.

In the future, mach clobber python is a more granular way to fix the actual problem (i.e., bad .pyc files) without blowing away literally all your build artifacts.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.