Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506528 - dev-python/w3lib should depend on dev-python/six - fails to import six with system python3
Summary: dev-python/w3lib should depend on dev-python/six - fails to import six with s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Maxim Koltsov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 10:44 UTC by Vladimir Romanov (RETIRED)
Modified: 2014-10-24 11:35 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 Vladimir Romanov (RETIRED) gentoo-dev 2014-04-02 10:44:06 UTC
When someone installs dev-python/w3lib, in /usr/lib64/python2.7/site-packages/w3lib/form.py there is 

import six
if six.PY2:
  something
else:
  something

But six.py (dev-python/six) defines six.PY3, indicating that python 3 is running, not six.PY2 (python 2 is running). At least this is in six 1.3.0, which is last version in portage for AMD64. 

Six version 1.6.1 (last in Portage, but masked for AMD64) works fine, and has PY2 and PY3.

Second: dev-python/w3lib doesn't depend at dev-python/six at all, althrough import six is in first line of form.py.

Summarize:
- Please unmask last dev-python/six on amd64
- Why six is not dependency of w3lib?

Reproducible: Always
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2014-06-27 12:57:54 UTC
fixed at least for -1.6

*w3lib-1.6 (10 Jun 2014)

  10 Jun 2014; Ian Delaney <idella4@gentoo.org> +w3lib-1.6.ebuild,
  -w3lib-1.0.ebuild, -w3lib-1.1.ebuild, -w3lib-1.2-r1.ebuild, -w3lib-1.2.ebuild,
  -w3lib-1.3.ebuild:
  bump; drop py2.6 pypy2_0 add py3 support, rm old