How to use luma lcd with orange pi zero 2w

hello, i am new to linux and orange pi, recently i bought a orange pi zero 2w to make a handheld retro games console, but i cant seem to get luma lcd to work, its keeps trying to use RPi.GPIO, i have tried forcing it to use OPi.GPIO by include “import OPi.GPIO as GPIO” but it wont work, i am using a ili9341 display, i am using the spi0 bus with gpio Dc = 11 and reset = 7(physical pins).

my code is this:
import OPi.GPIO as GPIO
from luma.core.interface.serial import spi
from luma.lcd.device import ili9341

spi_bus = 0
spi_device = 0

serial = spi(port=0, device=0, gpio_DC=0, gpio_RST=2, bus_speed_hz=32000000)
device = ili9341(serial, width=320, height=240, rotate=0)

device.display(“hello”)

i cant buy a hdmi display since i have a size constraint and i have pretty much maxed out my buget.