Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499230 - app-portage/mirrorselect - `mirrorselect -D` with python-3.3 returns "TypeError: 'module' object is not callable"
Summary: app-portage/mirrorselect - `mirrorselect -D` with python-3.3 returns "TypeErr...
Status: RESOLVED DUPLICATE of bug 483232
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-25 14:40 UTC by M. B.
Modified: 2014-01-25 15:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_499230.txt,22.57 KB, text/plain)
2014-01-25 14:41 UTC, M. B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M. B. 2014-01-25 14:40:36 UTC
When running `mirrorselect -D -b10 -s5` i get the following result:

* Downloading a list of mirrors... Got 221 mirrors.
* Downloading 100k files from each mirror... [1 of 221]Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.3/mirrorselect", line 61, in <module>
    MirrorSelect().main(sys.argv)
  File "/usr/lib64/python3.3/site-packages/mirrorselect/main.py", line 411, in main
    urls = self.select_urls(hosts, options)
  File "/usr/lib64/python3.3/site-packages/mirrorselect/main.py", line 374, in select_urls
    selector = Deep(hosts, options, self.output)
  File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 273, in __init__
    self.deeptest()
  File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 293, in deeptest
    mytime, ignore = self.deeptime(host, maxtime)
  File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 332, in deeptime
    url_parts = url_parse(url)
TypeError: 'module' object is not callable


Running `python2 $(which mirrorselect) -D -b10 -s5`, however, works like a charm.





Reproducible: Always

Steps to Reproduce:
1. set python-3.3 as default python
2. run `mirrorselect -D`
Actual Results:  
Python spills its guts.

Expected Results:  
A shiny new list of well-performing mirrors in my make.conf.

It can be worked around, however, by running `python2 $(which mirrorselect) -D`, provided you still have a Python v2 installed.

$ eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3 *
Comment 1 M. B. 2014-01-25 14:41:10 UTC
Created attachment 368692 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-25 15:54:47 UTC

*** This bug has been marked as a duplicate of bug 483232 ***