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:
It says that the "sh" isn't defined?????
Any ideas
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
Any ideas


Kommentar