Title: "/usr/bin/python3: No module named virtualenv" and "'python' not found," · Issue #615 · github/codeql-action · GitHub
Open Graph Title: "/usr/bin/python3: No module named virtualenv" and "'python' not found," · Issue #615 · github/codeql-action
X Title: "/usr/bin/python3: No module named virtualenv" and "'python' not found," · Issue #615 · github/codeql-action
Description: Problem description: I have only changed the default workflow from the runs-on: ubuntu-latest to runs-on: self-hosted (only Python has been detected) and get the exception /usr/bin/python3: No module named virtualenv for the init action....
Open Graph Description: Problem description: I have only changed the default workflow from the runs-on: ubuntu-latest to runs-on: self-hosted (only Python has been detected) and get the exception /usr/bin/python3: No modu...
X Description: Problem description: I have only changed the default workflow from the runs-on: ubuntu-latest to runs-on: self-hosted (only Python has been detected) and get the exception /usr/bin/python3: No modu...
Opengraph URL: https://github.com/github/codeql-action/issues/615
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"/usr/bin/python3: No module named virtualenv\" and \"'python' not found,\"","articleBody":"## Problem description:\r\n\r\nI have only changed the default workflow from the `runs-on: ubuntu-latest` to `runs-on: self-hosted` (only Python has been detected) and get the exception `/usr/bin/python3: No module named virtualenv` for the `init` action.\r\n\r\nIn the `analyze` action I got the error `[build-stdout] ERROR: 'python' not found, it should be available when running 'which python' in your shell`.\r\n\r\nI am already successfully tested my Python application using this runner.\r\n\r\n## Suggestion\r\n\r\nI suppose all the problem occurred because of first of all not installing `python` by the action. But why it cannot be installed if the python is analyzed?\r\n\r\nHowever, there are other minor problems:\r\n1. In `init` `python3` is called and it is worked but `analyze` calls `python`\r\n2. `init` does not install `virtualenv` by itself somewhy\r\n3. If you are not going to setup `python` automatically then replace from\r\n```\r\n# For most projects, this workflow file will not need changing; you simply need\r\n# to commit it to your repository.\r\n#\r\n# You may wish to alter this file to override the set of languages analyzed,\r\n# or to provide custom queries or build logic.\r\n#\r\n```\r\nto\r\n```\r\n# For most projects except on python, this workflow file will not need changing; you simply need\r\n# to commit it to your repository.\r\n#\r\n# You may wish to alter this file to override the set of languages analyzed,\r\n# or to provide custom queries or build logic.\r\n#\r\n# For the Python language you need to add the setup-python action manually.\r\n#\r\n```\r\n\r\n## Used workflow\r\n\r\n```\r\n# For most projects, this workflow file will not need changing; you simply need\r\n# to commit it to your repository.\r\n#\r\n# You may wish to alter this file to override the set of languages analyzed,\r\n# or to provide custom queries or build logic.\r\n#\r\n# ******** NOTE ********\r\n# We have attempted to detect the languages in your repository. Please check\r\n# the `language` matrix defined below to confirm you have the correct set of\r\n# supported CodeQL languages.\r\n#\r\nname: \"CodeQL\"\r\n\r\non:\r\n push:\r\n branches: [ main ]\r\n pull_request:\r\n # The branches below must be a subset of the branches above\r\n branches: [ main ]\r\n schedule:\r\n - cron: '41 20 * * 6'\r\n\r\njobs:\r\n analyze:\r\n name: Analyze\r\n runs-on: self-hosted\r\n permissions:\r\n actions: read\r\n contents: read\r\n security-events: write\r\n\r\n strategy:\r\n fail-fast: false\r\n matrix:\r\n language: [ 'python' ]\r\n # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]\r\n # Learn more:\r\n # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed\r\n\r\n steps:\r\n - name: Checkout repository\r\n uses: actions/checkout@v2\r\n\r\n # Initializes the CodeQL tools for scanning.\r\n - name: Initialize CodeQL\r\n uses: github/codeql-action/init@v1\r\n with:\r\n languages: ${{ matrix.language }}\r\n # If you wish to specify custom queries, you can do so here or in a config file.\r\n # By default, queries listed here will override any specified in a config file.\r\n # Prefix the list here with \"+\" to use these queries and those in the config file.\r\n # queries: ./path/to/local/query, your-org/your-repo/queries@main\r\n\r\n # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).\r\n # If this step fails, then you should remove it and run the build manually (see below)\r\n - name: Autobuild\r\n uses: github/codeql-action/autobuild@v1\r\n\r\n # ℹ️ Command-line programs to run using the OS shell.\r\n # 📚 https://git.io/JvXDl\r\n\r\n # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines\r\n # and modify them (or add more) to build your code if your project\r\n # uses a compiled language\r\n\r\n #- run: |\r\n # make bootstrap\r\n # make release\r\n\r\n - name: Perform CodeQL Analysis\r\n uses: github/codeql-action/analyze@v1\r\n```","author":{"url":"https://github.com/NickVeld","@type":"Person","name":"NickVeld"},"datePublished":"2021-07-12T07:19:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/615/codeql-action/issues/615"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fed57d7b-d41b-796e-1c20-487c3cf345d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D97C:18AAA8:144575A:1BD24BF:6A53D9A5 |
| html-safe-nonce | 88581ec807e4233c73946f46343f592c83a9bfd2302e2127c192e4f232b86846 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTdDOjE4QUFBODoxNDQ1NzVBOjFCRDI0QkY6NkE1M0Q5QTUiLCJ2aXNpdG9yX2lkIjoiNTgxNzQ4NDUxNTM0MTY2NDM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 79a57b2bd01d4b1770038ce484f8b9f039429493bcdcc0e69fa7bc40f3684a54 |
| hovercard-subject-tag | issue:941750620 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/615/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a970e3a30e7ea7164308810c4c0b761611318a6ee6d4e57f117d53e6a0ac5cb/github/codeql-action/issues/615 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a970e3a30e7ea7164308810c4c0b761611318a6ee6d4e57f117d53e6a0ac5cb/github/codeql-action/issues/615 |
| og:image:alt | Problem description: I have only changed the default workflow from the runs-on: ubuntu-latest to runs-on: self-hosted (only Python has been detected) and get the exception /usr/bin/python3: No modu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NickVeld |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql-action git https://github.com/github/codeql-action.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 259445878 |
| octolytics-dimension-repository_nwo | github/codeql-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 259445878 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-action |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width