Problem at installing with pip #54

Closed
matheuspatury opened this Issue Aug 2, 2012 · 4 comments

Comments

Projects
None yet
3 participants

Sys: ubuntu 12.04 updated
python 3.2

log file:


/usr/bin/tornado2.3_pip run on Thu Aug 2 16:00:46 2012
Downloading/unpacking ujson

Running setup.py egg_info for package ujson

running egg_info
writing pip-egg-info/ujson.egg-info/PKG-INFO
writing top-level names to pip-egg-info/ujson.egg-info/top_level.txt
writing dependency_links to pip-egg-info/ujson.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found


reading manifest file 'pip-egg-info/ujson.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'setup.y'

writing manifest file 'pip-egg-info/ujson.egg-info/SOURCES.txt'
****************************************************************************************************

If you want to run the tests be sure to run 2to3 on them first, e.g. `2to3 -w tests/tests.py`.

****************************************************************************************************

Installing collected packages: ujson

Running setup.py install for ujson

Running command /virtualenv/tornado2.3/bin/python3 -c "import setuptools;__file__='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-6sx1k9-record/install-record.txt --install-headers /virtualenv/tornado2.3/include/site/python3.2
running install
running build
running build_ext
building 'ujson' extension

creating build
creating build/temp.linux-x86_64-3.2
creating build/temp.linux-x86_64-3.2/python
creating build/temp.linux-x86_64-3.2/lib
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -I./python -I./lib -I/usr/include/python3.2mu -c ./python/ujson.c -o build/temp.linux-x86_64-3.2/./python/ujson.o

In file included from ./python/ujson.c:34:0:

./python/py_defines.h:34:20: erro fatal: Python.h: Arquivo ou diretório não encontrado

compilação terminada.

error: command 'gcc' failed with exit status 1

Complete output from command /virtualenv/tornado2.3/bin/python3 -c "import setuptools;__file__='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-6sx1k9-record/install-record.txt --install-headers /virtualenv/tornado2.3/include/site/python3.2:

running install

running build

running build_ext

building 'ujson' extension

creating build

creating build/temp.linux-x86_64-3.2

creating build/temp.linux-x86_64-3.2/python

creating build/temp.linux-x86_64-3.2/lib

gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -I./python -I./lib -I/usr/include/python3.2mu -c ./python/ujson.c -o build/temp.linux-x86_64-3.2/./python/ujson.o

In file included from ./python/ujson.c:34:0:

./python/py_defines.h:34:20: erro fatal: Python.h: Arquivo ou diretório não encontrado

compilação terminada.

error: command 'gcc' failed with exit status 1


Command /virtualenv/tornado2.3/bin/python3 -c "import setuptools;file='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-6sx1k9-record/install-record.txt --install-headers /virtualenv/tornado2.3/include/site/python3.2 failed with error code 1 in /virtualenv/tornado2.3/build/ujson

Exception information:
Traceback (most recent call last):
File "/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/commands/install.py", line 250, in run
requirement_set.install(install_options, global_options)
File "/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 1133, in install
requirement.install(install_options, global_options)
File "/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 577, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/init.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command /virtualenv/tornado2.3/bin/python3 -c "import setuptools;file='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-6sx1k9-record/install-record.txt --install-headers /virtualenv/tornado2.3/include/site/python3.2 failed with error code 1 in /virtualenv/tornado2.3/build/ujson

Member

mthurlin commented Aug 2, 2012

I'm pretty sure there is no support for python 3 yet

i don't know the problem the people have with python3, look this in main page:
"jskorpan a month ago Added Python 3 as supported version in distutils"
So i think that the module has support

Member

jskorpan commented Aug 3, 2012

Without fully understanding your localized error message from gcc my guess
is that you are lacking the Python-Dev package or similar.

//JT

2012/8/2 Matheus <
reply@reply.github.com

Sys: ubuntu 12.04 updated

log file:


/usr/bin/tornado2.3_pip run on Thu Aug 2 16:00:46 2012
Downloading/unpacking ujson

Running setup.py egg_info for package ujson

