| Summary: | =dev-python/pillow-4.2.1[-ole] - "pkg_resources.DistributionNotFound: The 'olefile' distribution was not found and is required by pillow" due to incorrect egg | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | josef.95 <josef64> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | itumaykin+gentoo, media-video, mgorny, proxy-maint |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge --info
full build.log (zip compessed) |
||
Created attachment 485616 [details]
full build.log (zip compessed)
Please show `emerge -pqv pillow' Not reproducible with current stable rst2pdf-0.93-r2 and pillow-3.4.2-r1. (In reply to Coacher from comment #2) > Please show `emerge -pqv pillow' # emerge -pqv pillow [ebuild R ] dev-python/pillow-4.2.1 USE="jpeg tiff truetype zlib -doc -examples -imagequant -jpeg2k -lcms -ole {-test} -tk -webp" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6" And yes, after downgrade to (current stable) =dev-python/pillow-3.4.2-r1 version builds and works mpv fine. Thanks! Steps to reproduce.
emerge -pqv pillow:
$ emerge -pqv =dev-python/pillow-4.2.1
[ebuild R ] dev-python/pillow-4.2.1 USE="jpeg jpeg2k lcms tiff truetype webp zlib -doc -examples -imagequant -ole {-test} -tk" PYTHON_TARGETS="python2_7 python3_4 -python3_5 -python3_6"
$ grep 'olefile' -R /usr/lib/python{2.7,3.4}/site-packages/Pillow-4.2.1*
/usr/lib/python2.7/site-packages/Pillow-4.2.1-py2.7.egg-info/requires.txt:olefile
/usr/lib/python3.4/site-packages/Pillow-4.2.1-py3.4.egg-info/requires.txt:olefile
Which results in
$ python
Python 3.4.5 (default, Apr 25 2017, 19:30:09)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.get_distribution('PIL')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 552, in get_distribution
dist = get_provider(dist)
File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 426, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 854, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'PIL' distribution was not found and is required by the application
and causes problems for consumers as seen in comment 0.
duplicate of #625014 It's a bug in pillow-4* ebuilds. *** This bug has been marked as a duplicate of bug 625014 *** |
Created attachment 485614 [details] emerge --info Hello, =media-video/mpv-0.25.0-r2 failed here on build. [ 14/218] Compiling DOCS/man/mpv.rst 22:48:10 runner ' /usr/bin/rst2html.py ../DOCS/man/mpv.rst DOCS/man/mpv.html ' [ 15/218] Compiling DOCS/man/mpv.rst 22:48:10 runner ' /usr/bin/rst2man.py --strip-elements-with-class=contents ../DOCS/man/mpv.rst DOCS/man/mpv.1 ' [ 16/218] Compiling DOCS/man/mpv.rst 22:48:10 runner ' /usr/bin/rst2pdf -c -b 1 --repeat-table-rows ../DOCS/man/mpv.rst -o DOCS/man/mpv.pdf ' Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/rst2pdf", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3037, in <module> @_call_aside File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3021, in _call_aside f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3050, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master ws.require(__requires__) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 969, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 855, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'olefile' distribution was not found and is required by pillow Waf: Leaving directory `/var/tmp/portage/media-video/mpv-0.25.0-r2/work/mpv-0.25.0/build' Build failed -> task in 'rst2pdf' failed with exit status 1: {task 140483718628984: rst2pdf mpv.rst -> mpv.pdf} ' /usr/bin/rst2pdf -c -b 1 --repeat-table-rows ../DOCS/man/mpv.rst -o DOCS/man/mpv.pdf ' * ERROR: media-video/mpv-0.25.0-r2::gentoo failed (compile phase): * build failed # emerge -pqv '=media-video/mpv-0.25.0-r2::gentoo' [ebuild U ] media-video/mpv-0.25.0-r2 [0.25.0-r1] USE="X alsa bluray cdda cli cuda doc egl encode iconv jpeg libass lua opengl pulseaudio uchardet vdpau xv (-aqua) -archive (-coreaudio) -cplugins -drm -dvb -dvd -gbm -jack -lcms (-libav) -libcaca -libmpv -luajit -openal -oss (-raspberry-pi) -rubberband -samba -sdl (-selinux) {-test} -tools -v4l -vaapi -vf-dlopen -wayland -zsh-completion" CPU_FLAGS_X86="-sse4_1" PYTHON_TARGETS="python2_7 python3_5 -python3_4" Previous versions Fri Jun 9 02:33:25 2017 >>> media-video/mpv-0.25.0 Sun Jun 11 23:37:35 2017 >>> media-video/mpv-0.25.0-r1 builds fine.