View unanswered posts | View active topics It is currently Sun May 19, 2013 10:03 am



Reply to topic  [ 7 posts ] 
 Small issue with NOAA Weather plug in 
Author Message

Joined: Dec 30, 2007
Posts: 179
Location: Los Altos Hills, CA
Post Small issue with NOAA Weather plug in
After I enable the plug in, and attempt to create a new instance/device, I get to the page that has a button that it supposed to open a browser window, pointing to the list of weather sites.

For me, the button does not work.

Instead, for a second the phrase "Waiting For Button Reply" is displayed in red text, as is a red spinner icon. No web page opens, and no error is recorded in the log.

Both server and client are on the same machine.

Mike


Sun Nov 20, 2011 10:16 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6642
Location: Austin, Texas
Post Re: Small issue with NOAA Weather plug in
What OS version are you using? Also, did you install the server and client under the same user account?

_________________
Jay (Indigo Support)
Image


Mon Nov 21, 2011 10:06 am
Profile WWW

Joined: Dec 30, 2007
Posts: 179
Location: Los Altos Hills, CA
Post Re: Small issue with NOAA Weather plug in
jay wrote:What OS version are you using? Also, did you install the server and client under the same user account?



10.5.8

yes. A single Mac Mini


Mon Nov 21, 2011 11:05 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6642
Location: Austin, Texas
Post Re: Small issue with NOAA Weather plug in
Interesting - we're just using the standard "webbrowser" package in Python. Do the following:

  1. Select "Open Scripting Shell" from the "Plugins" menu
  2. Type (or copy/paste) in the following script
    Code: Select all
    import webbrowser
    webbrowser.open_new("http://www.weather.gov/xml/current_obs/")

Does it work? Try opening the URL above in your default web browser (which is what the command above is supposed to do) - does that work?

_________________
Jay (Indigo Support)
Image


Tue Nov 22, 2011 7:57 am
Profile WWW

Joined: Dec 30, 2007
Posts: 179
Location: Los Altos Hills, CA
Post Re: Small issue with NOAA Weather plug in
jay wrote:Interesting - we're just using the standard "webbrowser" package in Python. Do the following:

  1. Select "Open Scripting Shell" from the "Plugins" menu
  2. Type (or copy/paste) in the following script
    Code: Select all
    import webbrowser
    webbrowser.open_new("http://www.weather.gov/xml/current_obs/")

Does it work? Try opening the URL above in your default web browser (which is what the command above is supposed to do) - does that work?



It opened the web page as expected.

This was displayed on the console:





2011-11-22 06:59:18.190 osascript[6090:613] Error loading /Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools: dlopen(/Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools: mach-o, but wrong architecture
osascript: OpenScripting.framework - scripting addition /Library/ScriptingAdditions/XSLT Tools.osax declares no loadable handlers.
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 65, in open_new
return open(url, 1)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 60, in open
if browser.open(url, new, autoraise):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 589, in open
rc = osapipe.close()
IOError: [Errno 10] No child processes


Tue Nov 22, 2011 9:01 am
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11682
Location: Texas
Post Re: Small issue with NOAA Weather plug in
Apparently the webbrowser module is a bit buggy. We'll use an alternative technique in 5.0.2 to avoid it.

_________________
Image


Tue Nov 22, 2011 12:27 pm
Profile WWW

Joined: Dec 30, 2007
Posts: 179
Location: Los Altos Hills, CA
Post Re: Small issue with NOAA Weather plug in
support wrote:Apparently the webbrowser module is a bit buggy. We'll use an alternative technique in 5.0.2 to avoid it.



Really not a big deal... I just wanted to let you know that I was seeing weird behavior...


Tue Nov 22, 2011 2:52 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.