Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

motor is not working #72

Open
golangpython opened this issue Aug 30, 2016 · 1 comment
Open

motor is not working #72

golangpython opened this issue Aug 30, 2016 · 1 comment

Comments

@golangpython
Copy link

d= MediumMotor()
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-armv5tejl/egg/ev3/lego.py", line 217, in init
File "build/bdist.linux-armv5tejl/egg/ev3/ev3dev.py", line 330, in init
TypeError: 'NoneType' object has no attribute 'getitem'

why ?

@liam-b
Copy link

liam-b commented Sep 2, 2016

Are you sure you've imported lang-python correctly?
Also this should work:

import ev3dev.ev3 as ev3
myMotor = ev3.LargeMotor(port)
# do things with myMotor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants