Open qlkwej opened 2 years ago
What version of MT are you using @qlkwej ?
Should be the latest one mariana-trench 1.0.2
@abishekvashok
Another workaround I do is to provide a dummy sapp.db
before the analysis.
And it's a bit weird, though sometimes it works, and sometimes it doesn't.
Use case 1:
sapp
immediately (using bash), on the first try it will crash.Use case 2:
sapp
immediately (using bash), on the first try it will crash.Use case 3:
sapp
immediately (using bash), on the first try it will crash.sapp.db
. So I used it before the sapp analysis. And now it works without crashing.Feel free to close the issue if you can't reproduce the issue. Thanks!
Hey @qlkwej!
Should be the latest one mariana-trench 1.0.2
That's strange since my earlier guess at what may be happening is the json output from MT you are using for sapp analyze
was created using a older version of MT, since we recently updated the MT output parser in sapp, which removed support for reading older versions of outputs from MT (see e484f216f7d95f8e33e1d1fa3586a18fa53552e3). As far as I'm aware, that should be only functional change from fb-sapp
0.5.2 to 0.5.3 related to the port
key in MT's output
But the issue you are describing seems to only happen when sapp analyze
is called the first time
cc @yuhshin-oss who likely has the most context on this
Hi! This is a problem that I had also when I tried to use Mariana Trench with version fb_sapp-0.5.4.dist-info. The solution was to downgrade sapp: pip uninstall fb-sapp pip install -Iv fb-sapp==0.5.2
Still the same issue, if I try the fix suggested by @dianavintila, I get :
ImportError: cannot import name 'GraphQLResolveInfo' from 'graphql' (/home/hukad/.venvs/mariana-trench/lib/python3.8/site-packages/graphql/__init__.py)
When I install
fb-sapp
from Pypi and analyze the output it returns the following error.The temporary solution is to use the previous version
pip install fb-sapp==0.5.2
Instead of using the latest version
pip install fb-sapp==0.5.3
released on Aug 19, 2022