You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used absolute imports in different packages of my Python project. However, when I use pyre_dump(), I notice that the call graph construction fails and it cannot find the actually called functions. code directory:
.
|── app
│ |── api
│ │ |── risk.py
│ |── model
│ │ |── request.py
code of file app/api/risk.py:
frommodel.risk_requestimportRiskRequest
when I change the import as below, pyre will work fine
from ..model.risk_requestimportRiskRequest
How can I resolve this issue?
The text was updated successfully, but these errors were encountered:
If you expect to be able to import model.risk_request directly, then the search path you need is probably '/absolute/path/to/my/project/app' rather than '/absolute/path/to/my/project'
Hi,
After setting the environment variable as:
I used absolute imports in different packages of my Python project. However, when I use pyre_dump(), I notice that the call graph construction fails and it cannot find the actually called functions. code directory:
.
|── app
│ |── api
│ │ |── risk.py
│ |── model
│ │ |── request.py
code of file app/api/risk.py:
when I change the import as below, pyre will work fine
How can I resolve this issue?
The text was updated successfully, but these errors were encountered: