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

PyCharm Debug "SH not defined"

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

    PyCharm Debug "SH not defined"

    Hello Guys.
    Finally i've managed to get the PyCharm debugger up.

    Now it's connected to the Smarthome.py system, then i get the following errors in the debugger output:

    Code:
    ssh://rasmus@192.168.50.7:22/usr/bin/python3 -u /home/rasmus/.pycharm_helpers/pydev/pydevd.py --multiproc --client '0.0.0.0' --port 42922 --file /usr/local/smarthome/logics/heating.py
    pydev debugger: process 31435 is connecting
    
    Connected to pydev debugger (build 141.2569)
    Traceback (most recent call last):
      File "/home/rasmus/.pycharm_helpers/pydev/pydevd.py", line 2358, in <module>
        globals = debugger.run(setup['file'], None, None, is_module)
      File "/home/rasmus/.pycharm_helpers/pydev/pydevd.py", line 1778, in run
        pydev_imports.execfile(file, globals, locals)  # execute the script
      File "/home/rasmus/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
        exec(compile(contents+"\n", file, 'exec'), glob, loc) 
      File "/usr/local/smarthome/logics/heating.py", line 7, in <module>
        if sh.big_bathroom.heating.mode() == 1 and sh.big_bathroom.heating.pv() < sh.big_bathroom.heating.sp():
    NameError: name 'sh' is not defined
    It says that the "sh" isn't defined?????

    Any ideas

    #2
    Can't the debugging be down with the name of the sh. items?

    Could someone please explain

    Kommentar

    Lädt...
    X