big-fall-51153
05/27/2021, 2:04 PMmanage.py running under the run without chroot solutionbig-fall-51153
05/27/2021, 2:05 PMrunserver command isn't - I'm seeing import errors that I don't see under other operations, even manage.py shellbig-fall-51153
05/27/2021, 2:06 PMbig-fall-51153
05/27/2021, 2:08 PMbig-fall-51153
05/27/2021, 2:09 PMbig-fall-51153
05/27/2021, 2:10 PMmanage.py, these commands illustrate the difference in behavior I'm seeing:
λ › ./pants django-run tests:manage -- check odl/ol-django nl/pants-t2
LOAD
RUN
System check identified no issues (0 silenced).
λ › ./pants django-run tests:manage -- runserver odl/ol-django nl/pants-t2
LOAD
RUN
LOAD
RUNbig-fall-51153
05/27/2021, 2:12 PMbig-fall-51153
05/27/2021, 2:12 PMbig-fall-51153
05/27/2021, 2:13 PMλ › ./pants django-run tests:manage -- runserver --noreload odl/ol-django nl/pants-t2
LOAD
RUN
Performing system checks...big-fall-51153
05/27/2021, 2:13 PMPYTHONPATH being blank for the second process, so it's not inheriting it from pantsbig-fall-51153
05/27/2021, 2:14 PMexecution_mode="venv" to pex_binary for manage.pybig-fall-51153
05/27/2021, 2:25 PMvenv fixed, was getting an ImportError for manage.py , probably because of this same PYTOHNPATH issuebusy-vase-39202
05/27/2021, 2:35 PMbig-fall-51153
05/27/2021, 2:39 PMbig-fall-51153
05/27/2021, 6:03 PMbig-fall-51153
05/27/2021, 6:06 PMsys.path in manage.py, i'm trying to debug it a bit to figure out why I need to do thisbig-fall-51153
05/27/2021, 6:08 PMvenv mode, then it can't find the manage.py package.big-fall-51153
05/27/2021, 6:09 PMsys.path for the forked processbig-fall-51153
05/27/2021, 6:11 PMprint("=============================")
print(sys.path)
for path in os.environ.get("PEX_EXTRA_SYS_PATH", "").split(":"):
if path not in sys.path:
sys.path.append(path)
print(sys.path)big-fall-51153
05/27/2021, 6:13 PMsrc/ back in, my app will initialize.big-fall-51153
05/27/2021, 6:15 PMhappy-kitchen-89482
05/28/2021, 1:12 AMhappy-kitchen-89482
05/28/2021, 1:12 AMhappy-kitchen-89482
05/28/2021, 1:12 AMbig-fall-51153
05/28/2021, 1:28 AMbig-fall-51153
05/28/2021, 1:29 AMhappy-kitchen-89482
05/28/2021, 6:23 PMhappy-kitchen-89482
05/28/2021, 6:24 PMbig-fall-51153
05/28/2021, 6:30 PMsys.path inline is doable