coala / coala-bears

Bears for coala
https://coala.io/
GNU Affero General Public License v3.0
295 stars 580 forks source link

Error when building 'typed-ast' from 'Development Setup Notes' #2999

Closed hmtbgc closed 2 years ago

hmtbgc commented 2 years ago

hi, I am a newcomer. I follow the steps from Welcome to the Newcomers’ Guide!. I try to set up my work environment, so I read Development Setup Notes. I set up a virtualvenv, activate it and try to install coala from git. But when installing 'coala-bears', someting wrong happens.

_13 | #include "pgenheaders.h" | ^~~~~~~ compilation terminated. error: command 'x8664-linux-gnu-gcc' failed with exit status 1 ERROR: Failed building wheel for typed-ast

It seems 'typed-ast' wheel is not built correctly. So I install 'typed-ast' manually, but the version is 1.4.1. When I second type in 'pip install -e .', I find the needed version of 'typed-ast' is '>=1.1.0 and < 1.2.0'. So it automatically uninstall 1.4.1 version and try to install 1.1.2 version, and the same error occurs. I try to modify the restrictions of typed-ast version, but I dont know how to do.

PS: just 'pip install coala-bears' in venv is OK. Error happens when installing from git. I also have tried to install 'typed-ast' 1.1.2 by pip, but the same error also happens. I have searched the previous issues, but I cannot find a solution.

My PC environment: Ubuntu 20.04.3 LTS (WSL)