[Python-modules-team] Bug#820849: python3-pywapi: example scripts are not working

Kamaraju Kusumanchi kamaraju at gmail.com
Wed Apr 13 02:50:09 UTC 2016


Package: python3-pywapi
Version: 0.3.6-1
Severity: normal

Dear Maintainer,

Scripts in the /usr/share/doc/python3-pywapi/examples/ directory do not seem to
work. For example,


% python3 /usr/share/doc/python3-pywapi/examples/get-weather.py
Traceback (most recent call last):
  File "/usr/share/doc/python3-pywapi/examples/get-weather.py", line 84, in
<module>
    main()
  File "/usr/share/doc/python3-pywapi/examples/get-weather.py", line 81, in
main
    write_everything_from_yahoo_to_xml('GRXX', 81, outfile=options.filename)
  File "/usr/share/doc/python3-pywapi/examples/get-weather.py", line 44, in
write_everything_from_yahoo_to_xml
    temp_c = report['wind']['chill']
TypeError: string indices must be integers


% python3 /usr/share/doc/python3-pywapi/examples/pywapi-example.py
  File "/usr/share/doc/python3-pywapi/examples/pywapi-example.py", line 9
    print "Weather.com says: It is " +
weather_com_result['current_conditions']['text'].lower() + " and " +
weather_com_result['current_conditions']['temperature'] + "C now in New York."
                                   ^
SyntaxError: invalid syntax


% python3 /usr/share/doc/python3-pywapi/examples/pywapi-yahoo-example.py
{'error': 'Could not connect to Yahoo! Weather'}


I have not tried all of them, so there could be more. Could you please take a
look?

thanks
raju
http://raju.shoutwiki.com/wiki/Blog



-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages python3-pywapi depends on:
ii  python3            3.4.2-2
ii  python3-unidecode  0.04.16-1

python3-pywapi recommends no packages.

python3-pywapi suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list