The code:
import explorerhat
import sys
try:
V2 = explorerhat.analog.one.read()
print(’{0:5.2f} volts’.format(round(V2,2)))
except:
e = sys.exc_info()[0]
print(‘exiting’)
on RPi gives
root@raspberrypi:~/.node-red/my_code# python analog.py
Explorer HAT Pro detected…
2.25 volts
Explorer HAT exiting cleanly, please wait…
Stopping flashy things…
Stopping user tasks…
Cleaning up…
Goodbye!
Segmentation fault
root@raspberrypi:~/.node-red/my_code#