Beim Einbauen von eclipse mit remote debug pysrc ist mir irgendetwas in die Hose gegangen..
autoblind läuft so natürlich nicht,..
> pp(sys.path)"
['',
'/home/smarthome',
'/usr/local/lib/python3.2/dist-packages/pysrc',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7']
Hat jemand eine Idee was mir für das sh.sun.pos fehlt?
Gruß Ivan
Code:
2016-01-22 08:45:25,660 ERROR Main Plugin autoblind exception: 'bool' object has no attribute 'pos' -- plugin.py:__init__:57 Traceback (most recent call last): File "/usr/local/smarthome/lib/plugin.py", line 53, in __init__ plugin_thread = Plugin(smarthome, plugin, classname, classpath, args) File "/usr/local/smarthome/lib/plugin.py", line 82, in __init__ exec("self.plugin = {0}.{1}(smarthome{2})".format(classpath, classname, args)) File "<string>", line 1, in <module> File "/usr/local/smarthome/plugins/autoblind/__init__.py", line 69, in __init__ AutoBlindCurrent.init(smarthome) File "/usr/local/smarthome/plugins/autoblind/AutoBlindCurrent.py", line 34, in init values = AbCurrent(smarthome) File "/usr/local/smarthome/plugins/autoblind/AutoBlindCurrent.py", line 53, in __init__ self.update() File "/usr/local/smarthome/plugins/autoblind/AutoBlindCurrent.py", line 86, in update azimut, altitude = self.__sh.sun.pos() AttributeError: 'bool' object has no attribute 'pos'
Code:
2016-01-22 08:48:38,348 ERROR sonnenstand Logic: sonnenstand, File: /usr/local/smarthome/logics/sonnenstand.py, Line: 8, Method: <module>, Exception: 'bool' object has no attribute 'pos' -- scheduler.py:_task:348 Traceback (most recent call last): File "/usr/local/smarthome/lib/scheduler.py", line 341, in _task exec(obj.bytecode) File "/usr/local/smarthome/logics/sonnenstand.py", line 8, in <module> azimut, altitude = sh.sun.pos(degree=True) AttributeError: 'bool' object has no attribute 'pos'
> pp(sys.path)"
['',
'/home/smarthome',
'/usr/local/lib/python3.2/dist-packages/pysrc',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7']
Gruß Ivan
Kommentar