We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 solved it for me:
--- usbtmc/usbtmc.py.orig 2017-01-18 05:35:14 UTC +++ usbtmc/usbtmc.py @@ -841,7 +841,7 @@ raise NotImplementedError() def _release_kernel_driver(self, interface_number): - if os.name == 'posix': + if os.name == 'posix' and os.uname()[0] != 'FreeBSD': if self.device.is_kernel_driver_active(interface_number): self.reattach.append(interface_number) try:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Under FreeBSD, the original code throws an exception:
Kernel driver detaching is not implemented (and not necessary) under FreeBSD.
The following patch solved it for me:
The text was updated successfully, but these errors were encountered: