installer crashed just after vnc server url return 404 error

Bug #139603 reported by Deeps
6
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ubiquity

Traceback (most recent call last):
  File "/usr/lib/ubiquity/bin/ubiquity", line 211, in <module>
    main()
  File "/usr/lib/ubiquity/bin/ubiquity", line 206, in main
    install(args[0])
  File "/usr/lib/ubiquity/bin/ubiquity", line 65, in install
    ret = wizard.run()
  File "/usr/lib/ubiquity/ubiquity/frontend/mythbuntu_ui.py", line 251, in run
    self.progress_loop()
  File "/usr/lib/ubiquity/ubiquity/frontend/mythbuntu_ui.py", line 325, in progress_loop
    (ret, realtb))
RuntimeError: Install failed with exit code 1
Traceback (most recent call last):
  File "/usr/share/ubiquity/mythbuntu_install.py", line 263, in <module>
    install.run()
  File "/usr/share/ubiquity/mythbuntu_install.py", line 137, in run
    self.configure_services()
  File "/usr/share/ubiquity/mythbuntu_install.py", line 211, in configure_services
    handler.run()
  File "/usr/lib/ubiquity/ubiquity/components/mythbuntu_apply.py", line 149, in run
    self.xorg_conf.writeConfig(self.root + '/etc/X11/xorg.conf')
  File "/var/lib/python-support/python2.5/xorgconfig.py", line 618, in writeConfig
    fhandle = codecs.open(filename,'w',locale.getpreferredencoding())
  File "locale.py", line 514, in getpreferredencoding
    setlocale(LC_CTYPE, "")
  File "locale.py", line 478, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting

Revision history for this message
Deeps (jvdeepak) wrote :
Revision history for this message
Deeps (jvdeepak) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

IMO this is a bug in xorgconfig.py. Note that in one place it does:

            try:
                loc = locale.getpreferredencoding()
            except locale.Error:
                loc = 'ANSI_X3.4-1968'

... while in the offending function it does:

    def writeConfig(self,filename):
        fhandle = codecs.open(filename,'w',locale.getpreferredencoding())
        fhandle.write(self.toString())
        fhandle.close()

I suggest this code instead to match the first segment I quoted:

    def writeConfig(self,filename):
        try:
            encoding = locale.getpreferredencoding()
        except locale.Error:
            encoding = 'ANSI_X3.4-1968'
        fhandle = codecs.open(filename,'w',encoding)
        fhandle.write(self.toString())
        fhandle.close()

Revision history for this message
Sebastian Kügler (sebasje) wrote : Re: [Bug 139603] Re: installer crashed just after vnc server url return 404 error

On Friday 14 September 2007 16:20:25 Colin Watson wrote:
>         try:
>             encoding = locale.getpreferredencoding()
>         except locale.Error:
>             encoding = 'ANSI_X3.4-1968'

Thanks Colin, merged upstream.
--
sebas

 http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9

Revision history for this message
Mario Limonciello (superm1) wrote :

This was included in 0.8.0svn20070928-0ubuntu1

Changed in kde-guidance:
status: New → 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.