René's URL Explorer Experiment


Title: CLI `_echo` doesn't work without `import rich` for non-String reports · Issue #1618 · python-kasa/python-kasa · GitHub

Open Graph Title: CLI `_echo` doesn't work without `import rich` for non-String reports · Issue #1618 · python-kasa/python-kasa

X Title: CLI `_echo` doesn't work without `import rich` for non-String reports · Issue #1618 · python-kasa/python-kasa

Description: For example this CLI command will throw an exception is rich isn't installed, although it works fine otherwise: kasa --host 192.168.1.168 --username xxx --password xxx feature check_latest_firmware Discovering device 192.168.1.168 for 10...

Open Graph Description: For example this CLI command will throw an exception is rich isn't installed, although it works fine otherwise: kasa --host 192.168.1.168 --username xxx --password xxx feature check_latest_firmware...

X Description: For example this CLI command will throw an exception is rich isn't installed, although it works fine otherwise: kasa --host 192.168.1.168 --username xxx --password xxx feature check_latest_firm...

Opengraph URL: https://github.com/python-kasa/python-kasa/issues/1618

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLI `_echo` doesn't work without `import rich` for non-String reports","articleBody":"For example this CLI command will throw an exception is `rich` isn't installed, although it works fine otherwise:\n```\nkasa --host 192.168.1.168 --username xxx --password xxx feature check_latest_firmware\nDiscovering device 192.168.1.168 for 10 seconds\nExecuting action check_latest_firmware\nRaised error: expected string or bytes-like object, got 'UpdateInfo'\nRun with --debug enabled to see stacktrace\n```\n\nthe reason for this error reported by `--debug`:\n```\n[...]\nRaised error: expected string or bytes-like object, got 'UpdateInfo'\nTraceback (most recent call last):\n[...]\nFile \"/home/mash/.local/share/uv/tools/python-kasa/lib/python3.13/site-packages/kasa/cli/feature.py\", line 125, in feature\n    echo(response)\n    ~~~~^^^^^^^^^^\n  File \"/home/mash/.local/share/uv/tools/python-kasa/lib/python3.13/site-packages/kasa/cli/common.py\", line 57, in echo\n    _echo(*args, **kwargs)\n    ~~~~~^^^^^^^^^^^^^^^^^\n  File \"/home/mash/.local/share/uv/tools/python-kasa/lib/python3.13/site-packages/kasa/cli/common.py\", line 45, in wrapper\n    message = rich_formatting.sub(\"\", message)\nTypeError: expected string or bytes-like object, got 'UpdateInfo'\n```\n\nThe regex substitution used in this replacement for `rich`s `print()` function only works for strings.\n\nMore complex objects need to be preprocessed by `repr()` in advance.  ","author":{"url":"https://github.com/mash-graz","@type":"Person","name":"mash-graz"},"datePublished":"2025-11-29T05:37:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1618/python-kasa/issues/1618"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fe06cccd-42ef-0667-a0c6-2a812c513cd0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD9A0:1271F3:B7D367:F16471:69829775
html-safe-noncecb8d26a6a1d9a1474343b5fdeb93d5a80cd06f13ecc38cba0e83a954cc347a20
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUEwOjEyNzFGMzpCN0QzNjc6RjE2NDcxOjY5ODI5Nzc1IiwidmlzaXRvcl9pZCI6IjQzNjQ3NTkzNjk1NzM4OTgxMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaceda35f4c1cde406a876c6ac48b56193a9a57b5234756c2636852aac85ca2e0e2
hovercard-subject-tagissue:3676379105
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-kasa/python-kasa/1618/issue_layout
twitter:imagehttps://opengraph.githubassets.com/902919eda4d6f6d98628e308e8bad9e0c7dc923a77dcec7ded02ea483d21c9a3/python-kasa/python-kasa/issues/1618
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/902919eda4d6f6d98628e308e8bad9e0c7dc923a77dcec7ded02ea483d21c9a3/python-kasa/python-kasa/issues/1618
og:image:altFor example this CLI command will throw an exception is rich isn't installed, although it works fine otherwise: kasa --host 192.168.1.168 --username xxx --password xxx feature check_latest_firmware...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemash-graz
hostnamegithub.com
expected-hostnamegithub.com
None2ff31560a6c13935e1216cfe10e9bfb1563f27204463a78984663afdffa4cead
turbo-cache-controlno-preview
go-importgithub.com/python-kasa/python-kasa git https://github.com/python-kasa/python-kasa.git
octolytics-dimension-user_id57733869
octolytics-dimension-user_loginpython-kasa
octolytics-dimension-repository_id221571611
octolytics-dimension-repository_nwopython-kasa/python-kasa
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id221571611
octolytics-dimension-repository_network_root_nwopython-kasa/python-kasa
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
releaseceb8a7a2995efbfdc2e609df19dca8f6a7f02afd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1618#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-kasa%2Fpython-kasa%2Fissues%2F1618
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-kasa%2Fpython-kasa%2Fissues%2F1618
Sign up https://patch-diff.githubusercontent.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-kasa%2Fpython-kasa
Reloadhttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1618
Reloadhttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1618
Reloadhttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1618
python-kasa https://patch-diff.githubusercontent.com/python-kasa
python-kasahttps://patch-diff.githubusercontent.com/python-kasa/python-kasa
Please reload this pagehttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1618
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Fork 246 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Star 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Code https://patch-diff.githubusercontent.com/python-kasa/python-kasa
Issues 51 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues
Pull requests 36 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulls
Discussions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/discussions
Actions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/actions
Projects 0 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/projects
Security 0 https://patch-diff.githubusercontent.com/python-kasa/python-kasa/security
Insights https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulse
Code https://patch-diff.githubusercontent.com/python-kasa/python-kasa
Issues https://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues
Pull requests https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulls
Discussions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/discussions
Actions https://patch-diff.githubusercontent.com/python-kasa/python-kasa/actions
Projects https://patch-diff.githubusercontent.com/python-kasa/python-kasa/projects
Security https://patch-diff.githubusercontent.com/python-kasa/python-kasa/security
Insights https://patch-diff.githubusercontent.com/python-kasa/python-kasa/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-kasa/python-kasa/issues/1618
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-kasa/python-kasa/issues/1618
#1619https://github.com/python-kasa/python-kasa/pull/1619
mash-graz/python-kasa#1https://github.com/mash-graz/python-kasa/pull/1
CLI _echo doesn't work without import rich for non-String reportshttps://patch-diff.githubusercontent.com/python-kasa/python-kasa/issues/1618#top
#1619https://github.com/python-kasa/python-kasa/pull/1619
mash-graz/python-kasa#1https://github.com/mash-graz/python-kasa/pull/1
bugSomething isn't workinghttps://github.com/python-kasa/python-kasa/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/mash-graz
https://github.com/mash-graz
mash-grazhttps://github.com/mash-graz
on Nov 29, 2025https://github.com/python-kasa/python-kasa/issues/1618#issue-3676379105
bugSomething isn't workinghttps://github.com/python-kasa/python-kasa/issues?q=state%3Aopen%20label%3A%22bug%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.