René's URL Explorer Experiment


Title: pytype conformance tests crash if no `python3.11` executable is in `PATH` · Issue #1758 · python/typing · GitHub

Open Graph Title: pytype conformance tests crash if no `python3.11` executable is in `PATH` · Issue #1758 · python/typing

X Title: pytype conformance tests crash if no `python3.11` executable is in `PATH` · Issue #1758 · python/typing

Description: I attempted to run the conformance tests locally using Python 3.12, following the instructions given in https://github.com/python/typing/blob/main/conformance/README.md#running-the-conformance-test-tool. The mypy, pyright and pyre tests ...

Open Graph Description: I attempted to run the conformance tests locally using Python 3.12, following the instructions given in https://github.com/python/typing/blob/main/conformance/README.md#running-the-conformance-test...

X Description: I attempted to run the conformance tests locally using Python 3.12, following the instructions given in https://github.com/python/typing/blob/main/conformance/README.md#running-the-conformance-test...

Opengraph URL: https://github.com/python/typing/issues/1758

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pytype conformance tests crash if no `python3.11` executable is in `PATH`","articleBody":"I attempted to run the conformance tests locally using Python 3.12, following the instructions given in https://github.com/python/typing/blob/main/conformance/README.md#running-the-conformance-test-tool. The mypy, pyright and pyre tests all ran, but the pytype tests crashed with the following traceback:\r\n\r\n```pytb\r\nRunning tests for pytype\r\nTraceback (most recent call last):\r\n  File \"/Users/alexw/dev/typing/conformance/.venv/lib/python3.12/site-packages/pytype/config.py\", line 704, in _store_python_version\r\n    self.output_options.python_exe = compiler.get_python_executable(version)\r\n                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Users/alexw/dev/typing/conformance/.venv/lib/python3.12/site-packages/pytype/pyc/compiler.py\", line 135, in get_python_executable\r\n    raise PythonNotFoundError()\r\npytype.pyc.compiler.PythonNotFoundError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/alexw/dev/typing/conformance/src/main.py\", line 258, in \u003cmodule>\r\n    main()\r\n  File \"/Users/alexw/dev/typing/conformance/src/main.py\", line 251, in main\r\n    run_tests(root_dir, type_checker, test_cases, skip_timing=options.skip_timing)\r\n  File \"/Users/alexw/dev/typing/conformance/src/main.py\", line 30, in run_tests\r\n    tests_output = type_checker.run_tests([file.name for file in test_cases])\r\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Users/alexw/dev/typing/conformance/src/type_checker.py\", line 287, in run_tests\r\n    options = pytype_config.Options.create(python_version=(3, 11), quick=True)\r\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Users/alexw/dev/typing/conformance/.venv/lib/python3.12/site-packages/pytype/config.py\", line 107, in create\r\n    return cls(options)\r\n           ^^^^^^^^^^^^\r\n  File \"/Users/alexw/dev/typing/conformance/.venv/lib/python3.12/site-packages/pytype/config.py\", line 88, in __init__\r\n    Postprocessor(names, opt_map, options, self).process()\r\n  File \"/Users/alexw/dev/typing/conformance/.venv/lib/python3.12/site-packages/pytype/config.py\", line 587, in process\r\n    node.processor(value)\r\n  File \"/Users/alexw/dev/typing/conformance/.venv/lib/python3.12/site-packages/pytype/config.py\", line 706, in _store_python_version\r\n    self.error(\"Need a valid python%d.%d executable in $PATH\" % version)\r\n  File \"/Users/alexw/dev/typing/conformance/.venv/lib/python3.12/site-packages/pytype/config.py\", line 594, in error\r\n    raise PostprocessingError(message)\r\npytype.config.PostprocessingError: Need a valid python3.11 executable in $PATH\r\n```\r\n\r\nIt sounded like pytype wanted Python 3.11, so I tried again, this time creating an environment with Python 3.11. But I didn't get nearly as far:\r\n\r\n```pytb\r\n(311-env) ~/dev/typing/conformance/src (type-type)⚡ % python main.py\r\nTraceback (most recent call last):\r\n  File \"/Users/alexw/dev/typing/conformance/src/main.py\", line 258, in \u003cmodule>\r\n    main()\r\n  File \"/Users/alexw/dev/typing/conformance/src/main.py\", line 230, in main\r\n    assert sys.version_info >= (3, 12)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nAssertionError\r\n```","author":{"url":"https://github.com/AlexWaygood","@type":"Person","name":"AlexWaygood"},"datePublished":"2024-06-02T17:01:41Z","url":"https://github.com/python/typing/issues/1758"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:270690d7-cc57-b921-b12b-7a86c81102e6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC9D6:3DAD59:220C92D:2D2244A:6B004C01
html-safe-nonce487ba33d26e74ffcfd2ac6677c74c0c944586e8f00c43a5a30551ba820aecdfe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUQ2OjNEQUQ1OToyMjBDOTJEOjJEMjI0NEE6NkIwMDRDMDEiLCJ2aXNpdG9yX2lkIjoiNTUwNTAzMDY5MjI4MDQ4NjkxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca8fc81d021fe3a6c6ace2a2183d9df4a45dd510f1e055d76fcf044ec68e39923
hovercard-subject-tagissue:2329763545
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/python/typing/1758/issue_layout
twitter:imagehttps://opengraph.githubassets.com/21cc8ffe6809269b68510529069f45c87ef92187e97c1866ea0129be8db6ac1a/python/typing/issues/1758
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/21cc8ffe6809269b68510529069f45c87ef92187e97c1866ea0129be8db6ac1a/python/typing/issues/1758
og:image:altI attempted to run the conformance tests locally using Python 3.12, following the instructions given in https://github.com/python/typing/blob/main/conformance/README.md#running-the-conformance-test...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
turbo-cache-controlno-preview
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
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
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typing/issues/1758#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F1758
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F1758
Sign uphttps://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=python%2Ftyping
Reloadhttps://github.com/python/typing/issues/1758
Reloadhttps://github.com/python/typing/issues/1758
Reloadhttps://github.com/python/typing/issues/1758
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
https://github.com/python/typing
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/1758
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/1758
pytype conformance tests crash if no python3.11 executable is in PATHhttps://github.com/python/typing/issues/1758#top
topic: conformance testsIssues with the conformance test suitehttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20conformance%20tests%22
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Jun 2, 2024https://github.com/python/typing/issues/1758#issue-2329763545
https://github.com/python/typing/blob/main/conformance/README.md#running-the-conformance-test-toolhttps://github.com/python/typing/blob/main/conformance/README.md#running-the-conformance-test-tool
AlexWaygoodhttps://github.com/AlexWaygood
topic: conformance testsIssues with the conformance test suitehttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20conformance%20tests%22
on Jun 2, 2024https://github.com/python/typing/issues/1758#event-13012441946
https://github.com/erictraut
erictrauthttps://github.com/erictraut
on Jun 2, 2024https://github.com/python/typing/issues/1758#issuecomment-2143952760
@h-joohttps://github.com/h-joo
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jun 2, 2024https://github.com/python/typing/issues/1758#issuecomment-2144013618
python/typeshed#11958https://github.com/python/typeshed/issues/11958
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Jun 2, 2024https://github.com/python/typing/issues/1758#issuecomment-2144036083
https://github.com/h-joo
h-joohttps://github.com/h-joo
on Jun 3, 2024https://github.com/python/typing/issues/1758#issuecomment-2145664654
@erictrauthttps://github.com/erictraut
@h-joohttps://github.com/h-joo
gLinuxhttps://en.wikipedia.org/wiki/GLinux
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Jun 5, 2024https://github.com/python/typing/issues/1758#issuecomment-2149556421
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Jun 24, 2025https://github.com/python/typing/issues/1758#issuecomment-3002046638
#2010https://github.com/python/typing/pull/2010
AlexWaygoodhttps://github.com/AlexWaygood
not plannedhttps://github.com/python/typing/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jun 24, 2025https://github.com/python/typing/issues/1758#event-18303537688
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typing/issues/1758
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typing/issues/1758
topic: conformance testsIssues with the conformance test suitehttps://github.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20conformance%20tests%22
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.