Closed BobbyTRU closed 2 years ago
Thanks for the report. Our Python engineers suspect you're hitting a known Python setup problem, but the strategy our code employs to detect it might be backfiring in your environment.
Can you try seeing if it makes any difference to set the environment variable CODEQL_EXTRACTOR_PYTHON_ENABLE_SITE
to some nonempty value before starting codeql
?
Just to confirm, does py -3
work on your command-line? (spawning a Python 3 interpreter)
This is an option when installing Python on windows, and is currently required to make CodeQL work locally
If py -3
does work, one possible explanation is that the extractor thinks this should be analyzed as Python 2 code, but that a Python 2 executable is not available. Could you try setting LGTM_PYTHON_SETUP_VERSION=3
in your environment?
py -3
did not work on my command-line and after installing it, the database creation works.
Thanks for the help :D
Hello there I have been trying to create a database for my python code but i keep getting an error. Log files:
Tried creating the database inside and outside of the source folder but it did not make a difference. For testing purposes I tried creating a db for a javascript file and it worked without any issues.
pip --version = 22.0.4 python --version = 3.10.5 virtualenv --version = 20.14.1
OS is Windows 11
Python code is just a simple "print("henlo")".