smarthomeNG / smarthome

Device integration platform for your smart home
https://www.smarthomeNG.de
GNU General Public License v3.0
122 stars 92 forks source link

Connection polling failed Error on Mac OS X #350

Closed onkelandy closed 3 years ago

onkelandy commented 4 years ago

Sometimes I get this error on startup, most likely after some timeout with the ical plugin or general network stuf..? Happens on Mac OS X

2020-04-13  21:22:21 ERROR    __main__          Connection polling failed: name 'KQ_EV_ONESHOT' is not defined
Traceback (most recent call last):
  File "bin/smarthome.py", line 640, in start
    self.connections.poll()
  File "/Users/ank/smarthome/lib/connection.py", line 214, in poll
    flags=select.KQ_EV_ADD | KQ_EV_ONESHOT))
NameError: name 'KQ_EV_ONESHOT' is not defined
msinn commented 4 years ago

@Foxi352 is using SmartHomeNG on Mac OS and had started moving the functionality from lib.connection to lib.network. Maybe he has an idea.

msinn commented 3 years ago

According to the Python documentation 3.0 (and back to 3.5) KQ_EV_ONESHOT is valid on all operating systems. Pycharm shows it as undefined in the source (I am developing on Mac OS).

So, I have no idea what is going on.

bmxp commented 3 years ago

This is very old. Does the problem still exist?

onkelandy commented 3 years ago

Haven't tested this anymore but I guess the problem is gone. At least I didn't see the error anymore.