-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
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
TypeError: must be string, not int #58
Comments
Code is wrong at time.sleep(ms/1000), is ms previously defined. Check for On Saturday, March 14, 2015, Ali Yousuf notifications@github.com wrote:
Saleem Ahmad |
I have not changed anything in the example. It is in integer already. The error says "must be String" -- I'm also confused at this.
|
Hmm... this is an odd one. Seems that either the RotaryEncoder library itself or the sysfs C extension it uses to read/write the eQEP driver files is the source of the problem (time.sleep most certainly doesn't take a string!). I'm looking into it... |
Just letting you know I'm having the exact same problem with the same code Any new ideas on this yet? I'm stuck |
OK got it, I was missing a type check in a C extension, and the TypeError was popping up at a weird time. |
In a freshly installed Debian (2015-03-01) on Beaglebone Black Rev A6A, the encoder_test.py example shows this error:
The text was updated successfully, but these errors were encountered: