René's URL Explorer Experiment


Title: Problem executing cz commit in prepare-commit-msg hook on Mac · Issue #1386 · commitizen-tools/commitizen · GitHub

Open Graph Title: Problem executing cz commit in prepare-commit-msg hook on Mac · Issue #1386 · commitizen-tools/commitizen

X Title: Problem executing cz commit in prepare-commit-msg hook on Mac · Issue #1386 · commitizen-tools/commitizen

Description: Description I have a hook that attempts to redirect to commitzen like so exec < /dev/tty && cz commit || true This works on linux. Unfortunately at work we are on Mac 👎 This is the error I get File "/opt/homebrew/bin/cz", line 8, in

Open Graph Description: Description I have a hook that attempts to redirect to commitzen like so exec < /dev/tty && cz commit || true This works on linux. Unfortunately at work we are on Mac 👎 This is the error I get File...

X Description: Description I have a hook that attempts to redirect to commitzen like so exec < /dev/tty && cz commit || true This works on linux. Unfortunately at work we are on Mac 👎 This is the error...

Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1386

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem executing cz commit in prepare-commit-msg hook on Mac","articleBody":"### Description\n\nI have a hook that attempts to redirect to commitzen like so\n\n`exec \u003c /dev/tty \u0026\u0026 cz commit || true`\n\nThis works on linux. Unfortunately at work we are on Mac 👎 \n\nThis is the error I get\n\n`File \"/opt/homebrew/bin/cz\", line 8, in \u003cmodule\u003e\n    sys.exit(main())\n             ~~~~^^\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/commitizen/cli.py\", line 656, in main\n    args.func(conf, arguments)()\n    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/commitizen/commands/commit.py\", line 127, in __call__\n    m = self.prompt_commit_questions()\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/commitizen/commands/commit.py\", line 58, in prompt_commit_questions\n    answers = questionary.prompt(questions, style=cz.style)\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/questionary/prompt.py\", line 78, in prompt\n    return unsafe_prompt(questions, answers, patch_stdout, true_color, **kwargs)\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/questionary/prompt.py\", line 221, in unsafe_prompt\n    answer = question.unsafe_ask(patch_stdout)\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/questionary/question.py\", line 89, in unsafe_ask\n    return self.application.run()\n           ~~~~~~~~~~~~~~~~~~~~^^\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/prompt_toolkit/application/application.py\", line 1002, in run\n    return asyncio.run(coro)\n           ~~~~~~~~~~~^^^^^^\n  File \"/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/runners.py\", line 195, in run\n    return runner.run(main)\n           ~~~~~~~~~~^^^^^^\n  File \"/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/runners.py\", line 118, in run\n    return self._loop.run_until_complete(task)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^\n  File \"/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/base_events.py\", line 725, in run_until_complete\n    return future.result()\n           ~~~~~~~~~~~~~^^\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/prompt_toolkit/application/application.py\", line 886, in run_async\n    return await _run_async(f)\n           ^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/prompt_toolkit/application/application.py\", line 734, in _run_async\n    with self.input.raw_mode(), self.input.attach(\n                                ~~~~~~~~~~~~~~~~~^\n        read_from_input_in_context\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^\n    ), attach_winch_signal_handler(self._on_resize):\n    ^\n  File \"/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/contextlib.py\", line 141, in __enter__\n    return next(self.gen)\n  File \"/opt/homebrew/Cellar/commitizen/4.5.1/libexec/lib/python3.13/site-packages/prompt_toolkit/input/vt100.py\", line 165, in _attached_input\n    loop.add_reader(fd, callback_wrapper)\n    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/selector_events.py\", line 347, in add_reader\n    self._add_reader(fd, callback, *args)\n    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/selector_events.py\", line 279, in _add_reader\n    self._selector.register(fd, selectors.EVENT_READ,\n    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n                            (handle, None))\n                            ^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/selectors.py\", line 505, in register\n    self._selector.control([kev], 0, 0)\n    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^\nOSError: [Errno 22] Invalid argument`\n\nI am not sure what the Invalid argument is given that no arguments are being passed to the command.\n\n### Steps to reproduce\n\n1. Buy a Mac\n2. Create a github prepare-commit-msg hook in your project\n3. Git commit\n\n### Current behavior\n\nStack trace\n\n### Desired behavior\n\nWorks\n\n### Screenshots\n\n_No response_\n\n### Environment\n\n- commitizen version : 4.5.1","author":{"url":"https://github.com/suityou01","@type":"Person","name":"suityou01"},"datePublished":"2025-04-15T10:06:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1386/commitizen/issues/1386"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ad615c04-acad-7eeb-3b6a-6b7601c7317a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD430:2DB422:B44E00:F6FF70:6A4DC68B
html-safe-nonce45a90f62ac79fee211a87c7f2e39f1b10cd3e5de41c95224163a99eb46ad62be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDMwOjJEQjQyMjpCNDRFMDA6RjZGRjcwOjZBNERDNjhCIiwidmlzaXRvcl9pZCI6IjY5MDM5ODE2ODg5NjA2OTc5OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6f61d13c22d6e600b7e9f86407cd821a440859e331e683d98c653ec570949380
hovercard-subject-tagissue:2995898975
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/commitizen-tools/commitizen/1386/issue_layout
twitter:imagehttps://opengraph.githubassets.com/681422f272d27cf433a2b20efdcc001d8572b3b8f64bc00edb0424c70fc3eb8a/commitizen-tools/commitizen/issues/1386
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/681422f272d27cf433a2b20efdcc001d8572b3b8f64bc00edb0424c70fc3eb8a/commitizen-tools/commitizen/issues/1386
og:image:altDescription I have a hook that attempts to redirect to commitzen like so exec < /dev/tty && cz commit || true This works on linux. Unfortunately at work we are on Mac 👎 This is the error I get File...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesuityou01
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
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
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/1386#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1386
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1386
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=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1386
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1386
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1386
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1386
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1386
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 343 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Problem executing cz commit in prepare-commit-msg hook on Machttps://github.com/commitizen-tools/commitizen/issues/1386#top
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
https://github.com/suityou01
suityou01https://github.com/suityou01
on Apr 15, 2025https://github.com/commitizen-tools/commitizen/issues/1386#issue-2995898975
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%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.