The Wayback Machine - https://web.archive.org/web/20201110083154/https://github.com/github/codeql-cli-binaries/issues/19
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: modules from site-packages are not extracted #19

Open
ggolawski opened this issue Feb 14, 2020 · 2 comments
Open

Python: modules from site-packages are not extracted #19

ggolawski opened this issue Feb 14, 2020 · 2 comments
Assignees
Labels
CLI

Comments

@ggolawski
Copy link

@ggolawski ggolawski commented Feb 14, 2020

When I import a built-in module (e.g. import os) in my .py file and run codeql database create codeql_db --language=python, the module is extracted and included in the database:

$ codeql database create codeql_db --language=python
[...]
[2020-02-14 23:39:12] [build] [INFO] [3] Extracted file /usr/lib64/python3.7/os.py in 717ms
[...]

But when I import a non built-in module (e.g. import flask), it's not extracted.

Is that correct behavior?

@tausbn
Copy link

@tausbn tausbn commented Feb 17, 2020

Is flask installed on your machine?
(If yes, are you running codeql from within a virtual environment?)

@tausbn tausbn self-assigned this Feb 17, 2020
@ggolawski
Copy link
Author

@ggolawski ggolawski commented Feb 17, 2020

Yes, it's installed.
And it doesn't matter if I run codeql from virtualenv or not (flask is installed globally and in virtualenv). The same happens for any non built-in module, flask was just an example.

@adityasharad adityasharad added the CLI label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.