no module named 'webrepl'

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
jszsj
Posts: 4
Joined: Tue Jul 07, 2015 9:05 am

no module named 'webrepl'

Post by jszsj » Mon Jul 18, 2016 6:07 am

sorry, my English is not very well, but I'm working on it.
I built the firmware myself used the lasest source(v1.8.2-19-gc3f519a-dirty on 2016-07-18), but I can't start webrepl, when I import webrepl model, there's an error:no module named 'webrepl', I don't know how to fix this, and need some help,thanks.

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: no module named 'webrepl'

Post by shaoziyang » Mon Jul 18, 2016 8:42 am

What's board do you using? Webrepl only for ESP8266.

emi
Posts: 5
Joined: Sat Aug 27, 2016 7:28 am

Re: no module named 'webrepl'

Post by emi » Sat Aug 27, 2016 7:51 am

Same error 'no module named 'webrepl''
ESP8266/ v1.8.3
Would appreciate any help.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: no module named 'webrepl'

Post by deshipu » Sat Aug 27, 2016 8:05 am

Can you try this code and tell us what it said?

Code: Select all

import esp
esp.check_fw()

emi
Posts: 5
Joined: Sat Aug 27, 2016 7:28 am

Re: no module named 'webrepl'

Post by emi » Sat Aug 27, 2016 10:19 pm

Thanks for your reply.

The output is:
size: 527768
md5: 9a0217a21d84db9654933e5c045fb5d3
True

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: no module named 'webrepl'

Post by deshipu » Sun Aug 28, 2016 6:45 am

This is just a shot in the dark, but did you forget to compile mpy-cross before compiling the rest of micropython?

emi
Posts: 5
Joined: Sat Aug 27, 2016 7:28 am

Re: no module named 'webrepl'

Post by emi » Sun Aug 28, 2016 9:02 am

No, I used ( make -C mpy-cross) before building micropython.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: no module named 'webrepl'

Post by deshipu » Sun Aug 28, 2016 11:08 am

Can you confirm there is webrepl.py in your esp8266/modules directory?

emi
Posts: 5
Joined: Sat Aug 27, 2016 7:28 am

Re: no module named 'webrepl'

Post by emi » Sun Aug 28, 2016 10:29 pm

Yes, it's there.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: no module named 'webrepl'

Post by deshipu » Mon Aug 29, 2016 7:14 am

I have no further suggestions, it should work. I can't see anything else that could be wrong with it.

Post Reply