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

Problem with LargeMotor in python3.4 #71

Open
Hchristian opened this issue Jun 21, 2016 · 1 comment
Open

Problem with LargeMotor in python3.4 #71

Hchristian opened this issue Jun 21, 2016 · 1 comment

Comments

@Hchristian
Copy link

on python3.4 LargeMotor i have some problems.

import ev3
from ev3 import lego
from ev3.lego import LargeMotor
Left=LargeMotor('outA')
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-armv5tejl/egg/ev3/lego.py", line 211, in init
File "build/bdist.linux-armv5tejl/egg/ev3/ev3dev.py", line 334, in init
ev3.ev3dev.NoSuchMotorError: No such motor port=outA type=lego-ev3-l-motor

@liam-b
Copy link

liam-b commented Sep 2, 2016

Are you sure you've downloaded and imported lang-python correctly?
Also this works for me:

import ev3dev.ev3 as ev3
myMotor = ev3.LargeMotor(port)
# do things with myMotor
# port can be from 'outA' to 'outD'

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