Open Victor725 opened 2 months ago
Hi @Victor725,
My guess is that it's an architecture problem, but let's confirm it. Could you run the following commands and give me the output:
file /root/.venvs/pyre/bin/pyre.bin
/root/.venvs/pyre/bin/pyre.bin --help
ok! emmm.... it seems some important libs are missing, is that the main reason? By the way, I run pysa in a docker container, does it matter?
It looks like we are building pyre with a version of glibc that cannot be found on your system. You might be using an operating system (within the docker container) that is either too old or too recent. Which operating system is that?
I build the docker container upon ubuntu:18.04, maybe I need to try 20.04 or 22.04? here's my dockerfile
FROM ubuntu:18.04
SHELL [ "/bin/bash", "-c" ]
ENV SHELL=/bin/bash
RUN apt update &&\
apt install -y git curl build-essential python3 python3-pip python3-venv
RUN curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh > ./install_brew.sh &&\
chmod +x ./install_brew.sh &&\
NONINTERACTIVE=1 ./install_brew.sh
#RUN (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc
#RUN eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
ENV PATH=/home/linuxbrew/.linuxbrew/bin:$PATH
RUN brew install watchman
RUN python3 -m venv ~/.venvs/pyre &&\
source ~/.venvs/pyre/bin/activate &&\
pip install pyre-check
yes, 18.04 is definitely too old. Please try 22.04 or above.
OK, thank you very much :)
Pysa Bug
Pre-submission checklist [ ] I've checked the list of common issues and mine does not appear
Bug description When I run "pyre analyze --no-verify --save-results-to ./pysa-runs", an error occured:
Reproduction steps I cd to my project dir, and run "pyre init-pysa" then"pyre analyze --no-verify --save-results-to ./pysa-runs", the bug above reported
Logs Please run your reproduction steps with
--noninteractive
(eg.pyre --noninteractive analyze
) and paste the output here:Additional context I used default stubs