We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install via pip with errors:
build' writing manifest file 'psutil.egg-info/SOURCES.txt' installing library code to build/bdist.linux-i686/egg running install_lib running build_py creating build creating build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/psutil copying psutil/_psosx.py -> build/lib.linux-i686-2.6/psutil copying psutil/_common.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pssunos.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pslinux.py -> build/lib.linux-i686-2.6/psutil copying psutil/_psbsd.py -> build/lib.linux-i686-2.6/psutil copying psutil/_psposix.py -> build/lib.linux-i686-2.6/psutil copying psutil/_compat.py -> build/lib.linux-i686-2.6/psutil copying psutil/__init__.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pswindows.py -> build/lib.linux-i686-2.6/psutil running build_ext building '_psutil_linux' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/psutil gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fe xceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=at om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pip e -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe r-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o build /temp.linux-i686-2.6/psutil/_psutil_linux.o psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory In file included from psutil/_psutil_linux.c:23: psutil/_psutil_linux.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:26: error: ‘CHAR_BIT’ undeclared here (not in a function) psutil/_psutil_linux.c: In function ‘ioprio_get’: psutil/_psutil_linux.c:52: warning: implicit declaration of function ‘syscall’ psutil/_psutil_linux.c: At top level: psutil/_psutil_linux.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:262: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:472: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘PsutilMethods’ psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before ‘PyO bject’ psutil/_psutil_linux.c: In function ‘init_psutil_linux’: psutil/_psutil_linux.c:558: error: ‘PyObject’ undeclared (first use in this func tion) psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported only once psutil/_psutil_linux.c:558: error: for each function it appears in.) psutil/_psutil_linux.c:558: error: ‘module’ undeclared (first use in this functi on) psutil/_psutil_linux.c:558: warning: implicit declaration of function ‘Py_InitMo dule’ psutil/_psutil_linux.c:558: error: ‘PsutilMethods’ undeclared (first use in this function) error: command 'gcc' failed with exit status 1 [root@hive psutil-2.1.3]# pip install psutilon.org/packag Downloading/unpacking psutil Downloading psutil-2.1.3.tar.gz (224kB): 224kB downloaded Running setup.py (path:/tmp/pip_build_root/psutil/setup.py) egg_info for packa ge psutil warning: no previously-included files matching '*' found under directory 'do cs/_build' Installing collected packages: psutil Running setup.py install for psutil building '_psutil_linux' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtun e=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-b uffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SO URCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o b uild/temp.linux-i686-2.6/psutil/_psutil_linux.o psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory In file included from psutil/_psutil_linux.c:23: psutil/_psutil_linux.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.c:26: error: ‘CHAR_BIT’ undeclared here (not in a funct ion) psutil/_psutil_linux.c: In function ‘ioprio_get’: psutil/_psutil_linux.c:52: warning: implicit declaration of function ‘syscal l’ psutil/_psutil_linux.c: At top level: psutil/_psutil_linux.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.c:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib ute__’ before ‘*’ token psutil/_psutil_linux.c:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri bute__’ before ‘*’ token psutil/_psutil_linux.c:234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri bute__’ before ‘*’ token psutil/_psutil_linux.c:262: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri bute__’ before ‘*’ token psutil/_psutil_linux.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri bute__’ before ‘*’ token psutil/_psutil_linux.c:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri bute__’ before ‘*’ token psutil/_psutil_linux.c:472: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri bute__’ before ‘PsutilMethods’ psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before ‘PyObject’ psutil/_psutil_linux.c: In function ‘init_psutil_linux’: psutil/_psutil_linux.c:558: error: ‘PyObject’ undeclared (first use in this function) psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported o nly once psutil/_psutil_linux.c:558: error: for each function it appears in.) psutil/_psutil_linux.c:558: error: ‘module’ undeclared (first use in this fu nction) psutil/_psutil_linux.c:558: warning: implicit declaration of function ‘Py_In itModule’ psutil/_psutil_linux.c:558: error: ‘PsutilMethods’ undeclared (first use in this function) error: command 'gcc' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools, tokenize ;__file__='/tmp/pip_build_root/psutil/setup.py';exec(compile(getattr(tokenize, ' open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LEQsL2-record/install-record.txt --single-version-externally- managed --compile: running install running build running build_py creating build creating build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/psutil copying psutil/_psosx.py -> build/lib.linux-i686-2.6/psutil copying psutil/_common.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pssunos.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pslinux.py -> build/lib.linux-i686-2.6/psutil copying psutil/_psbsd.py -> build/lib.linux-i686-2.6/psutil copying psutil/_psposix.py -> build/lib.linux-i686-2.6/psutil copying psutil/_compat.py -> build/lib.linux-i686-2.6/psutil copying psutil/__init__.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pswindows.py -> build/lib.linux-i686-2.6/psutil running build_ext building '_psutil_linux' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/psutil gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fe xceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=at om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pip e -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe r-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o build /temp.linux-i686-2.6/psutil/_psutil_linux.o psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory In file included from psutil/_psutil_linux.c:23: psutil/_psutil_linux.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:26: error: ‘CHAR_BIT’ undeclared here (not in a function) psutil/_psutil_linux.c: In function ‘ioprio_get’: psutil/_psutil_linux.c:52: warning: implicit declaration of function ‘syscall’ psutil/_psutil_linux.c: At top level: psutil/_psutil_linux.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:262: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:472: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘PsutilMethods’ psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before ‘PyO bject’ psutil/_psutil_linux.c: In function ‘init_psutil_linux’: psutil/_psutil_linux.c:558: error: ‘PyObject’ undeclared (first use in this func tion) psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported only once psutil/_psutil_linux.c:558: error: for each function it appears in.) psutil/_psutil_linux.c:558: error: ‘module’ undeclared (first use in this functi on) psutil/_psutil_linux.c:558: warning: implicit declaration of function ‘Py_InitMo dule’ psutil/_psutil_linux.c:558: error: ‘PsutilMethods’ undeclared (first use in this function) error: command 'gcc' failed with exit status 1 ---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build _root/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).re ad().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LEQsL2 -record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/psutil Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 185, in main return command.main(cmd_args) File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 47: ordinal not in range(128) [root@hive psutil-2.1.3]#
...or with tar, via setup.py:
[root@hive psutil-2.1.3]# python setup.py install running install running bdist_egg running egg_info writing psutil.egg-info/PKG-INFO writing top-level names to psutil.egg-info/top_level.txt writing dependency_links to psutil.egg-info/dependency_links.txt reading manifest file 'psutil.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'docs/_ build' writing manifest file 'psutil.egg-info/SOURCES.txt' installing library code to build/bdist.linux-i686/egg running install_lib running build_py creating build creating build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/psutil copying psutil/_psosx.py -> build/lib.linux-i686-2.6/psutil copying psutil/_common.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pssunos.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pslinux.py -> build/lib.linux-i686-2.6/psutil copying psutil/_psbsd.py -> build/lib.linux-i686-2.6/psutil copying psutil/_psposix.py -> build/lib.linux-i686-2.6/psutil copying psutil/_compat.py -> build/lib.linux-i686-2.6/psutil copying psutil/__init__.py -> build/lib.linux-i686-2.6/psutil copying psutil/_pswindows.py -> build/lib.linux-i686-2.6/psutil running build_ext building '_psutil_linux' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/psutil gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fe xceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=at om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pip e -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffe r-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o build /temp.linux-i686-2.6/psutil/_psutil_linux.o psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory In file included from psutil/_psutil_linux.c:23: psutil/_psutil_linux.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:26: error: ‘CHAR_BIT’ undeclared here (not in a function) psutil/_psutil_linux.c: In function ‘ioprio_get’: psutil/_psutil_linux.c:52: warning: implicit declaration of function ‘syscall’ psutil/_psutil_linux.c: At top level: psutil/_psutil_linux.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute_ _’ before ‘*’ token psutil/_psutil_linux.c:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:262: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘*’ token psutil/_psutil_linux.c:472: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute __’ before ‘PsutilMethods’ psutil/_psutil_linux.c:509: error: expected specifier-qualifier-list before ‘PyO bject’ psutil/_psutil_linux.c: In function ‘init_psutil_linux’: psutil/_psutil_linux.c:558: error: ‘PyObject’ undeclared (first use in this func tion) psutil/_psutil_linux.c:558: error: (Each undeclared identifier is reported only once psutil/_psutil_linux.c:558: error: for each function it appears in.) psutil/_psutil_linux.c:558: error: ‘module’ undeclared (first use in this functi on) psutil/_psutil_linux.c:558: warning: implicit declaration of function ‘Py_InitMo dule’ psutil/_psutil_linux.c:558: error: ‘PsutilMethods’ undeclared (first use in this function) error: command 'gcc' failed with exit status 1 [root@hive psutil-2.1.3]#
The text was updated successfully, but these errors were encountered:
You need to "yum install python-devel" (or something like that).
Sorry, something went wrong.
No branches or pull requests
Can't install via pip with errors:
...or with tar, via setup.py:
The text was updated successfully, but these errors were encountered: