It looks like you're using the code on Windows, a platform I didn't
especially design for. That being said, it would appear that the windows
version of PyUSB doesn't implement the "is_kernel_driver_active" method -
comment out lines 13-18 of WeDoMore.py.
On Fri, Jun 10, 2011 at 10:49, Safoura <s.seddig...@gmail.com> wrote:
> Ian Daniher <it.daniher@...> writes:
>
> >
> >
> > I wrote a python library to do exactly this.
> See https://github.com/itdaniher/WeDoMore for details.
> >
> > Additionally, it integrates with TurtleArt, the opensource project by
> PICO &
> Walter Bender.
> >
> > Best,
> > --
> > IanOn Thu, Jun 9, 2011 at 15:49, Safoura Seddighin <s.seddighin-
> re5jqeeqqe8avxtiumw...@public.gmane.org> wrote:
> > HiI am new to PyUSB and trying to communicate with a Lego WeDo device.
> PyUSB
> seemed great but I havn't had any success in communicating so far.
> > I was just wondering whether any one has had communicated with Lego
> education
> products successfully using PyUSB just to make sure that I am on the right
> track.
> >
> >
> > Thanks in advance
> >
> > Safi
> >
> >
> ------------------------------------------------------------------------------
> > EditLive Enterprise is the world's most technically advanced content
> > authoring tool. Experience the power of Track Changes, Inline Image
> > Editing and ensure content is compliant with Accessibility
> Checking.http://p.sf.net/sfu/ephox-
> dev2dev_______________________________________________
> > pyusb-users mailing listpyusb-users-
> 5NWGOfrQmnd4wTydcyPnfg@public.gmane.orgceforge.nethttps://
> lists.sourceforge.net/
> lists/listinfo/pyusb-users
> >
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > EditLive Enterprise is the world's most technically advanced content
> > authoring tool. Experience the power of Track Changes, Inline Image
> > Editing and ensure content is compliant with Accessibility Checking.
> > http://p.sf.net/sfu/ephox-dev2dev
> >
> > _______________________________________________
> > pyusb-users mailing list
> > pyusb-users@...
> > https://lists.sourceforge.net/lists/listinfo/pyusb-users
> >
>
>
>
> Hi Ian,
> Actually the reason I decided to use PyUSB was that I found your
> work(WeDoMore)
> a month ago and decided to start using PyUSB.:)
> I have tried to use the WeDoMore class/code but I still have no clue what's
> going on and plus I get some errors like :
>
>
> Traceback (most recent call last):
> File "C:\Users\DevTech\workspace\testPyUSB1\src\WeDoTest1.py", line 8, in
> <module>
> self=WeDoMore.WeDo()
> File "C:\Users\DevTech\workspace\testPyUSB1\src\WeDoMore.py", line 19, in
> __init__
> if self.dev.is_kernel_driver_active(0):
> File "C:\Users\DevTech\workspace\testPyUSB1\src\usb\core.py", line 687, in
> is_kernel_driver_active
> return self._ctx.backend.is_kernel_driver_active(self._ctx.handle,
> interface)
> File "C:\Users\DevTech\workspace\testPyUSB1\src\usb\backend\__init__.py",
> line
> 355, in is_kernel_driver_active
> _not_implemented(self.is_kernel_driver_active)
> File "C:\Users\DevTech\workspace\testPyUSB1\src\usb\backend\__init__.py",
> line
> 79, in _not_implemented
> raise NotImplementedError(func.__name__)
> NotImplementedError: is_kernel_driver_active
>
>
> It seems that PyUSB have been updated since you have used it so has the
> scratch
> code since the screen shot you had posted of the scratch/squeak and their
> WeDoPlugin functions is different from what I was able to see yesterday
> (now
> they only have PrimeOpenPort,PrimeClosePort,PrimeRead and PrimeWrite). I am
> just
> saying this because I am trying to understand what is going on so maybe I
> am
> able to get the code to work....sigh....
> Thanks for putting the library together.....:)
> Any comment/thoughts would be greatly appreciated.
>
> Thanks
> Safoura
>
>
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users