Open SonicGerkor opened 3 years ago
Did you edit it with program like VisualCode or something? It means you have null bytes in your file If you did make sure you save it with UTF-8 encoding
or you can try this to remove it sed -i 's/\x0//g' magicpband.py
On Mon, Apr 19, 2021 at 8:01 PM German Battiston @.***> wrote:
I bought a brand new Pi 3B+ since I couldn't get this to work in my Pi 3A+.
I finish installing everything, run the code and I get random errors in the script. I have everything in order, the led strip, the RFID reader, the HDMI cable with the 3.5 mm jack connector.
Here's the error: ValueError: source code string cannot contain null bytes in magicband.py line -> (import cli) ValueError: source code string cannot contain null bytes in cli.py line -> (import nfc)
Any thoughts?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/foolishmortalbuilders/magicbandreader/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/APDPSG3TQMZ5HMVSFI6YSADTJS77FANCNFSM43G7KIQQ .
Ok I got it to turn the leds three times, but the XDG_RUNTIME_DIR not set in the environment error pops up again, any idea on how to get rid of that?
It says:
rc.local[526]: error: XDG_RUNTIME_DIR not set in the environment
Pls if you can help me with this issue, I never went past this, I have everything but that error is the only thing keeping it from working, there must be something that's missing in the configuration steps, regarding perhaps the sound port vs the gpio pin
I bought a brand new Pi 3B+ since I couldn't get this to work in my Pi 3A+.
I finish installing everything, run the code and I get random errors in the script. I have everything in order, the led strip, the RFID reader, the HDMI cable with the 3.5 mm jack connector.
Here's the error:
ValueError: source code string cannot contain null bytes
in magicband.py line -> (import cli
)ValueError: source code string cannot contain null bytes
in cli.py line -> (import nfc
)Any thoughts?