Closed averyct closed 6 years ago
Once I run 'python /srv/main.py', I get this error:
Traceback (most recent call last): File "/srv/main.py", line 21, in <module> PINS = os.environ.get('PINS').split(',') AttributeError: 'NoneType' object has no attribute 'split'
What should I do to get this to work? I'm decently knowledgeable with Raspberry Pi, but not good enough to code or edit code :/ Thanks!
Make sure you have copied the .env file and that it contains PINS= plus some value.
.env
PINS=
Once I run 'python /srv/main.py', I get this error:
Traceback (most recent call last): File "/srv/main.py", line 21, in <module> PINS = os.environ.get('PINS').split(',') AttributeError: 'NoneType' object has no attribute 'split'
What should I do to get this to work? I'm decently knowledgeable with Raspberry Pi, but not good enough to code or edit code :/ Thanks!