Bug 109178

Summary: /usr/ports/astro/weatherget doesn't work.
Product: Ports & Packages Reporter: alexv <voitau>
Component: Individual Port(s)Assignee: Andrew Pantyukhin <infofarmer>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description alexv 2007-02-14 23:20:31 UTC
Here are the results of trying to test examples from man page:

%weatherget --station-id=US4566 --standard
Traceback (most recent call last):
  File "/usr/local/bin/weatherget", line 513, in ?
    temp_units  = head().ut()[0].strip()
  File "/usr/local/bin/weatherget", line 249, in __init__
    self.head = tag_contents('head', forecast().forecast)[0]
IndexError: list index out of range

%weatherget --station-id=US4566 -extended-day=2 --metric
Traceback (most recent call last):
  File "/usr/local/bin/weatherget", line 126, in ?
    if int(NUMDAYS) > 10:
ValueError: invalid literal for int(): xtended-day=2

Concerning the last one, just a typo `-extended-day' instead of `--extended-day' in man page.

How-To-Repeat: Reproducible always.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-14 23:20:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->infofarmer

Over to maintainer
Comment 2 Andrew Pantyukhin freebsd_committer freebsd_triage 2007-02-15 00:47:02 UTC
Where did you get that station id? Please use
"weatherget -l CITY" to find a correct one.
Comment 3 alexv 2007-02-15 20:24:07 UTC
Shame on me! Really works with the correct city ID.
I was just a bit confused with not working samples and would suppose a
bit friendlier message that ID is incorrect :)

Thanks!


On 2/15/07, Andrew Pantyukhin <infofarmer@freebsd.org> wrote:
> Where did you get that station id? Please use
> "weatherget -l CITY" to find a correct one.
>
Comment 4 sat freebsd_committer freebsd_triage 2007-02-15 23:05:33 UTC
State Changed
From-To: open->closed

Problem solved. I also filed a wish in berlios bug tracker. Thanks!