Skip to content

Add python-dev requirements to 'easy' installation instructions #3

Closed
@tjd2002

Description

@tjd2002

Under "Installing--the easy way", it would be nice to note that 'easy_install hg-git' requires the python development library (python-dev pacakge under Ubuntu 9.10) to be installed. Otherwise you get inscrutable error messages about errors compiling dulwich, such as:

$ sudo easy_install hg-git
Searching for hg-git
Reading http://pypi.python.org/simple/hg-git/
Reading http://hg-git.github.com/
Best match: hg-git 0.2.1
Downloading http://pypi.python.org/packages/source/h/hg-git/hg-git-0.2.1.tar.gz#md5=cad6487d5c887b15ea97951e885cf5ad
Processing hg-git-0.2.1.tar.gz
Running hg-git-0.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eN8X8k/hg-git-0.2.1/egg-dist-tmp-4XoRA8
zip_safe flag not set; analyzing archive contents...
Adding hg-git 0.2.1 to easy-install.pth file

Installed /usr/local/lib/python2.6/dist-packages/hg_git-0.2.1-py2.6.egg
Processing dependencies for hg-git
Searching for dulwich>=0.4.0
Reading http://pypi.python.org/simple/dulwich/
Reading http://launchpad.net/dulwich
Reading http://samba.org/~jelmer/dulwich
Best match: dulwich 0.5.0
Downloading http://samba.org/~jelmer/dulwich/dulwich-0.5.0.tar.gz
Processing dulwich-0.5.0.tar.gz
Running dulwich-0.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-gIBNUZ/dulwich-0.5.0/egg-dist-tmp-GuQP5x
dulwich/_objects.c:20:20: error: Python.h: No such file or directory
dulwich/_objects.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dulwich/_objects.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dulwich/_objects.c:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘py_objects_methods’
dulwich/_objects.c: In function ‘init_objects’:
dulwich/_objects.c:99: error: ‘PyObject’ undeclared (first use in this function)
dulwich/_objects.c:99: error: (Each undeclared identifier is reported only once
dulwich/_objects.c:99: error: for each function it appears in.)
dulwich/_objects.c:99: error: ‘m’ undeclared (first use in this function)
dulwich/_objects.c:101: warning: implicit declaration of function ‘Py_InitModule3’
dulwich/_objects.c:101: error: ‘py_objects_methods’ undeclared (first use in this function)
dulwich/_objects.c:101: error: ‘NULL’ undeclared (first use in this function)
error: Setup script exited with error: command 'gcc' failed with exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions