Is it exactly the error
ModuleNotFoundError: No module named ‘trilobot’
This would mean the library does not exist or not in the expected folder… this probably leads to a not propper installation in the right environment…
For the virtual environment, please see here, here and here…
Basically, this is a four-step-process
- create virtual env (if not already existing)
- Activate virtual env for all further actions
- install again everything as above as regular (but this time in the activated env)
- Run programm (within the virtual env with all installations, libraries and dependancies…)
Which Raspberry Pi do you use for the trilobot and under which Raspberry Pi OS…?