Profilo di
jamespears
| Nome | jamespears |
|---|---|
| Indirizzo email | jamesp.eichorn433@gmail.com |
| Avatar | ![]() |
| Messaggi | 2 |
| Firma forum | |
Import this: curiosity, knowledge, friendship. | |
-
- 2025-12-05 07:39:21
- Re: Punto di avvio di una applicazione modulare
- Forum >> Programmazione Python >> Scripting
- Your structure is clean, but the import issue is normal, when you run a module directly from inside the package (like lanmessage/starter.py), Python no longer sees lanmessage as a package, so absolute imports fail. The usual fix is to avoid running package modules directly and instead create a top-level entry point (like your start.py) or use python -m lanmessage.starter so the package namespace is preserved. If you want starter.py to be the main entry, running it with -m is the most canonical and keeps everything inside the package working correctly.Import this: curiosity, knowledge, friendship.
-
- 2025-11-22 07:18:46
- Re: Problema con ser.write()
- Forum >> Programmazione Python >> GUI
- It looks like ser.write() needs a bytes object, not a list. Try encoding each value to bytes before sending, or join them into a single string and encode it. For numbers above 255, you can use struct.pack() to send them as raw bytes.
Import this: curiosity, knowledge, friendship.

