Has anyone seen errors like this when running `pan...
# general
p
Has anyone seen errors like this when running `pants check ::`:
Copy code
Completed: Typecheck using MyPy - mypy - mypy failed (exit code 2).
mypy: Invalid python executable './requirements_venv.pex_bin_python_shim.sh': Exec format error
h
Possibly you're running code built for one platform on another platform, somehow. What machine is this happening on?
Try running with
--keep-sandboxes=always
, cd into the relevant sandbox, and run
file <path>
on the mypy pex file
p
This is a coworker running it on a mac laptop; I am running things on linux, so I guess things could leak somehow, maybe?
h
It shouldn't, but it could if the coworker is, for example, running some things in docker with the repo mapped into the container as a volume. Or, it could be an issue if the coworker is playing with rosetta somehow.
file
should tell you what platform the binary is built for
p
Apparently this was an emacs shell issue
h
Huh, I guess emacs was running under rosetta or something?