** Description changed:

+ [impact] installing python3 modules that need downloading does not work
+ due to use of a function not available in python3
+ 
+ [Fix] upstream now uses a method available in all python versions, that fix 
applies to oneiric. (https://bitbucket.org/tarek/distribute/issue/206)
+ Note the fix does not reintroduce issue 196 as the method only returns one 
entry of the header even if there are multiple.
+ (https://bitbucket.org/tarek/distribute/issue/196/)
+ 
+ [Testcase]
+ sudo apt-get install python3-setuptools
+ mkdir -p /tmp/inst//lib/python3.2/site-packages
+ PYTHONPATH=/tmp/inst//lib/python3.2/site-packages easy_install3 --prefix 
/tmp/inst/ pyzmq
+ #or any other packages that is not installed
+ 
+ expected result: successful installation in the prefix
+ real result: traceback see original report
+ 
+ 
+ original report:
  $ sudo easy_install3 pyzmq
  Searching for pyzmq
  Reading http://pypi.python.org/simple/pyzmq/
  Reading http://github.com/zeromq/pyzmq
  Reading http://github.com/zeromq/pyzmq/downloads
  Best match: pyzmq 2.1.11
  Downloading https://github.com/downloads/zeromq/pyzmq/pyzmq-2.1.11.zip
  Traceback (most recent call last):
    File "/usr/bin/easy_install3", line 9, in <module>
      load_entry_point('distribute==0.6.16dev-r0', 'console_scripts', 
'easy_install')()
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", 
line 1912, in main
      with_ei_usage(lambda:
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", 
line 1893, in with_ei_usage
      return f()
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", 
line 1916, in <lambda>
      distclass=DistributionWithoutHelpCommands, **kw
    File "/usr/lib/python3.2/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", 
line 364, in run
      self.easy_install(spec, not self.no_deps)
    File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", 
line 591, in easy_install
      self.local_index
    File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 
492, in fetch_distribution
      dist = find(requirement)
    File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 
475, in find
      location=self.download(dist.location, tmpdir)
    File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 
414, in download
      found = self._download_url(scheme.group(1), spec, tmpdir)
    File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 
663, in _download_url
      return self._attempt_download(url, filename)
    File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 
672, in _attempt_download
      headers = self._download_to(url, filename)
    File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 
583, in _download_to
      content_length = headers.getheaders("Content-Length")[0]
  AttributeError: 'HTTPMessage' object has no attribute 'getheaders'
  
  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: python3-setuptools 0.6.16-1
  ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
  Uname: Linux 3.0.0-14-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  Date: Tue Jan  3 00:33:54 2012
  InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Release amd64 
(20101008.1)
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, no user)
   LANG=ru_RU.UTF-8
   SHELL=/bin/bash
  SourcePackage: distribute
  UpgradeStatus: Upgraded to oneiric on 2011-08-10 (145 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/910965

Title:
  [python3-setuptools] AttributeError: 'HTTPMessage' object has no
  attribute 'getheaders'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/distribute/+bug/910965/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to