system-config-samba crashes on start time

Bug #474589 reported by BG
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
system-config-samba (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: system-config-samba

Following "log" have been created:

$sudo system-config-samba
Traceback (most recent call last):
  File "/usr/sbin/system-config-samba", line 45, in <module>
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 82, in __init__
    self.samba_data = sambaParser.SambaParser(self)
  File "/usr/share/system-config-samba/sambaParser.py", line 185, in __init__
    self.parseFile ()
  File "/usr/share/system-config-samba/sambaParser.py", line 228, in parseFile
    section = SambaSection (token.value)
  File "/usr/share/system-config-samba/sambaParser.py", line 49, in __init__
    raise Error ("section %s already defined" % (name))
NameError: global name 'Error' is not defined

Revision history for this message
Matteo Abis (matteo-latinblog) wrote :

As a workaround, remove the [printers] section in your smb.conf file,

then open /usr/share/system-config-samba/sambaParser.py
and add before the class SambaSection line (mind the indentation!):

class Error(Exception):
    pass

it will likely crash if you try to give the same name to two different shares, just don't do that.

Revision history for this message
papukaija (papukaija) wrote :

Marking as confirmed since this bug is affecting 5 people. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in system-config-samba (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel (pixelpainter) wrote :

Have this bug on 64bit Ubuntu 14.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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