Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Some Mac site-package locations are not treated as library by the debugger #854

Closed
karthiknadig opened this issue Sep 27, 2018 · 3 comments
Assignees
Milestone

Comments

@karthiknadig
Copy link
Member

For example, this location is not treated as library by pydevd in Python 3.7:
/Users/vsts/Library/Python/3.7/lib/python/site-packages

NOTE: To reproduce this issue with ptvsd. Remove the line in wrapper.py where we set project root (look for CMD_SET_PROJECT_ROOTS). Then run the pollowing test on Mac python 3.7

python3 -m tests -v tests.system_tests.test_web_frameworks.FlaskLaunchTests.test_with_unhandled_exceptions

For reference, these are the sys.path values from our CI environment:

Travis (linux):
/home/travis/build/karthiknadig/ptvsd/tests/resources/system_tests/test_web_frameworks/flask/launch
/home/travis/build/karthiknadig/ptvsd
/home/travis/virtualenv/python3.7-dev/lib/python37.zip
/home/travis/virtualenv/python3.7-dev/lib/python3.7
/home/travis/virtualenv/python3.7-dev/lib/python3.7/lib-dynload
/opt/python/3.7-dev/lib/python3.7
/home/travis/virtualenv/python3.7-dev/lib/python3.7/site-packages

VSTS (windows):
D:\a\1\s\tests\resources\system_tests\test_web_frameworks\flask\launch
D:\a\1\s;C:\hostedtoolcache\windows\Python\3.7.0\x64\python37.zip
C:\hostedtoolcache\windows\Python\3.7.0\x64\DLLs
C:\hostedtoolcache\windows\Python\3.7.0\x64\lib
C:\hostedtoolcache\windows\Python\3.7.0\x64
C:\hostedtoolcache\windows\Python\3.7.0\x64\lib\site-packages

VSTS (linux):
/home/vsts/work/1/s/tests/resources/system_tests/test_web_frameworks/flask/launch
/home/vsts/work/1/s
/opt/hostedtoolcache/Python/3.7.0/x64/lib/python37.zip
/opt/hostedtoolcache/Python/3.7.0/x64/lib/python3.7
/opt/hostedtoolcache/Python/3.7.0/x64/lib/python3.7/lib-dynload
/opt/hostedtoolcache/Python/3.7.0/x64/lib/python3.7/site-packages

VSTS (Mac 3.7):
/Users/vsts/agent/2.140.0/work/1/s/tests/resources/system_tests/test_web_frameworks/flask/attach
/Users/vsts/agent/2.140.0/work/1/s;/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python37.zip
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload
/Users/vsts/Library/Python/3.7/lib/python/site-packages
/usr/local/lib/python3.7/site-packages
@fabioz
Copy link
Contributor

fabioz commented Oct 2, 2018

Strange... in my tests it seems that /Users/vsts/Library/Python/3.7/lib/python/site-packages does appear as a site package for pydevd (although /usr/local/lib/python3.7/site-packages doesn't and I still didn't discover how to get this entry).

Anyways, just giving some info, will investigate further.

@karthiknadig
Copy link
Member Author

Need to verify if this is fixed

@karthiknadig karthiknadig reopened this Oct 5, 2018
@karthiknadig
Copy link
Member Author

Verified.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants