"No devices found" for MMIO on Pynq 2.7

I have a simple script below that runs MMIO on v2.6 on a custom FPGA, however, the same script gives the error of ‘no devices found’ when run on v2.7, kindly support

from pynq import MMIO
mmio = MMIO(0xB0030000,0x1FFF)
print(mmio.read(4))

Hi @atopet,

Since pynq 2.7, the pynq is installed in a venv.
Have you sourced XRT?

Mario

Hi @marioruiz, the below works on 2.6, does the same apply to 2.7?

source /etc/profile.d/xrt_setup.sh

You need to be root, and source this script:

Mario