Title: Do not attempt to detach a kernel driver under FreeBSD · Issue #67 · python-ivi/python-usbtmc · GitHub
Open Graph Title: Do not attempt to detach a kernel driver under FreeBSD · Issue #67 · python-ivi/python-usbtmc
X Title: Do not attempt to detach a kernel driver under FreeBSD · Issue #67 · python-ivi/python-usbtmc
Description: Under FreeBSD, the original code throws an exception: Could not detach kernel driver from interface(0): [Errno None] b'Unknown error' Kernel driver detaching is not implemented (and not necessary) under FreeBSD. The following patch solve...
Open Graph Description: Under FreeBSD, the original code throws an exception: Could not detach kernel driver from interface(0): [Errno None] b'Unknown error' Kernel driver detaching is not implemented (and not necessary) ...
X Description: Under FreeBSD, the original code throws an exception: Could not detach kernel driver from interface(0): [Errno None] b'Unknown error' Kernel driver detaching is not implemented (and not nec...
Opengraph URL: https://github.com/python-ivi/python-usbtmc/issues/67
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Do not attempt to detach a kernel driver under FreeBSD","articleBody":"Under FreeBSD, the original code throws an exception:\n```\nCould not detach kernel driver from interface(0): [Errno None] b'Unknown error'\n```\nKernel driver detaching is not implemented (and not necessary) under FreeBSD.\n\nThe following patch solved it for me:\n```\n--- usbtmc/usbtmc.py.orig 2017-01-18 05:35:14 UTC\n+++ usbtmc/usbtmc.py\n@@ -841,7 +841,7 @@\n raise NotImplementedError()\n \n def _release_kernel_driver(self, interface_number):\n- if os.name == 'posix':\n+ if os.name == 'posix' and os.uname()[0] != 'FreeBSD':\n if self.device.is_kernel_driver_active(interface_number):\n self.reattach.append(interface_number)\n try:\n```","author":{"url":"https://github.com/dl8dtl","@type":"Person","name":"dl8dtl"},"datePublished":"2025-03-01T21:23:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/67/python-usbtmc/issues/67"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9fbe845e-6afe-38e0-dc3d-b150365abfa0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC7C:255D99:6DAE6C4:9567D49:69787025 |
| html-safe-nonce | 4a6515fb0f341602043a6a28efc6407825b8cc8e15302d880bee79f3325b4025 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzdDOjI1NUQ5OTo2REFFNkM0Ojk1NjdENDk6Njk3ODcwMjUiLCJ2aXNpdG9yX2lkIjoiMjY2ODYzODQyNjAyOTkxMjEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50ac2df97e435bed31cbf33ba5c24cb8a7144e61065e2f73f3b6e526b401e3a9 |
| hovercard-subject-tag | issue:2889162956 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ivi/python-usbtmc/67/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10943ebfb91ac80ae862ff096f3513abd2dc3de50a96ba585efb6f43bac6ba94/python-ivi/python-usbtmc/issues/67 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10943ebfb91ac80ae862ff096f3513abd2dc3de50a96ba585efb6f43bac6ba94/python-ivi/python-usbtmc/issues/67 |
| og:image:alt | Under FreeBSD, the original code throws an exception: Could not detach kernel driver from interface(0): [Errno None] b'Unknown error' Kernel driver detaching is not implemented (and not necessary) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dl8dtl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ivi/python-usbtmc git https://github.com/python-ivi/python-usbtmc.git |
| octolytics-dimension-user_id | 6889594 |
| octolytics-dimension-user_login | python-ivi |
| octolytics-dimension-repository_id | 10878556 |
| octolytics-dimension-repository_nwo | python-ivi/python-usbtmc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10878556 |
| octolytics-dimension-repository_network_root_nwo | python-ivi/python-usbtmc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 520b65a872113b919c1bbdb03834a50af15859fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width