Wifi module not found

I’m new with PYNQ, a have a Z1 board and I connect it to a TP-LINK TL-WN823N but the module doen’t turn on the indicator LED , I still try to install the Wifi module with the following code:

from pynq import Overlay
from pynq.lib.usb_wifi import Usb_Wifi

port = Usb_Wifi()

but it is an error message:

ModuleNotFoundError Traceback (most recent call last)
in ()
1 from pynq import Overlay
----> 2 from pynq.lib.usb_wifi import Usb_Wifi
3
4 port = Usb_Wifi()

ModuleNotFoundError: No module named ‘pynq.lib.usb_wifi’

I ran this code from Python in Jupyter, does anyone know why is this error ? or if I there is any previous configuration that I’m missing. Thanks!

1 Like

Not sure what version of pynq you are using, but currently the module is renamed to Wifi. Maybe just flash our latest image v2.5 and try again.

Thank u! I solve it by using the code

from pynq.lib import Wifi

port = Wifi()

the wifi is working correctly

2 Likes