Bug 921829 - Networking Card python script hostname issue
Summary: Networking Card python script hostname issue
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Radek Vykydal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-15 03:29 UTC by Benjamin Adams
Modified: 2013-06-17 14:21 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-06-17 14:21:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
IBM T60 Laptop (76.79 KB, text/plain)
2013-03-15 03:29 UTC, Benjamin Adams
no flags Details

Description Benjamin Adams 2013-03-15 03:29:47 UTC
Created attachment 710382 [details]
IBM T60 Laptop

I'm on a IBM T60  I get the fallowing error on the welcome screen with
languages.  I select English (US) ... Hitting Continue I get:

(Attached is my dmesg)

(anaconda:2413): Gtk-WARNING **: Overriding tab label for notebook
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/__init__.py",
line 77, in <lambda>
    self.window.connect("continue-clicked", lambda *args:
self._on_continue_clicked(cb))
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py",
line 287, in _on_continue_clicked
    StandaloneSpoke._on_continue_clicked(self, cb)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/__init__.py",
line 73, in _on_continue_clicked
    cb()
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/__init__.py",
line 234, in _on_continue_clicked
    nextAction = self._instantiateAction(self._actions[1])
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/__init__.py",
line 77, in _instantiateAction
    obj = actionClass(self.data, self.storage, self.payload, self.instclass)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/network.py",
line 1091, in __init__
    self.network_control_box.hostname = self.data.network.hostname
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/network.py",
line 960, in hostname
    self.entry_hostname.set_text(value)
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 47, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value



--------------------------------------------
My work around
This is on i386 not sure about x64 coding.

Fix was in file:
/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/network.py

line 960:
from
    @hostname.setter
    def hostname(self, value):
        self.entry_hostname.set_text(value)

To:
    @hostname.setter
    def hostname(self, value):
+        if not value:
+            value = 'localhost'
        self.entry_hostname.set_text(value)

Installing also on wireless without network connection.

Comment 1 Radek Vykydal 2013-06-17 14:21:26 UTC
This should be fixed in Fedora 19, there were a lot of fixes for setting of default for hostname since F18 (most probably you were hitting the same issue as in https://bugzilla.redhat.com/show_bug.cgi?id=893892#c4). Please feel free to reopen the bug if you hit the issue with F19.


Note You need to log in before you can comment on or make changes to this bug.