Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Problem at installing with pip #54

Closed
matheuspatury opened this Issue August 02, 2012 · 4 comments

3 participants

Matheus Markus Thurlin Jonas Tärnström
Matheus

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

Markus Thurlin
Collaborator

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

Matheus

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

Jonas Tärnström
Collaborator
Matheus matheuspatury closed this August 04, 2012
Matheus matheuspatury reopened this August 04, 2012
Matheus

jskorpan, thanks that worked =)

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

=)

Matheus matheuspatury closed this August 04, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.