Smart now crashes on my openSuse 11 - Traceback - line 194

Bug #289335 reported by BigPat
2
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
Undecided
Unassigned

Bug Description

I went thru some openSuse updater updates that messed me up for Smart Package Manager I believe...

openSuse 11.0
kernel 2.6.25.16-0.1
Python 2.5.2-26.2
Smart 0.52-90.2-i586

When I run: smart --gui

Smart does indeed start, momentarily, and then arrives at the following large error:

Traceback (most recent call last):

  File "/usr/bin/smart", line 194, in <module>
    main(sys.argv[1:])

  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)

  File "/usr/lib/python2.5/site-packages/smart/interfaces/gtk/interactive.py", line 373, in run
    self._ctrl.reloadChannels()

  File "/usr/lib/python2.5/site-packages/smart/control.py", line 354, in reloadChannels
    if not channel.fetch(self._fetcher, progress):

  File "/usr/lib/python2.5/site-packages/smart/channels/rpm_md.py", line 62, in fetch
    item = fetcher.enqueue(repomd)

  File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line 170, in enqueue
    item = FetchItem(self, url, mirror)

  File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line 410, in __init__
    self._urlobj = URL(mirror.getNext())

  File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line 575, in __init__
    self.set(url)

  File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line 608, in set
    user, host = urllib.splituser(host)

  File "/usr/lib/python2.5/urllib.py", line 1050, in splituser
    match = _userprog.match(host)

TypeError: expected string or buffer

It all worked fine until a week or so back, and seems like I needed to get creative to get a few Suse updates as well. Obviously, I made some wrong moves.

Ideas?

Thanks,

-Pat

Revision history for this message
Glenn D. (doiggl-hotmail) wrote :

How about trying a later version e.g smart v1.2-3.1
# rpm -qa | grep -i "smart-"
smart-gui-1.2-3.1
smart-ksmarttray-1.2-3.1
smart-1.2-3.1

rpms see http://download.opensuse.org/repositories/smart/openSUSE_11.1/

Revision history for this message
BigPat (bdrline07) wrote : Re: [Bug 289335] Re: Smart now crashes on my openSuse 11 - Traceback - line 194

Glenn D. wrote:
> How about trying a later version e.g smart v1.2-3.1
> # rpm -qa | grep -i "smart-"
> smart-gui-1.2-3.1
> smart-ksmarttray-1.2-3.1
> smart-1.2-3.1
>
> rpms see http://download.opensuse.org/repositories/smart/openSUSE_11.1/
Good try, but not so good at this end:

    File "/usr/bin/smart", line 195, in <module>
        main(sys.argv[1:])

      File "/usr/bin/smart", line 168, in main
        exitcode = iface.run(opts.command, opts.argv)

      File
    "/usr/lib/python2.5/site-packages/smart/interfaces/gtk/interactive.py",
    line 373, in run
        self._ctrl.reloadChannels()

      File "/usr/lib/python2.5/site-packages/smart/control.py", line
    359, in reloadChannels
        if not channel.fetch(self._fetcher, progress):

      File "/usr/lib/python2.5/site-packages/smart/channels/rpm_md.py",
    line 62, in fetch
        item = fetcher.enqueue(repomd)

      File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line
    170, in enqueue
        item = FetchItem(self, url, mirror)

      File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line
    416, in __init__
        self._urlobj = URL(mirror.getNext())

      File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line
    581, in __init__
        self.set(url)

      File "/usr/lib/python2.5/site-packages/smart/fetcher.py", line
    614, in set
        user, host = urllib.splituser(host)

      File "/usr/lib/python2.5/urllib.py", line 1050, in splituser
        match = _userprog.match(host)

    TypeError: expected string or buffer

As well, I grabbed the same version # you pointed me to, but for
openSuse 11.0, which is what I run on desktop...

-Pat

Revision history for this message
Glenn D. (doiggl-hotmail) wrote :

As of note you python 2.5.2-26.2.
I use python python-2.6.0-5.4.
The python version 2.6 may help you, if you can upgrade to that
opensuse mirrors -> http://mirrors.opensuse.org/list/all.html
Im using openSuse 11.1 64 bit
Good luck

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.