| Summary: | dev-python/d2to1-0.2.11:ImportError: cannot import name urllib_parse | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | phmagic |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | emerge history | ||
|
Description
Toralf Förster
2015-06-07 17:54:10 UTC
~/cvsPortage/gentoo-x86/dev-python/d2to1 $ PYTHON_TARGETS=python3_3 ebuild d2to1-0.2.11.ebuild clean compile
yields
* python3_3: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.3 setup.py build
running build
running build_py
creating /mnt/gen2/TmpDir/portage/dev-python/d2to1-0.2.11/work/d2to1-0.2.11-python3_3/lib
creating /mnt/gen2/TmpDir/portage/dev-python/d2to1-0.2.11/work/d2to1-0.2.11-python3_3/lib/d2to1
------------------------------------------------------------------------------
>>> Source compiled.
It builds. however here is a key difference.
$ l /usr/lib64/python3.3/site-packages/html5lib/sanitizer.py
ls: cannot access /usr/lib64/python3.3/site-packages/html5lib/sanitizer.py: No such file or directory
$ find /usr/lib64/python3.3/ -name sanitizer.py
/usr/lib64/python3.3/site-packages/pip/_vendor/html5lib/sanitizer.py
/usr/lib64/python3.3/site-packages/pip/_vendor/html5lib/filters/sanitizer.py
Offhand I do not know the why, just the what. The sanitizer.py in your system is not the same as my /pip/_vendor/html5lib/filters/sanitizer.py. It proves that all things are not equal is the system setup. Suggest another cross test.
According to another who viewed this, your system appears to have 1 bleach which has pulled in 2 html5lib which has pulled in 3 dev-python/six/ What version of 3 dev-python/six/ do you have emerged? (In reply to Ian Delaney from comment #2) > According to another who viewed this, your system appears to have > 1 bleach which has pulled in > 2 html5lib which has pulled in > 3 dev-python/six/ > > What version of 3 dev-python/six/ do you have emerged? Erm - the already attached emerge history shows : Tue Jun 2 22:10:03 2015 >>> dev-python/six-1.9.0-r1 ;) Show output of: python3.3 -c 'import six; print(six)' python3.3 -c 'from six.moves import urllib_parse; print(urllib_parse)' (In reply to Arfrever Frehtes Taifersar Arahesis from comment #4) > Show output of: > python3.3 -c 'import six; print(six)' > python3.3 -c 'from six.moves import urllib_parse; print(urllib_parse)' $ sudo chroot amd64-h*-s* /bin/bash # python3.3 -c 'import six; print(six)' <module 'six' from '/usr/lib64/python3.3/site-packages/six.py'> # python3.3 -c 'from six.moves import urllib_parse; print(urllib_parse)' <module 'urllib.parse' from '/usr/lib64/python3.3/urllib/parse.py'> # python -V Python 2.7.9 # exit exit According to comment #0, 'from six.moves import urllib_parse' was not working during installation of dev-python/d2to1. Is installation of dev-python/d2to1 working now? I have emerged dev-python/html5lib-0.99999 && dev-python/bleach-1.4.1 and still it all works. dev-python/d2to1 $ python3.4 -c "from six.moves import urllib_parse as urlparse" imports dev-python/d2to1 $ python2.7 -c "from six.moves import urllib_parse as urlparse" imports ~/cvsPortage/gentoo-x86/dev-python/d2to1 $ ebuild d2to1-0.2.11.ebuild clean install builds. unless you can get a cross test that duplicates this should be closed works for me. (In reply to Ian Delaney from comment #7) > unless you can get a cross test that duplicates this should be closed works > for me. It's easy to setup a new unstable hardened chroot image - which packages has to be installed in which order ? (In reply to Toralf Förster from comment #8) > (In reply to Ian Delaney from comment #7) > > > unless you can get a cross test that duplicates this should be closed works > > for me. > It's easy to setup a new unstable hardened chroot image - which packages has > to be installed in which order ? Lost me there. I might re-word that. Unless someone else can provide a cross test that duplicates the error..... But yes a new image might do it. I wonder if it's because it's a hardened, but I doubt it. (In reply to Ian Delaney from comment #7) > I have emerged dev-python/html5lib-0.99999 && dev-python/bleach-1.4.1 and > still it all works. > > dev-python/d2to1 $ python3.4 -c "from six.moves import urllib_parse as > urlparse" > imports > dev-python/d2to1 $ python2.7 -c "from six.moves import urllib_parse as > urlparse" > imports > > ~/cvsPortage/gentoo-x86/dev-python/d2to1 $ ebuild d2to1-0.2.11.ebuild clean > install > > builds. > > unless you can get a cross test that duplicates this should be closed works > for me. Works for me I also faced this build failure with PYTHON_TARGETS="python2_7 python3_4". >eix dev-python/six [I] dev-python/six Available versions: 1.10.0 {doc test PYTHON_TARGETS="pypy pypy3 python2_7 python3_3 python3_4 python3_5"} Installed versions: 1.10.0(06:20:27 AM 05/16/2016)(-doc -test PYTHON_TARGETS="python2_7 python3_4 -pypy -pypy3 -python3_3 -python3_5") Homepage: https://bitbucket.org/gutworth/six https://pypi.python.org/pypi/six Description: Python 2 and 3 compatibility library Please tell if I can be useful in debugging. please retest with 0.2.12_p1, thanks (In reply to Pacho Ramos from comment #12) > please retest with 0.2.12_p1, thanks I successfully emerged =dev-python/d2to1-0.2.12_p1 |