Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529118 - =net-misc/youtube-dl-2014-11-12.1 - /usr/bin/python2.7 setup.py build: File "/usr/lib64/python2.7/ctypes/__init__.py", line 279, in _reset_cache: CFUNCTYPE(c_int)(lambda: None): MemoryError
Summary: =net-misc/youtube-dl-2014-11-12.1 - /usr/bin/python2.7 setup.py build: File "...
Status: RESOLVED DUPLICATE of bug 529044
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-13 07:09 UTC by Jim Dory
Modified: 2014-11-18 19:29 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_529118.txt,5.52 KB, text/plain)
2014-11-13 07:09 UTC, Jim Dory
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Dory 2014-11-13 07:09:07 UTC
Created attachment 389216 [details]
emerge --info

>>> Compiling source in /var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work/youtube-dl ...
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 12, in <module>
    from setuptools import setup
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/usr/lib64/python2.7/site-packages/setuptools/extension.py", line 8, in <module>
    from .dist import _get_unpatched
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 18, in <module>
    from setuptools import windows_support
  File "/usr/lib64/python2.7/site-packages/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 555, in <module>
    _reset_cache()
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 279, in _reset_cache
    CFUNCTYPE(c_int)(lambda: None)
MemoryError
 * ERROR: net-misc/youtube-dl-2014.11.12.1::gentoo failed (compile phase):
 *   (no error message)

I was able to emerge it successfully by commenting out line 279 in that file /usr/lib64/python2.7/ctypes/__init__.py
Comment 1 Jim Dory 2014-11-13 07:14:06 UTC
could be config error on my part as it is a newly installed system that had some problems during install.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-13 12:00:30 UTC
The youtube-dl ebuild does nothing special here.
Comment 3 Michael 2014-11-13 23:45:32 UTC
I can confirm I have the same issue.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 15:07:10 UTC
Please attach the entire build log to this bug report.
Comment 5 Jim Dory 2014-11-14 16:40:27 UTC
emerge -av youtube-dl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-misc/youtube-dl-2014.11.12.1  USE="-offensive {-test}" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_3 -python3_4" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) net-misc/youtube-dl-2014.11.12.1::gentoo
 * youtube-dl-2014.11.12.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                             [ ok ]
>>> Unpacking source...
>>> Unpacking youtube-dl-2014.11.12.1.tar.gz to /var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work
>>> Source unpacked in /var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work
>>> Preparing source in /var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work/youtube-dl ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work/youtube-dl ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work/youtube-dl ...
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 12, in <module>
    from setuptools import setup
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/usr/lib64/python2.7/site-packages/setuptools/extension.py", line 8, in <module>
    from .dist import _get_unpatched
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 18, in <module>
    from setuptools import windows_support
  File "/usr/lib64/python2.7/site-packages/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 555, in <module>
    _reset_cache()
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 279, in _reset_cache
    CFUNCTYPE(c_int)(lambda: None)
MemoryError
 * ERROR: net-misc/youtube-dl-2014.11.12.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2994:  Called distutils-r1_src_compile
 *   environment, line  808:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  293:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  797:  Called distutils-r1_python_compile
 *   environment, line  677:  Called esetup.py 'build'
 *   environment, line 1254:  Called die
 * The specific snippet of code:
 *       "${@}" || die
 * 
 * If you need support, post the output of `emerge --info '=net-misc/youtube-dl-2014.11.12.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/youtube-dl-2014.11.12.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work/youtube-dl'
 * S: '/var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/work/youtube-dl'

>>> Failed to emerge net-misc/youtube-dl-2014.11.12.1, Log file:

>>>  '/var/tmp/portage/net-misc/youtube-dl-2014.11.12.1/temp/build.log'
Comment 6 Sebastian Rose 2014-11-17 14:46:02 UTC
This error is related to SELINUX, see http://forums.gentoo.org/viewtopic-t-1004104.html
Comment 7 Michael 2014-11-17 23:24:39 UTC
(In reply to Sebastian Rose from comment #6)
> This error is related to SELINUX, see
> http://forums.gentoo.org/viewtopic-t-1004104.html


Can't confirm that. I'm able to megre other packages no problem. And I don't use selinux.
Comment 8 SpanKY gentoo-dev 2014-11-18 19:28:57 UTC

*** This bug has been marked as a duplicate of bug 529044 ***