I have python script running OK on PYNQ Z2 with image V2.6, but have encountered error when the board was upgraded to image version 3.0.1. The error is "ModuleNotFoundError: No module named ‘pynq’, when trying from pynq import Overlay in the script. Same error happened to image V2.7. It seems being a compatibility issue.
Please advise how to resolve this problem. Thanks.
Are you running the script in the terminal? Since v2.7 we have been using a python virtual environment which you might need to activate. Can you try sourcing the following in your terminal before running your script?
source /etc/profile.d/pynq_venv.sh
If that doesn’t solve it we probably need a bit more info, as @briansune and @giop98 said