fastmonkeys / stellar

Fast database snapshot and restore tool for development
MIT License
3.86k stars 119 forks source link

Can't install on Linux Ubuntu 12.04 #34

Closed sebprunier closed 10 years ago

sebprunier commented 10 years ago

Full error log :

Downloading/unpacking stellar
  Downloading stellar-0.3.2.tar.gz
  Running setup.py (path:/tmp/pip_build_root/stellar/setup.py) egg_info for package stellar

    warning: no files found matching '*.md' under directory 'stellar'
    warning: no files found matching '*.txt' under directory 'stellar'
    warning: no files found matching '*.md' under directory 'tests'
    warning: no files found matching '*.txt' under directory 'tests'
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/lib/python2.7/dist-packages (from stellar)
Requirement already satisfied (use --upgrade to upgrade): SQLAlchemy in /usr/local/lib/python2.7/dist-packages (from stellar)
Requirement already satisfied (use --upgrade to upgrade): humanize in /usr/local/lib/python2.7/dist-packages (from stellar)
Requirement already satisfied (use --upgrade to upgrade): pytest in /usr/local/lib/python2.7/dist-packages (from stellar)
Requirement already satisfied (use --upgrade to upgrade): schema in /usr/local/lib/python2.7/dist-packages (from stellar)
Requirement already satisfied (use --upgrade to upgrade): click in /usr/local/lib/python2.7/dist-packages (from stellar)
Requirement already satisfied (use --upgrade to upgrade): SQLAlchemy-Utils in /usr/local/lib/python2.7/dist-packages (from stellar)
Downloading/unpacking psutil (from stellar)
  Downloading psutil-2.1.1.tar.gz (216kB): 216kB downloaded
  Running setup.py (path:/tmp/pip_build_root/psutil/setup.py) egg_info for package psutil

    warning: no previously-included files matching '*' found under directory 'docs/_build'
Downloading/unpacking py>=1.4.22 (from pytest->stellar)
  Downloading py-1.4.23.tar.gz (189kB): 189kB downloaded
  Running setup.py (path:/tmp/pip_build_root/py/setup.py) egg_info for package py

Downloading/unpacking six (from SQLAlchemy-Utils->stellar)
  Downloading six-1.7.3-py2.py3-none-any.whl
Installing collected packages: stellar, psutil, py, six
  Running setup.py install for stellar

    warning: no files found matching '*.md' under directory 'stellar'
    warning: no files found matching '*.txt' under directory 'stellar'
    warning: no files found matching '*.md' under directory 'tests'
    warning: no files found matching '*.txt' under directory 'tests'
    Installing stellar script to /usr/local/bin
  Running setup.py install for psutil
    building '_psutil_linux' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
    psutil/_psutil_linux.c:12:20: erreur fatale: Python.h : Aucun fichier ou dossier de ce type
    compilation terminée.
    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-bjihAH-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/psutil

copying psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/_pssunos.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/_pswindows.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/__init__.py -> build/lib.linux-x86_64-2.7/psutil

copying psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil

running build_ext

building '_psutil_linux' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/psutil

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o

psutil/_psutil_linux.c:12:20: erreur fatale: Python.h : Aucun fichier ou dossier de ce type

compilation terminée.

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__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bjihAH-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/local/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)
davidstosik commented 10 years ago

:+1: Won't install on Ubuntu 14.04 either, with similar output.

IslamAzab commented 10 years ago

Any update about this issue?

davidlonjon commented 10 years ago

Hi had the same problem too. so I did

sudo apt-get install python-dev

Then I did

sudo pip uninstall stellar

and install again stellar with

pip install stellar

I hope it can solve your problem too

sebprunier commented 10 years ago

Thanks! (python-dev dependency was missing...) It works now, I can install Stellar.