René's URL Explorer Experiment


Title: OSError: Windows Error 6, using the click CLI argument parser package. · Issue #501 · microsoft/vscode-python · GitHub

Open Graph Title: OSError: Windows Error 6, using the click CLI argument parser package. · Issue #501 · microsoft/vscode-python

X Title: OSError: Windows Error 6, using the click CLI argument parser package. · Issue #501 · microsoft/vscode-python

Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: Win 7 Enterprise 64bit Service pack 1 Actual behavior I am using the click package version 6.7 to parse CLI arguments. When ru...

Open Graph Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: Win 7 Enterprise 64bit Service pack 1 Actual behavior I am using the click package ver...

X Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: Win 7 Enterprise 64bit Service pack 1 Actual behavior I am using the click package ver...

Opengraph URL: https://github.com/microsoft/vscode-python/issues/501

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OSError: Windows Error 6, using the click CLI argument parser package.","articleBody":"## Environment data\r\nVS Code version:  1.19.1\r\nPython Extension version:  0.9.1\r\nPython Version:   3.6.3\r\nOS and version:    Win 7 Enterprise 64bit Service pack 1\r\n\r\n## Actual behavior\r\nI am using the **click package version 6.7** to parse CLI arguments.\r\nWhen running the example code in Visual Studio Code it errors out with **OSError: Windows Error 6**.\r\n\r\n## Expected  behavior \r\nThe same code is running in a terminal window without issue.\r\n```\r\n(C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3) C:\\Users\\kurt\\Projects\\laser\r\n_control_log\u003epython click_main.py --count 3\r\nYour name: Kurt\r\nHello Kurt!\r\nHello Kurt!\r\nHello Kurt!\r\n```\r\n## Steps to reproduce:  \r\n- pip install click \r\n- In VS Code create test.py (first example on http://click.pocoo.org/5/) \r\n```\r\nimport click\r\n\r\n@click.command()\r\n@click.option('--count', default=1, help='Number of greetings.')\r\n@click.option('--name', prompt='Your name',\r\n              help='The person to greet.')\r\ndef hello(count, name):\r\n    \"\"\"Simple program that greets NAME for a total of COUNT times.\"\"\"\r\n    for x in range(count):\r\n        click.echo('Hello %s!' % name)\r\n\r\nif __name__ == '__main__':\r\n    hello()\r\n```\r\n-  press F5 twice\r\n- check debug console\r\n\r\n## Logs\r\n**Output from ```Python``` output panel** \r\n```\r\n##########Linting Output - pylint##########\r\nNo config file found, using default configuration\r\n************* Module click_main\r\n1,0,convention,C0111:Missing module docstring\r\n13,8,convention,C0103:Invalid variable name \"x\"\r\n13,8,warning,W0612:Unused variable 'x'\r\n17,4,error,E1120:No value for argument 'count' in function call\r\n17,4,error,E1120:No value for argument 'name' in function call\r\n32,-1,warning,W0105:String statement has no effect\r\n\r\n----------------------------------------------------------------------\r\n\r\nYour code has been rated at -10.00/10 (previous run: -10.00/10, +0.00)\r\n```   \r\n**Output from ```Console window``` (Help-\u003eDeveloper Tools menu)**\r\n```\r\n    hello()\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\core.py\", line 696, in main\r\n    with self.make_context(prog_name, args, **extra) as ctx:\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\core.py\", line 621, in make_context\r\n    self.parse_args(ctx, args)\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\core.py\", line 880, in parse_args\r\n    value, args = param.handle_parse_result(ctx, opts, args)\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\core.py\", line 1396, in handle_parse_result\r\n    value = self.full_process_value(ctx, value)\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\core.py\", line 1680, in full_process_value\r\n    return self.prompt_for_value(ctx)\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\core.py\", line 1655, in prompt_for_value\r\n    value_proc=lambda x: self.process_value(ctx, x))\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\termui.py\", line 89, in prompt\r\n    value = prompt_func(prompt)\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\termui.py\", line 72, in prompt_func\r\n    echo(text, nl=False, err=err)\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\utils.py\", line 260, in echo\r\n    file.flush()\r\n  File \"C:\\Users\\kurt\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\click\\_winconsole.py\", line 164, in write\r\n    raise OSError(self._get_error_message(GetLastError()))\r\nOSError: Windows error 6\r\n```\r\n**Launch.json Configuration**\r\n```    \"version\": \"0.2.0\",\r\n    \"configurations\": [\r\n        {\r\n            \"name\": \"Python\",\r\n            \"type\": \"python\",\r\n            \"request\": \"launch\",\r\n            \"stopOnEntry\": true,\r\n            \"pythonPath\": \"${config:python.pythonPath}\",\r\n            \"program\": \"${file}\",\r\n            \"cwd\": \"${workspaceFolder}\",\r\n            \"env\": {},\r\n            \"envFile\": \"${workspaceFolder}/.env\",\r\n            \"debugOptions\": [\r\n                \"RedirectOutput\"\r\n            ]\r\n        }\r\n```\r\n**Settings.json changes**\r\nUSER SETTINGS\r\n```\r\n{\r\n    \"workbench.startupEditor\": \"newUntitledFile\",\r\n    \"terminal.integrated.shell.windows\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\r\n}\r\n```\r\nWORKSPACE SETTINGS\r\n```\r\n{\r\n    \"python.pythonPath\": \"C:\\\\Users\\\\kurt\\\\AppData\\\\Local\\\\Continuum\\\\anaconda3\\\\python.exe\"\r\n}\r\n```\r\n**File handle used by click to write to the console**\r\nI could follow the chain of calls down to a certain point, but then no more.\r\n```\r\n\u003cConsoleStream\u003e\r\n    _text_stream:\u003c_io.TextIOWrapper encoding='utf-16-le'\u003e\r\n    _CHUNK_SIZE:8192\r\n    _finalizing:False\r\n    _stream:\u003c_FixupStream\u003e\r\n        buffer:\u003c_FixupStream\u003e\r\n            _stream:\u003cclick._winconsole._WindowsConsoleWriter object at 0x01B18D10\u003e\r\n            _abc_cache:\u003c_weakrefset.WeakSet object at 0x01875030\u003e\r\n            _abc_negative_cache:\u003c_weakrefset.WeakSet object at 0x01875050\u003e\r\n            _abc_negative_cache_version:36\r\n            _abc_registry:\u003c_weakrefset.WeakSet object at 0x01862FB0\u003e\r\n        closed:False\r\n        handle:828\r\n        Results View:Expanding the Results View will run the iterator\r\n    closed:False\r\n    encoding:'utf-16-le'\r\n    errors:'strict'\r\n    line_buffering:True\r\n    newlines:None\r\n    Results View:Expanding the Results View will run the iterator\r\nbuffer:\u003cvisualstudio_py_debugger.DebuggerBuffer object at 0x017A6930\u003e\r\n    buffer:\u003c_io.FileIO name='\u003cstdout\u003e' mode='wb' closefd=False\u003e\r\n        _blksize:8192\r\n        _finalizing:False\r\n        closed:False\r\n        closefd:False\r\n        mode:'wb'\r\n    name:'\u003cstdout\u003e'\r\nResults View:Expanding the Results View will run the iterator\r\n```","author":{"url":"https://github.com/killwas","@type":"Person","name":"killwas"},"datePublished":"2017-12-31T12:35:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/501/vscode-python/issues/501"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9353c9a4-95b2-d869-6308-ac27670c47f8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B58:C8AE2:7E02919:B0CDAD7:6A503E0D
html-safe-nonce3c0fc8cebf0d7dac465fd2241723b76a58fa297ce007c292fc8d7063c65fe401
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjU4OkM4QUUyOjdFMDI5MTk6QjBDREFENzo2QTUwM0UwRCIsInZpc2l0b3JfaWQiOiI3NzUxODcwOTQ4MzAzNzE1ODUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac57d365a66231331b77a842069dc778e80e0c5c4a4a5a45582e46e8e50caf0bc9
hovercard-subject-tagissue:285255366
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/microsoft/vscode-python/501/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aba694ebf85034298d1b3d44e680bf4d3d821d9156c002a0e3ebceea35183596/microsoft/vscode-python/issues/501
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aba694ebf85034298d1b3d44e680bf4d3d821d9156c002a0e3ebceea35183596/microsoft/vscode-python/issues/501
og:image:altEnvironment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: Win 7 Enterprise 64bit Service pack 1 Actual behavior I am using the click package ver...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekillwas
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-preview
go-importgithub.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id106462765
octolytics-dimension-repository_nwomicrosoft/vscode-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id49946255
octolytics-dimension-repository_parent_nwoDonJayamanne/pythonVSCode
octolytics-dimension-repository_network_root_id49946255
octolytics-dimension-repository_network_root_nwoDonJayamanne/pythonVSCode
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
released90666eaf032b7eb8975a378efe38e37f4ebb96c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/501#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F501
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%2Fmicrosoft%2Fvscode-python%2Fissues%2F501
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=microsoft%2Fvscode-python
Reloadhttps://github.com/microsoft/vscode-python/issues/501
Reloadhttps://github.com/microsoft/vscode-python/issues/501
Reloadhttps://github.com/microsoft/vscode-python/issues/501
Please reload this pagehttps://github.com/microsoft/vscode-python/issues/501
microsoft https://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
DonJayamanne/pythonVSCodehttps://github.com/DonJayamanne/pythonVSCode
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Fork 1.3k https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Star 4.6k https://github.com/login?return_to=%2Fmicrosoft%2Fvscode-python
Code https://github.com/microsoft/vscode-python
Issues 336 https://github.com/microsoft/vscode-python/issues
Pull requests 31 https://github.com/microsoft/vscode-python/pulls
Discussions https://github.com/microsoft/vscode-python/discussions
Actions https://github.com/microsoft/vscode-python/actions
Models https://github.com/microsoft/vscode-python/models
Wiki https://github.com/microsoft/vscode-python/wiki
Security and quality 2 https://github.com/microsoft/vscode-python/security
Insights https://github.com/microsoft/vscode-python/pulse
Code https://github.com/microsoft/vscode-python
Issues https://github.com/microsoft/vscode-python/issues
Pull requests https://github.com/microsoft/vscode-python/pulls
Discussions https://github.com/microsoft/vscode-python/discussions
Actions https://github.com/microsoft/vscode-python/actions
Models https://github.com/microsoft/vscode-python/models
Wiki https://github.com/microsoft/vscode-python/wiki
Security and quality https://github.com/microsoft/vscode-python/security
Insights https://github.com/microsoft/vscode-python/pulse
OSError: Windows Error 6, using the click CLI argument parser package.https://github.com/microsoft/vscode-python/issues/501#top
area-debugginghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-debugging%22
https://github.com/killwas
killwashttps://github.com/killwas
on Dec 31, 2017https://github.com/microsoft/vscode-python/issues/501#issue-285255366
http://click.pocoo.org/5/http://click.pocoo.org/5/
area-debugginghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-debugging%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.