indicator-weather crashed with AttributeError in __main__: 'module' object has no attribute '__version__'

Bug #1190540 reported by Darrell Collins
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
Medium
Joshua Tasker

Bug Description

Crashed immediately upon starting the computer and logging in.
Crashed immediately again upon restarting the application.

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: indicator-weather 13.05.28.1 [origin: LP-PPA-weather-indicator-team]
ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
Uname: Linux 3.8.0-23-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
CrashDB: indicator_weather
Date: Thu Jun 13 06:04:56 2013
ExecutablePath: /usr/bin/indicator-weather
InstallationDate: Installed on 2013-01-20 (143 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/indicator-weather
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/indicator-weather']
SourcePackage: indicator-weather
ThirdParty: True
Title: indicator-weather crashed with AttributeError in __main__: 'module' object has no attribute '__version__'
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/indicator-weather", line 2746, in <module>
     log.info("Python Weather API version %s" % pywapi.__version__)
 AttributeError: 'module' object has no attribute '__version__'
UpgradeStatus: Upgraded to raring on 2013-05-02 (42 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Darrell Collins (darrellw-collins) wrote :
Revision history for this message
Joshua Tasker (jtasker) wrote :

You are using an outdated version of pywapi, please upgrade: https://launchpad.net/python-weather-api

I have now added a check for this, so in the future it will display an error message and refuse to start.

Changed in weather-indicator:
status: New → Fix Committed
information type: Private → Public
Joshua Tasker (jtasker)
Changed in weather-indicator:
importance: Undecided → Low
assignee: nobody → Joshua Tasker (jtasker)
importance: Low → Medium
milestone: none → 13.05.29
Revision history for this message
Christoph Buchner (bilderbuchi) wrote :

I'm experiencing the same bug.
If there is such a strong dependency on pywapi, why isn't it a) packaged in the PPA, too and b) not marked as such in the dependencies of indicator-weather? apt-cache showpkg shows a minimum version of python-pywapi 0.3.2, which is fulfilled.

apt-cache policy python-pywapi
python-pywapi:
  Installed: 0.3.2-1
  Candidate: 0.3.2-1
  Version table:
 *** 0.3.2-1 0
        100 /var/lib/dpkg/status
     0.2.2-1 0
        500 http://gd.tuwien.ac.at/opsys/linux/ubuntu/archive/ raring/universe i386 Packages

apt-cache policy indicator-weather
indicator-weather:
  Installed: 13.05.28.1
  Candidate: 13.05.28.1
  Version table:
 *** 13.05.28.1 0
        500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/ quantal/main i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Christoph Buchner (bilderbuchi) wrote :

> 500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/ quantal/main
that was actually erroneous info, it's
        500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/ raring/main i386 Packages

Revision history for this message
Christoph Buchner (bilderbuchi) wrote :

Manually upgrading pywapi to 0.3.3~svn147-1 apparently resolves this, but leads to bug #1189916 for me.

Revision history for this message
Darrell Collins (darrellw-collins) wrote :

Hi Joshua!
  I am not sure how to keep up with the latest version other than adding the PPA for pywapi, and I had to add that PPA to get it to work at all. So I have the latest version in the PPA 0.3.3.1-0ubuntu0ppa1, what version do I need?

Revision history for this message
Joshua Tasker (jtasker) wrote :

Darrell, what is the output of running the following commands in a terminal?

sudo updatedb
locate pywapi.py

Revision history for this message
Darrell Collins (darrellw-collins) wrote :

Here is the output from that command:

/home/buford/.local/share/Trash/expunged/2614296134/build/lib.linux-x86_64-2.7/pywapi.py
/usr/lib/python2.7/dist-packages/pywapi.py
/usr/lib/python2.7/dist-packages/pywapi.pyc
/usr/local/lib/python2.7/dist-packages/pywapi.py
/usr/local/lib/python2.7/dist-packages/pywapi.pyc
/usr/share/pyshared/pywapi.py

I am not sure what the Trash line refers to, in the file manager, the "trash" is empty.

This was working for some time, I do not know what would have changed. I did change one of the locations recently from Hartfield to Enfield.

Revision history for this message
Darrell Collins (darrellw-collins) wrote :

Hi Joshua!
  I used Synaptic to completely remove both packages.
  Then I used locate and removed all copies of pywapi.py
  Then I installed pywapi
  Then I installed indicator-weather
  Then I hit the JSON bug #1189916 just like Christoph.

  Which the fix was to run the script for the update to the formats.

Thanks for all the work!

Joshua Tasker (jtasker)
Changed in weather-indicator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.