[pypy-dev] failure installing pygit2 on pypy3 raspbian

Russ Tremain russt at releasetools.org
Sun Aug 10 19:56:36 CEST 2014


Hi, just wondering if pip install of pygit2 is expected to work, or 
if this is a problem related to ARM.
Also, is there a difference using "pip" vs. pip3 or pip3.2?

thanks,
-Russ


Linux raspberrypi 3.12.22+ #691 PREEMPT Wed Jun 18 18:29:58 BST 2014 armv6l
...
pi at raspberrypi:~$ pip3 install pygit2
Downloading/unpacking pygit2
   Downloading pygit2-0.21.2.tar.gz (416kB): 416kB downloaded
   Running setup.py (path:/tmp/pip_build_pi/pygit2/setup.py) egg_info 
for package pygit2
     pygit2/__pycache__/_cffi__gab826d3dx2bbed4fa.c:26:34: error: 
unknown type name 'git_buf'
     pygit2/__pycache__/_cffi__gab826d3dx2bbed4fa.c: In function 
'_cffi_layout__git_buf':
     pygit2/__pycache__/_cffi__gab826d3dx2bbed4fa.c:35:10: error: 
unknown type name 'git_buf'
     pygit2/__pycache__/_cffi__gab826d3dx2bbed4fa.c:37:12: error: 
'git_buf' undeclared (first use in this function)
     pygit2/__pycache__/_cffi__gab826d3dx2bbed4fa.c:1649:21: error: 
(near initialization for 'nums[13]')

[snip - thousands more errors]

     Traceback (most recent call last):
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/unixccompiler.py", 
line 131, in _compile
         extra_postargs)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/ccompiler.py", 
line 909, in spawn
         spawn(cmd, dry_run=self.dry_run)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/spawn.py", 
line 32, in spawn
         _spawn_posix(cmd, search_path, dry_run=dry_run)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/spawn.py", 
line 163, in _spawn_posix
         % (cmd[0], exit_status))
     distutils.errors.DistutilsExecError: command 'cc' failed with exit status 1

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib_pypy/cffi/ffiplatform.py", 
line 47, in _build
         dist.run_command('build_ext')
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/dist.py", 
line 936, in run_command
         cmd_obj.run()
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/site-packages/distribute-0.6.49-py3.2.egg/setuptools/command/build_ext.py", 
line 46, in run
         _build_ext.run(self)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/command/build_ext.py", 
line 354, in run
         self.build_extensions()
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/command/build_ext.py", 
line 463, in build_extensions
         self.build_extension(ext)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/site-packages/distribute-0.6.49-py3.2.egg/setuptools/command/build_ext.py", 
line 182, in build_extension
         _build_ext.build_extension(self,ext)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/command/build_ext.py", 
line 518, in build_extension
         depends=ext.depends)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/ccompiler.py", 
line 574, in compile
         self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib-python/3/distutils/unixccompiler.py", 
line 133, in _compile
         raise CompileError(msg)
     distutils.errors.CompileError: command 'cc' failed with exit status 1

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File "<string>", line 17, in <module>
       File "/tmp/pip_build_pi/pygit2/setup.py", line 178, in <module>
         from ffi import ffi
       File "pygit2/ffi.py", line 59, in <module>
         include_dirs=include_dirs, library_dirs=library_dirs)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib_pypy/cffi/api.py", 
line 341, in verify
         lib = self.verifier.load_library()
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib_pypy/cffi/verifier.py", 
line 74, in load_library
         self._compile_module()
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib_pypy/cffi/verifier.py", 
line 139, in _compile_module
         outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib_pypy/cffi/ffiplatform.py", 
line 25, in compile
         outputfilename = _build(tmpdir, ext)
       File 
"/usr/local/pypy3-2.3.1-linux-armhf-raspbian/lib_pypy/cffi/ffiplatform.py", 
line 50, in _build
         raise VerificationError('%s: %s' % (e.__class__.__name__, e))
     cffi.ffiplatform.VerificationError: CompileError: command 'cc' 
failed with exit status 1
     Complete output from command python setup.py egg_info:
     pygit2/__pycache__/_cffi__gab826d3dx2bbed4fa.c:26:34: error: 
unknown type name 'git_buf'

[snip]

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in 
/tmp/pip_build_pi/pygit2
Storing debug log for failure in /home/pi/.pip/pip.log
pi at raspberrypi:~$


More information about the pypy-dev mailing list