Closed StefanHeng closed 8 months ago
@StefanHeng I suspect this is due to the fact that the src
folder is not on the PYTHONPATH
. Does
sudo /Users/stefanhg/opt/anaconda3/envs/llm-ie-gen/bin/python "/Users/stefanhg/Documents/Georgia Tech/Research/LLM for IE Data Gen/LLM-Data-Gen-IE/chore/generate.py"
work? My guess is that this command would fail with the same error. For this to work, I think you should set the PYTHONPATH
to include the location of the src
folder for the command after sudo (or allow sudo to pass the PYTHONPATH
variable over to the command).
I'm able to profile from a sample script (simple for loop) to test the pipeline is working, e.g.
But when I actually use this for my use case: a script that imports a local package, I got
ModuleNotFoundError
, see below: