You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
Hi, testing on latest ev3dev and python 3, getting this error
`>>> from ev3.lego import *
d = MediumMotor()
Traceback (most recent call last):
File "", line 1, in
File "/home/robot/.virtualenvs/ev3_py34/lib/python3.4/site-packages/python_ev3-0.0.3.0-py3.4.egg/ev3/lego.py", line 217, in init
File "/home/robot/.virtualenvs/ev3_py34/lib/python3.4/site-packages/python_ev3-0.0.3.0-py3.4.egg/ev3/ev3dev.py", line 330, in init
TypeError: 'NoneType' object is not subscriptable`
I am able to see motors in the folder /sys/class/tacho-motor/motor*/
run cd /sys/class/tacho-motor and dir and paste the output.
If you don't see motor0 and so on, then check the wires on the motor.
And try these steps:
shutdown your robot
disconnect all wires from your brick
boot ev3dev
if boot has finish, then connect the motors using the wires on your brick and run cd /sys/class/tacho-motor and dir again and paste the output too, if an output appears.
Activity
ValorNaram commentedon May 19, 2016
run
cd /sys/class/tacho-motoranddirand paste the output.If you don't see motor0 and so on, then check the wires on the motor.
And try these steps:
cd /sys/class/tacho-motoranddiragain and paste the output too, if an output appears.liam-b commentedon Sep 2, 2016
Are you sure you've downloaded and imported lang-python correctly?
Also this should work:
dlech commentedon Sep 3, 2016
@liam-b, I think you have "python-ev3" (this repository) confused with "ev3dev-lang-python" (https://github.com/rhempel/ev3dev-lang-python)