Page 1 of 1

unix ImportError: no module named 'network'

Posted: Tue May 29, 2018 11:07 am
by anth
Does the network module exist for the unix port of micropython? I am getting this error:

Code: Select all

$ micropython 
MicroPython v1.9.4-101-g98d16093 on 2018-05-28; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import network
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'network'
>>> 
I am testing a program that needs to respond with the MAC address, and I think only the network module can provide that, or is there some other standard way to do that for the unix port?

Re: unix ImportError: no module named 'network'

Posted: Wed Dec 23, 2020 9:27 am
by Abdul R
In the Unix board like Raspberry Pi, you don't need the Network library at all. In Linux/Unix networking is being handled somewhere else. You can simply comment out the Network commands and use code without any issue.