SVN Workbench fails on Ubuntu 13.04 python

Bug #1163829 reported by AndreK
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
svn-workbench (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Fails with
EventScheduling<wb_frame.OnUpdateUiSpUpgrade>
Traceback (most recent call last):
  File "/usr/share/svn-workbench/wb_app.py", line 554, in __call__
    result = self.function( *args, **kwds )
  File "/usr/share/svn-workbench/wb_frame.py", line 1074, in OnUpdateUiSpUpgrade
    event.Enable( self.list_panel.list_handler.project_info.need_upgrade )
AttributeError: 'NoneType' object has no attribute 'project_info'

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: svn-workbench 1.6.6-2
ProcVersionSignature: Ubuntu 3.8.0-15.25-generic 3.8.4
Uname: Linux 3.8.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu5
Architecture: amd64
Date: Wed Apr 3 11:42:52 2013
EcryptfsInUse: Yes
ExecutablePath: /usr/share/svn-workbench/wb_main.py
InstallationDate: Installed on 2013-02-12 (49 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: svn-workbench
UpgradeStatus: Upgraded to raring on 2013-03-18 (15 days ago)

Revision history for this message
AndreK (andre-k) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in svn-workbench (Ubuntu):
status: New → Confirmed
Revision history for this message
francesco (massa80) wrote :

Delete folder /home/[username]/.WorkBench e relaunch svn-workbench

Revision history for this message
skurfur (dvd-regal) wrote :

@francesco:
Deleting folder /home/[username]/.WorkBench did not work for me.

Works for me:

1. Copy /usr/share/svn-workbench/wb_frame.py as a backup

2. Edit file "/usr/share/svn-workbench/wb_frame.py", line 1074, added check if attribute is present before calling function:
if hasattr(self.list_panel.list_handler, 'project_info'):
                event.Enable( self.list_panel.list_handler.project_info.need_upgrade )

No more error. Yeh. :)

However, looks like this is some code to upgrade a legacy preferences for SVN WorkBench. Since I don't have an older preference file to upgrade, I can't test the case where the attribute exists.

I've only studied python programming a couple hours and this was my first time "programming" in python. Pretty clean, easy to understand language.

Revision history for this message
Boris Barbulovski (bbarbulovski-gmail) wrote :

skurfur fix worked for me.

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.