question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ev3dev-lang-python and rpyc

See original GitHub issue

Hi! I am using ev3dev-jessie-ev3-generic-2016-10-17 with Windows 10 x64. RPyC version 3.3 USB connection

I am trying the new python binding (rhempel) with rpyc. No success. 😦 My code is:

import rpyc
conn = rpyc.classic.connect("192.168.137.3")
ev3devremote = conn.modules.ev3dev
import ev3devremote.ev3 as ev3
ts = ev3.TouchSensor()
while True:
    ev3.Leds.set_color(ev3.Leds.LEFT, (ev3.Leds.GREEN, ev3.Leds.RED)[ts.value()])

The connection with the rpyc server seems OK (welcome, accepted, etc)

I get the error:

no module named 'ev3devremote'

However a similar code worked in the old python binding (ddemidov)

import rpyc
c=rpyc.classic.connect("192.168.137.3")
ev3dev=c.modules.ev3dev
m = ev3dev.large_motor('outA')
m.connected
m.run_timed(time_sp=3000, duty_cycle_sp=75)

I make a silly error? Any incompatibility with the new binding?

Help! 😕

DJuego

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ddemidovcommented, Oct 25, 2016

The remote import line should be

ev3remote = conn.modules['ev3dev.ev3']

Here is a small tutorial I’ve used recently: https://gist.github.com/ddemidov/63dab1dd1b91b493a7752c76e055b5c0

1reaction
WasabiFancommented, Oct 25, 2016

Yes, I saw the gitter message.

Ah, cool; I wasn’t sure if Gitter would notify you or if you would have to check manually.

So I guess in this case the documentation pull request should be made to master branch?

I think we should make it general practice to not push anything directly to master without going through develop, simply because I don’t think that we should be merging from master (which is our “complete” branch) backwards into the one for development. How 'bout we make the addition in develop and then work on getting another release out (à la #233)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with ev3dev remotely using RPyC
Install RPyC both on the EV3 and on your desktop PC. For the EV3, enter the following command at the command prompt (after...
Read more >
RPyC - ev3python - Google Sites
Getting ready for a programming workflow based on using RPyC with your python IDE rather than using a terminal. Before you can use...
Read more >
ev3dev-python-and-rpyc.md - GitHub Gist
Operating ev3dev remotely with ev3dev-python and rpyc. Install rpyc both on the ev3 and on your desktop computer with. sudo easy_install3 rpyc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found