2014-09-30 23:31 GMT-03:00 Jared Contrascere
<jared.n.contrasc...@libretees.com>:
>
> Hello!
>
> On Ubuntu 12.04 LTS, using Python 3.4.1 and pyusb-1.0.0b2, I cannot 
> successfully call attach_kernel_driver(). My attempts follow:
>
> dev.attach_kernel_driver()
> # TypeError: attach_kernel_driver() missing 1 required positional argument: 
> 'interface'
>

attach_kernel_driver needs the interface number argument

> When I call the method using the interface number, I get a different 
> exception.
>
> dev.attach_kernel_driver(0)
> # NotImplementedError: attach_kernel_driver
>

The error message says what it says: attach_kernel_driver is not
implemented in this backend (which I suppose is libusb0).

>
> Can anyone clear up my confusion here? I looked at the relevant source code 
> and I'm not sure which direction I should go.
>

You can try libusb 1.0, but the one shipped with Ubuntu 12.04 is too
old, you will need to download the sources and build a newer one.

> Thank you!
> Jared
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>



-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to