I'm trying to rewrite python script from python 2.7.x on raspbian stretch to python 3.9.x on raspbian bullseye and i already check what python modules and all deb packages related to python are installed on stretch.
so original script is starting like that :
import socket, struct, fcntl, subprocess, sys, time, os, IN, pygame
from random import randrange
I already manage to find and change all other modules names to correspond python3 but I still can not find a proper module to ---> IN
Can someone help me with this as i'm not a programmer and this is quite new to me.
on Debian stretch where script is installed I already checked all python packages with dpkg -L|grep python and i installed a proper ones for python3 on bullseye. I also done pip list and pip freeze to check what modules are in debian strech to install all in debian bullseye but now bullseye have same modules and i still can not run this script :(
line 1, in import socket, struct, fcntl, subprocess, sys, time, os, IN, pygame ModuleNotFoundError: No module named 'IN'
thx for any help