I got a different exception from the HP1000 driver today. I am adding it to 
this thread since I had sent Susan a link to this post. I believe the call 
should be to time.sleep() rather than just sleep() but I’m not up to enough to 
really know (there appear to be several places lacking “time.” In the code).

Apr  6 09:06:06 AllenWeather weewx[2377]:     ****  global name 'sleep' is not 
defined
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****  Traceback (most recent call 
last):
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 890, in main
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****      engine.run()
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 188, in run
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****      for packet in 
self.console.genLoopPackets():
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****    File 
"/usr/share/weewx/user/HP1000.py", line 511, in genLoopPackets
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****      sleep(self.retry_wait)
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****  NameError: global name 
'sleep' is not defined
Apr  6 09:06:06 AllenWeather weewx[2377]:     ****  Exiting.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to