Message254612
The attached code generates this output:
init called
finished init
init called
finished init
init called
finished init
initPorts done
alldone
destroying /sys/class/gpio/gpio16/
destroying /sys/class/gpio/gpio6/
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method sysfsGpio.__del__ of <__main__.sysfsGpio instance at 0xb6c90e68>> ignored
destroying /sys/class/gpio/gpio13/
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method sysfsGpio.__del__ of <__main__.sysfsGpio instance at 0xb6c90e40>> ignored
It is necessary to have two functions defined (railVarRes() and batleveltopct()) and further more changing the name of railVarRes to arailVarRes changes the behavior:
init called
finished init
init called
finished init
init called
finished init
initPorts done
alldone
destroying /sys/class/gpio/gpio16/
destroying /sys/class/gpio/gpio13/
destroying /sys/class/gpio/gpio6/
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method sysfsGpio.__del__ of <__main__.sysfsGpio instance at 0xb6c10e68>> ignored
notice that the order of the class destruction has changed. |
|
Date |
User |
Action |
Args |
2015-11-13 19:08:03 | Terry Garyet | set | recipients:
+ Terry Garyet |
2015-11-13 19:08:03 | Terry Garyet | set | messageid: <1447441683.08.0.711928345113.issue25619@psf.upfronthosting.co.za> |
2015-11-13 19:08:03 | Terry Garyet | link | issue25619 messages |
2015-11-13 19:08:02 | Terry Garyet | create | |
|