jphalip / ticlib

Python library to drive Pololu Tic stepper motor controllers
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

no backend avaliable #4

Open ginghus-khan2000 opened 3 years ago

ginghus-khan2000 commented 3 years ago

Hi, I appreciate the effort of creating the library. I have a problem (of course, sorry). I've installed -Python 3.9.x -Pip3 -ticlib -usbpy

I try running your example code and get this error.

Traceback (most recent call last): File "/Users/admin/Documents/Python Programming/tic test 2.py", line 1, in from src.ticlib import TicUSB ModuleNotFoundError: No module named 'src'

so I took out the src. and got

Traceback (most recent call last): File "/Users/admin/Documents/Python Programming/tic test 2.py", line 4, in tic = TicUSB() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ticlib/ticlib.py", line 634, in init self.usb = usb_core.find(**params) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/usb/core.py", line 1309, in find raise NoBackendError('No backend available') usb.core.NoBackendError: No backend available

I'm pretty much a noob to Python programming but trying. Can you suggest a solution? What am I doing wrong?

Khan

ginghus-khan2000 commented 3 years ago

I got it working. Had to install HomeBrew and libusb. Works a treat. I just hate to think what I've done to my machine to install libusb (openUSB?). Thanks for the library. :) Khan

Em607867 commented 2 years ago

I got it working. Had to install HomeBrew and libusb. Works a treat. I just hate to think what I've done to my machine to install libusb (openUSB?). Thanks for the library. :) Khan

Hi, Did you end up using SRC still or removing SRC?

Also when you connect a device, are you able to disconnect? I can't seem to find the function to do that.

ginghus-khan2000 commented 2 years ago

No, didn't use src.ticlib, just used "from ticlib Import TicUSB". I use IDLE, the Python interpreter built into to OS X. I haven't had any trouble with disconnecting a device. Just yank it out. Just check to see if connected using Pololu stepper controller software.

The one thing I did have to change (in the Pololu software) was to disable the "enable timeout".

Eric


From: Em607867 @.> Sent: Friday, January 21, 2022 6:21 PM To: jphalip/ticlib @.> Cc: ginghus-khan2000 @.>; Author @.> Subject: Re: [jphalip/ticlib] no backend avaliable (Issue #4)

I got it working. Had to install HomeBrew and libusb. Works a treat. I just hate to think what I've done to my machine to install libusb (openUSB?). Thanks for the library. :) Khan

Hi, Did you end up using SRC still or removing SRC?

Also when you connect a device, are you able to disconnect? I can't seem to find the function to do that.

— Reply to this email directly, view it on GitHubhttps://github.com/jphalip/ticlib/issues/4#issuecomment-1019004812, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWOFWLZ6DI6MAXZI5BZHTLTUXIBBPANCNFSM5H264PRQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>