running egg_info
writing pip-egg-info/ujson.egg-info/PKG-INFO
writing top-level names to pip-egg-info/ujson.egg-info/top_level.txt
writing dependency_links to

pip-egg-info/ujson.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'pip-egg-info/ujson.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'setup.y'

writing manifest file 'pip-egg-info/ujson.egg-info/SOURCES.txt'

If you want to run the tests be sure to run 2to3 on them first, e.g.

2to3 -w tests/tests.py.


Installing collected packages: ujson

Running setup.py install for ujson

Running command /virtualenv/tornado2.3/bin/python3 -c "import

setuptools;file='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(file).read().replace('\r\n',
'\n'), file, 'exec'))" install --single-version-externally-managed
--record /tmp/pip-6sx1k9-record/install-record.txt --install-headers
/virtualenv/tornado2.3/include/site/python3.2
running install
running build
running build_ext
building 'ujson' extension

creating build
creating build/temp.linux-x86_64-3.2
creating build/temp.linux-x86_64-3.2/python
creating build/temp.linux-x86_64-3.2/lib
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g

-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -fPIC -I./python -I./lib -I/usr/include/python3.2mu
-c ./python/ujson.c -o build/temp.linux-x86_64-3.2/./python/ujson.o

In file included from ./python/ujson.c:34:0:

./python/py_defines.h:34:20: erro fatal: Python.h: Arquivo ou

diretório não encontrado

compilação terminada.

error: command 'gcc' failed with exit status 1

Complete output from command /virtualenv/tornado2.3/bin/python3 -c

"import
setuptools;file='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(file).read().replace('\r\n',
'\n'), file, 'exec'))" install --single-version-externally-managed
--record /tmp/pip-6sx1k9-record/install-record.txt --install-headers
/virtualenv/tornado2.3/include/site/python3.2:

running install

running build

running build_ext

building 'ujson' extension

creating build

creating build/temp.linux-x86_64-3.2

creating build/temp.linux-x86_64-3.2/python

creating build/temp.linux-x86_64-3.2/lib

gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -fPIC -I./python -I./lib -I/usr/include/python3.2mu
-c ./python/ujson.c -o build/temp.linux-x86_64-3.2/./python/ujson.o

In file included from ./python/ujson.c:34:0:

./python/py_defines.h:34:20: erro fatal: Python.h: Arquivo ou diretório
não encontrado

compilação terminada.

error: command 'gcc' failed with exit status 1


Command /virtualenv/tornado2.3/bin/python3 -c "import
setuptools;file='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(file).read().replace('\r\n',
'\n'), file, 'exec'))" install --single-version-externally-managed
--record /tmp/pip-6sx1k9-record/install-record.txt --install-headers
/virtualenv/tornado2.3/include/site/python3.2 failed with error code 1 in
/virtualenv/tornado2.3/build/ujson

Exception information:
Traceback (most recent call last):
File
"/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/basecommand.py",
line 104, in main
status = self.run(options, args)
File
"/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/commands/install.py",
line 250, in run
requirement_set.install(install_options, global_options)
File
"/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py",
line 1133, in install
requirement.install(install_options, global_options)
File
"/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py",
line 577, in install
cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
File
"/virtualenv/tornado2.3/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/init.py",
line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command
/virtualenv/tornado2.3/bin/python3 -c "import
setuptools;file='/virtualenv/tornado2.3/build/ujson/setup.py';exec(compile(open(file).read().replace('\r\n',
'\n'), file, 'exec'))" install --single-version-externally-managed
--record /tmp/pip-6sx1k9-record/install-record.txt --install-headers
/virtualenv/tornado2.3/include/site/python3.2 failed with error code 1 in
/virtualenv/tornado2.3/build/ujson


Reply to this email directly or view it on GitHub:
#54

Jonas Tärnström
Product Manager
• e-mail: jonas.tarnstrom@esn.me
• skype: full name "Jonas Tärnström"
• phone: +46 (0)734 231 552

ESN Social Software AB
www.esn.me

@matheuspatury matheuspatury reopened this Aug 4, 2012

jskorpan, thanks that worked =)

1 - sudo apt-get install python3-dev
2 - sudo (virtualenv-path)/bin/pip install ujson

=)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment