Open edreamleo opened 2 years ago
Thanks for reporting! You probably need to install something like python3-dev
for Python.h
to be available. Agree that we should make it explicit that gcc and make are required.
@JelleZijlstra Thanks. I'll try python3-dev later today.
@JelleZijlstra apt-get install python3-dev
fixed all but one of the test failures:
So it looks like g++ must be installed too.
Indeed, all tests pass for me after apt-get install g++
: 9966 passed, 370 skipped, 9 xfailed
I think a helper to try to compile a simple file that includes Python.h in conftest that can be used to skip the mypyc tests makes sense? Unless we think that the mypyc tests should always be run, in which case we can just show a helpful error.
Bug Report
It appears that there are several missing dependencies in test-requirements.txt, including:
#include <Python.h>
fails. For example:To Reproduce
Rather than including multiple (huge) console logs, I'll summarize. I'll be happy to run any tests that you might want.
Hundreds of tests will fail, complaining either that
x86_64-linux-gnu-gcc
does not exist or thatmake
does not exist.After:
I still get many failures:
346 failed, 9620 passed, 370 skipped, 9 xfailed
, with many tests failing because#include <Python.h>
fails, as shown above.Expected Behavior
All unit tests pass (in the venv) after installing mypy.
Actual Behavior
See above.
Your Environment
mypy installation:
Environment:
pip list
(outer):(venv) pip list
:I have spent several hours trying various permutations. This report is far from the last word. To repeat, I'll be happy to run any tests that you might want.