Open cosad3s opened 3 years ago
Hey @cactuschibre , you can run pyre analyze --no-verify
to run Pysa despite having model verification errors
Does that solve the issue you are running into?
Ok thanks, it is better ...
(...)
ƛ No cached overrides loaded, computing overrides...
ƛ `google.protobuf.message.Message.ClearField` has 57 overrides, this might slow down the analysis considerably.
ƛ `google.protobuf.message.Message.__init__` has 58 overrides, this might slow down the analysis considerably.
ƛ `typing.GenericMeta.__getitem__` has 55 overrides, this might slow down the analysis considerably.
[]
Nothing else in the output. So nothing found ?
Nothing else in the output. So nothing found ?
@cactuschibre so there could be many reasons why you aren't getting any results (e.g. repo you are running pysa on is missing critical type annotations, your pyre configuration file, the repo you are running pysa on doesn't have any issues pysa can detect with existing models, etc)
I noticed you are running Python 2.7.18 and aren't using a virtual environment. Both of which aren't well-supported. Would you mind trying to run Pysa again by following the Pysa related steps for Ubuntu in the quickstart guide? It would really help with narrowing down what could be happening here to help you debug
have you solve the problem? @cosad3s
exercise1中的pyre analyze命令运行后会出现django.http.request.htpprequest.get is not part of the enviroment ,no moudel django in search path的错误
exercise1中的pyre analyze命令运行后会出现django.http.request.htpprequest.get is not part of the enviroment ,no moudel django in search path的错误
Same here. Any updates? When running "pyre analyze" command in exercise 1, I will get "django.http.request.htpprequest.get is not part of the enviroment ,no moudel django in search path".
UPDATE: was able to solve the issue: I install Django using command "pip3 install Django", then find out the Django package path using python code "os.path.abspath(django.__file__)"; finally, add the path of the Django module to the search_path of the .pyre_configuration file. Rerun the pyre analyze command, Bingo! It works! I am wondering if this is a necessary step. Why do I have to manually add the path given "../../../stub" has already added to the search_path.
@DrVoyager os.path.abspath(django.file) returns "/home/usr/.venvs/pysa/lib/python3.10/site-packages/django/init.py" , so I write the .pyre_configuration file as follows:
{ "site_package_search_strategy": "pep561", "source_directories": [ "." ], "taint_models_path": [ "./stubs/taint" ], "search_path": [ "/home/usr/.venvs/pysa/lib/pyre_check/taint", "/home/usr/.venvs/pysa/lib/python3.10/site-packages/django" ], "exclude": [ "/home/usr/.local" ] }
But it still doesn't work, what's wrong with it?
Pysa Bug
Pre-submission checklist [+] I've checked the list of common issues and mine does not appear
Bug description
The analyzis only gives error about the environment.
Reproduction steps
Expected behavior Analyzis done.
Logs
Additional context