Ankündigung

Einklappen

Serverwartung 21.2.



Am 21.2. im Laufe des späten Abends wird eine Serverwartung durchgeführt. Das Forum ist dadurch für gut zwei Stunden nicht erreichbar.
Es wird eine Wartungsseite geschaltet.

Mehr anzeigen
Weniger anzeigen

python zerbockt.. problem mit sh.sun.pos(degree=True)

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    python zerbockt.. problem mit sh.sun.pos(degree=True)

    Beim Einbauen von eclipse mit remote debug pysrc ist mir irgendetwas in die Hose gegangen..

    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'
    autoblind läuft so natürlich nicht,..

    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']
    Hat jemand eine Idee was mir für das sh.sun.pos fehlt?

    Gruß Ivan

    #2
    Hi,

    ich denke ephem ist nicht installiert.

    bis bald

    Marcus
    Zuletzt geändert von callidomus; 22.01.2016, 09:48. Grund: ephem

    Kommentar


      #3
      Danke,

      hatte versehentlich den Ordner dist-packages gelöscht..
      Zuletzt geändert von ivande; 22.01.2016, 11:14. Grund: Rechtschreibung

      Kommentar


        #4
        Hallo callidomus Markus
        kann die python-Version eigentlich aktualisert werden, damit smarthome.py noch damit läuft?

        Gruß Ivan

        Kommentar


          #5
          Hallo,

          ich denke ja. Probiert habe ich nicht.

          Bis bald

          Marcus

          Kommentar


            #6
            Bei mir läuft aktuell Python 3.5 ohne Probleme

            Kommentar

            Lädt...
            X