Skip to content

pip install -r requirements.txt failing with multiple errors. #11

@topofthemornin

Description

@topofthemornin

Trying to install xsshunter_client on Lubuntu 19.10, but the command 'pip install -r requirements.txt' is failing with multiple errors. Sorry, I really don't know much about this particular stuph. I've cited errors below but I don't know what is really relevant, that's why I've posted the whole thing at https://pastebin.com/c33hk0qQ[](https://pastebin.com/c33hk0qQ), but here is the error at the end of it:

ERROR: Command errored out with exit status 1: /home/t0p/dev/env/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2yueHP/cffi/setup.py'"'"'; file='"'"'/tmp/pip-install-2yueHP/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-YkFoRV/install-record.txt --single-version-externally-managed --compile --install-headers /home/t0p/dev/env/include/site/python2.7/cffi Check the logs for full command output.

It failed to build cffi cryptography lxml and Pillow.

The cffi error is this I think:

creating build/temp.linux-x86_64-2.7/c                                     
  x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-8kFkPd/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o                      
  c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directory   
      2 | #include <Python.h>                                                
        |          ^~~~~~~~~~                                                
  compilation terminated.                                                    
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1            
  ----------------------------------------                                   
  ERROR: Failed building wheel for cffi

cryptography error:

 running build_ext                                                          
  generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'            
  creating build/temp.linux-x86_64-2.7                                       
  generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'      
  generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'            
  building '_openssl' extension                                              
  creating build/temp.linux-x86_64-2.7/build                                 
  creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7           
  x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-8kFkPd/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o                                   
  build/temp.linux-x86_64-2.7/_openssl.c:22:12: fatal error: pyconfig.h: No such file or directory                                                        
     22 | #  include <pyconfig.h>                                            
        |            ^~~~~~~~~~~~                                            
  compilation terminated.                                                    
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1            
  ----------------------------------------                                   
  ERROR: Failed building wheel for cryptography

Pillow error:

copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-2.7/PIL          
  running build_ext                                                          
  Traceback (most recent call last):                                         
    File "<string>", line 1, in <module>                                     
    File "/tmp/pip-install-2yueHP/Pillow/setup.py", line 767, in <module>    
      zip_safe=not debug_build(),                                            
    File "/home/t0p/dev/env/local/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup                                                 
      return distutils.core.setup(**attrs)                                   
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup          
      dist.run_commands()                                                    
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands   
      self.run_command(cmd)                                                  
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command    
      cmd_obj.run()                                                          
    File "/home/t0p/dev/env/local/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 192, in run                                                     
      self.run_command('build')                                              
    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command     
      self.distribution.run_command(command)                                 
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command    
      cmd_obj.run()                                                          
    File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run   
      self.run_command(cmd_name)                                             
    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command     
      self.distribution.run_command(command)                                 
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command    
      cmd_obj.run()                                                          
    File "/usr/lib/python2.7/distutils/command/build_ext.py", line 340, in run                                                                            
      self.build_extensions()                                                
    File "/tmp/pip-install-2yueHP/Pillow/setup.py", line 515, in build_extensions                                                                         
      % (f, f))                                                              
  ValueError: --enable-jpeg requested but jpeg not found, aborting.          
  ----------------------------------------                                   
  ERROR: Failed building wheel for Pillow

Any idea what I can do to build xsshunter_client? And are there any other clients out there, or is it this or bust?

Cheers.

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