Closed berthelemy closed 2 years ago
It sounds like you may be running the script from the command line with Python 2 instead of Python 3, and this code is Python3-specific. The command should be
python3 headlesspi.py
Let me know if that still doesn't work!
Hi there,
Running Python 3.5.3 on Raspian "Stretch"
I get this error when running headlesspi.py:
ImportError: cannot import name 'time_ns'
Traceback:
I replaced line 5 with
import time
, which took me further through the application.But then I got another error (reporting separately)