No module named 'meshtastic.serial_interface'

I’m testing the python API, and I go an error.
I already installed the CLI and use it to communicate with my node, from:

pip3 install --upgrade pytap2
pip3 install --upgrade meshtastic

Running this example from Ubuntu 22.04 throw me an error:

python3 meshtastic.py
ModuleNotFoundError: No module named 'meshtastic.serial_interface'; 'meshtastic' is not a package

What’s weird is that python interactive mode doesn’t cause any ModuleNotFoundError.

Ok solved.
I think I had some python environment issues not related to Meshtastic.
In case path issue:

python -m site --user-site     #  /home/me/.local/lib/python3.10/site-packages
export PYTHONPATH=$PYTHONPATH: /home/me/.local/lib/python3.10/site-packages

Also, in case you have named your example script “meshtastic.py” like me, the import may cause issue because the script is trying to import itself.