I have my program working OK but need to run as sudo.
So now I am trying to get the program to run in user space but can't
seem to get it to work.

I am using Ubuntu 8.10 Intrepid

This is what I have done / tried so far.
1. Created a group called delcomusb
        $ sudo groupadd -g 1001 delcomusb
2  Created a file in /etc/udev/rules.d called 99-delcomusb.rules and
placed the following.  I tried both.
        # Delcom USB Device
        SUBSYSTEM=="usb_device", 
        ACTION=="add",
        ATTRS{idVendor}=="0x0FC5", 
        ATTRS{idProduct}=="0xB080", 
        GROUP="delcomusb", 
        MODE="0660"

        #BUS=="usb", SYSFS{idVendor}=="0x0fC5",
               SYSFS{idProduct}=="0xB080", MODE="0666"
3. Restarted udev
        $ sudo /etc/init.d/udev restart

4. Added user to have access to group: delcomusb
        System -> Administartor -> Users and Groups
        unlock user (and then entered password)
        select user ed
        click on "Manage Groups"
        click on delcomusb
        check ed and root for Group Member

But still get the error when I try and run
./DelcomUSBDevice.py

self.handle.claimInterface(self.intf) # Interface 0   
usb.USBError: could not claim interface 0: Operation not permitted

But everything works fine with sudo.

Is there some step I missed?

Thanks
ed


        


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Pyusb-users mailing list
Pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to