Jim Duda wrote:
> Duncan Webb wrote:
>
>> When you upgraded, did you remove the build directory and the
>> site-packages/freevo.
>
> I believe I had deleted both of those directories.
>
> I saw the 1.9.0 release notice and just used that one.
>
> Now I just get this:
>
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/freevo/plugins/idlebar/weather.py",
> line 74, in run
> pr = rp.ParseReport(rep)
> File "/usr/lib/python2.5/site-packages/freevo/util/pymetar.py", line 837,
> in ParseReport
> self.Report.tempf=int(f)
> ValueError: invalid literal for int() with base 10: '53.1'
> ERROR: invalid literal for int() with base 10: '53.1'
Interesting so it look like the data has changed as the code has not
changed for ages.
Index: src/util/pymetar.py
===================================================================
--- src/util/pymetar.py (revision 11576)
+++ src/util/pymetar.py (working copy)
@@ -834,7 +834,7 @@
elif (header == "Temperature"):
f,i,c,i=data.split(None,3)
- self.Report.tempf=int(f)
+ self.Report.tempf=int(float(f))
# The string we have split is "(NN C)", hence the slice
self.Report.temp=int(c[1:])
> I appear to be up and running okay with 1.9.0
>
> Thanks for all your great work Duncan !!
Pleasure
Duncan
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users