Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421869 - www-misc/reflector-2014.11 version bump and deprecated distutils.eclass
Summary: www-misc/reflector-2014.11 version bump and deprecated distutils.eclass
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2016-09-20
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2012-06-19 00:50 UTC by Michael Weber (RETIRED)
Modified: 2016-10-01 07:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2012-06-19 00:50:59 UTC
the current one is broken on

# reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
error: failed to retrieve mirror data: time data '2012-06-18T21:20:01Z' does not match format '%Y-%m-%d %H:%M:%S'#

The 3to2.patch fails, 2.[67] doesn't work without

x reflector 1 # python2.7 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist 
Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
  File "/usr/lib64/python2.7/site-packages/Reflector.py", line 3, in <module>
    import urllib.request
ImportError: No module named request

x reflector 1 # python2.6 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
  File "/usr/lib64/python2.6/site-packages/Reflector.py", line 3, in <module>
    import urllib.request
ImportError: No module named request

python 3.* is kinda broken, at least with default python 3.2


x reflector 1 # python3.1 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python3.1/threading.py", line 533, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.1/threading.py", line 486, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.1/site-packages/Reflector.py", line 223, in worker
    q_out.put((url, rate, dt))
UnboundLocalError: local variable 'dt' referenced before assignment

x reflector 137 # python3.2 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib64/python3.2/threading.py", line 740, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.2/threading.py", line 693, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.2/site-packages/Reflector.py", line 223, in worker
    q_out.put((url, rate, dt))
UnboundLocalError: local variable 'dt' referenced before assignment
Comment 1 Pacho Ramos gentoo-dev 2016-08-17 14:14:15 UTC
CCing treecleaners
Comment 2 Pacho Ramos gentoo-dev 2016-10-01 07:00:05 UTC
removed