BeagleY-AI SPI0

Problem using SPI on BeagleY-AI from Python. The following code:

import spidev
spi=spidev.SpiDev()
spi.open(0,0)

gives the error message “no such file or directory”

Any help?