Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 603948

Summary: =net-misc/youtube-dl-2016.12.22 - /usr/lib64/python3.4/site-packages/py2exe/_wapi.py: NameError: name 'WinDLL' is not defined
Product: Gentoo Linux Reporter: Martin <rmarku>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED CANTFIX    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment
emerge --info

Description Martin 2016-12-28 16:49:02 UTC
Created attachment 457638 [details]
build.log

When I try to upgrade to 2016.12.22, emerge fail whit the following error:

copying youtube_dl/postprocessor/embedthumbnail.py -> /var/tmp/portage/net-misc/youtube-dl-2016.12.22/work/youtube-dl-python2_7/lib/youtube_dl/postprocessor
warning: build_py: byte-compiling is disabled, skipping.

 * python3_4: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.4 setup.py build
Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    import py2exe
  File "/usr/lib64/python3.4/site-packages/py2exe/__init__.py", line 9, in <module>
    patch_distutils()
  File "/usr/lib64/python3.4/site-packages/py2exe/patch_distutils.py", line 68, in patch_distutils
    from . import distutils_buildexe
  File "/usr/lib64/python3.4/site-packages/py2exe/distutils_buildexe.py", line 91, in <module>
    from . import runtime
  File "/usr/lib64/python3.4/site-packages/py2exe/runtime.py", line 3, in <module>
    from .dllfinder import Scanner, pydll
  File "/usr/lib64/python3.4/site-packages/py2exe/dllfinder.py", line 5, in <module>
    from . import _wapi
  File "/usr/lib64/python3.4/site-packages/py2exe/_wapi.py", line 4, in <module>
    _kernel32 = WinDLL("kernel32")
NameError: name 'WinDLL' is not defined
 * ERROR: net-misc/youtube-dl-2016.12.22::gentoo failed (compile phase):
 *   (no error message)
Comment 1 Martin 2016-12-28 16:49:40 UTC
Created attachment 457640 [details]
environment
Comment 2 Martin 2016-12-28 16:50:08 UTC
Created attachment 457642 [details]
emerge --info
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2016-12-28 17:36:53 UTC
What owns /usr/lib64/python3.4/site-packages/py2exe/* on your system?
Comment 4 Martin 2016-12-28 22:20:50 UTC
(In reply to Jeroen Roovers from comment #3)
> What owns /usr/lib64/python3.4/site-packages/py2exe/* on your system?

It was installed manually installed with pip. I removed it and youtube-dl emerged ok. 

thanks