René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fed57d7b-d41b-796e-1c20-487c3cf345d8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD97C:18AAA8:144575A:1BD24BF:6A53D9A5
html-safe-nonce88581ec807e4233c73946f46343f592c83a9bfd2302e2127c192e4f232b86846
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTdDOjE4QUFBODoxNDQ1NzVBOjFCRDI0QkY6NkE1M0Q5QTUiLCJ2aXNpdG9yX2lkIjoiNTgxNzQ4NDUxNTM0MTY2NDM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac79a57b2bd01d4b1770038ce484f8b9f039429493bcdcc0e69fa7bc40f3684a54
hovercard-subject-tagissue:941750620
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/615/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7a970e3a30e7ea7164308810c4c0b761611318a6ee6d4e57f117d53e6a0ac5cb/github/codeql-action/issues/615
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7a970e3a30e7ea7164308810c4c0b761611318a6ee6d4e57f117d53e6a0ac5cb/github/codeql-action/issues/615
og:image:altProblem 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNickVeld
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/issues/615#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fissues%2F615
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fissues%2F615
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/issues/615
Reloadhttps://github.com/github/codeql-action/issues/615
Reloadhttps://github.com/github/codeql-action/issues/615
Please reload this pagehttps://github.com/github/codeql-action/issues/615
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 472 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.6k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 156 https://github.com/github/codeql-action/issues
Pull requests 24 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality 2 https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Code https://github.com/github/codeql-action
Issues https://github.com/github/codeql-action/issues
Pull requests https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
"/usr/bin/python3: No module named virtualenv" and "'python' not found,"https://github.com/github/codeql-action/issues/615#top
https://github.com/edoardopirovano
https://github.com/NickVeld
NickVeldhttps://github.com/NickVeld
on Jul 12, 2021https://github.com/github/codeql-action/issues/615#issue-941750620
edoardopirovanohttps://github.com/edoardopirovano
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.