Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fails in Fresh Virtualenv #106

Closed
theSage21 opened this issue Jun 2, 2017 · 2 comments
Closed

pip install fails in Fresh Virtualenv #106

theSage21 opened this issue Jun 2, 2017 · 2 comments

Comments

@theSage21
Copy link

Expected Behavior

pip install textacy should install textacy. I've set up a virtualenv with py 3.5.3

Current Behavior

The install fails with the following traceback. (only relevant parts included for sanity)

Collecting cld2-cffi>=0.1.4 (from textacy)                                         
  Using cached cld2-cffi-0.1.4.tar.gz                                                                                
    Complete output from command python setup.py egg_info:
    Package libffi was not found in the pkg-config search path.                                             
    Perhaps you should add the directory containing `libffi.pc'         
    to the PKG_CONFIG_PATH environment variable                                                           
    No package 'libffi' found                                    
    Package libffi was not found in the pkg-config search path.                                               
    Perhaps you should add the directory containing `libffi.pc'                                                       
    to the PKG_CONFIG_PATH environment variable                                                           
    No package 'libffi' found                                                                                                                          
    Package libffi was not found in the pkg-config search path.                                                                                      
    Perhaps you should add the directory containing `libffi.pc'                                            
    to the PKG_CONFIG_PATH environment variable                                                                         
    No package 'libffi' found                                                                               
    Package libffi was not found in the pkg-config search path.
    No package 'libffi' found                                                                                                                                             
    Package libffi was not found in the pkg-config search path.                                                         
    Perhaps you should add the directory containing `libffi.pc'                             
    to the PKG_CONFIG_PATH environment variable                                                                         
    No package 'libffi' found                                                                              
    Package libffi was not found in the pkg-config search path.                                                               
    Perhaps you should add the directory containing `libffi.pc'                                      
    to the PKG_CONFIG_PATH environment variable                                                                       
    No package 'libffi' found                                                          
    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory                                                   
     #include <ffi.h>                                                                                      
                     ^                                                                      
    compilation terminated.                                                                                 
    Traceback (most recent call last):                                      
      File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile                       
        extra_postargs)                                                          
      File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn                        
        spawn(cmd, dry_run=self.dry_run)                                                   
      File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn                                               
        _spawn_posix(cmd, search_path, dry_run=dry_run)                
      File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix                                       
        % (cmd, exit_status))                                     
    distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1          

This trace continues into various depths and then terminates at the same error. Namely:
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Steps taken

I have tried installing the following:

sudo apt-get install libffi-dev
sudo apt-get install python-cffi

The end part of the error has now changed to:

  Using cached cld2-cffi-0.1.4.tar.gz                                                                                                                                     
    Complete output from command python setup.py egg_info:                                                                                                              
    no previously-included directories found matching 'documentation/_build'                                                                                            
    zip_safe flag not set; analyzing archive contents...                                                                                                                
    __pycache__.six.cpython-35: module references __path__                                                                                                              
                                                                                                                                                                        
    Installed /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs/six-1.10.0-py3.5.egg                                                                                              
    Searching for cffi                                                                                                                                                  
    Reading https://pypi.python.org/simple/cffi/                                                                                                                        
    Downloading https://pypi.python.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7/cffi-1.10.0.tar.gz#md5=2b5fa41182ed0edaf929a789e602a07
0                                                                                                                                                                       
    Best match: cffi 1.10.0                                                                                                                                             
    Processing cffi-1.10.0.tar.gz                                                                                                                                       
    Writing /tmp/easy_install-ivpg1q3x/cffi-1.10.0/setup.cfg                                                                                                            
    Running cffi-1.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ivpg1q3x/cffi-1.10.0/egg-dist-tmp-s6j0qgeq                                                   
    creating /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs/cffi-1.10.0-py3.5-linux-x86_64.egg                                                                                 
    Extracting cffi-1.10.0-py3.5-linux-x86_64.egg to /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs                                                                              
                                                                                                                                                                        
    Installed /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs/cffi-1.10.0-py3.5-linux-x86_64.egg                                                                                
    Searching for pycparser                                                                                                                                             
    Reading https://pypi.python.org/simple/pycparser/                                                                                                                   
    Downloading https://pypi.python.org/packages/be/64/1bb257ffb17d01f4a38d7ce686809a736837ad4371bcc5c42ba7a715c3ac/pycparser-2.17.tar.gz#md5=ca98dcb50bc1276f230118f6af5a
40c7                                                                                                                                                                    
    Best match: pycparser 2.17                                                                                                                                          
    Processing pycparser-2.17.tar.gz                                                                                                                                    
    Writing /tmp/easy_install-4g1m0g2q/pycparser-2.17/setup.cfg                                                                                                           
    Running pycparser-2.17/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4g1m0g2q/pycparser-2.17/egg-dist-tmp-oo4hppkz                                               
    warning: no previously-included files matching 'yacctab.*' found under directory 'tests'                                                                            
    warning: no previously-included files matching 'lextab.*' found under directory 'tests'                                                                             
    warning: no previously-included files matching 'yacctab.*' found under directory 'examples'                                                                         
    warning: no previously-included files matching 'lextab.*' found under directory 'examples'                                                                          
    zip_safe flag not set; analyzing archive contents...                                                                                                                
    pycparser.ply.__pycache__.yacc.cpython-35: module references __file__                                                                                               
    pycparser.ply.__pycache__.yacc.cpython-35: module MAY be using inspect.getsourcefile                                                                                
    pycparser.ply.__pycache__.yacc.cpython-35: module MAY be using inspect.stack                                                                                        
    pycparser.ply.__pycache__.lex.cpython-35: module references __file__                                                                                                
    pycparser.ply.__pycache__.lex.cpython-35: module MAY be using inspect.getsourcefile                                                                                 
    pycparser.ply.__pycache__.ygen.cpython-35: module references __file__                                                                                               
    creating /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs/pycparser-2.17-py3.5.egg                                                                                           
    Extracting pycparser-2.17-py3.5.egg to /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs                                                                                      
                                                                                                                                                                        
    Installed /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs/pycparser-2.17-py3.5.egg
Installed /tmp/pip-build-v2mrcai3/cld2-cffi/.eggs/pycparser-2.17-py3.5.egg                                                                                          
    running egg_info                                                                                                                                                    
    creating pip-egg-info/cld2_cffi.egg-info                                                                                                                              
    writing dependency_links to pip-egg-info/cld2_cffi.egg-info/dependency_links.txt                                                                                    
    writing requirements to pip-egg-info/cld2_cffi.egg-info/requires.txt                                                                                                
    writing top-level names to pip-egg-info/cld2_cffi.egg-info/top_level.txt                                                                                            
    writing pip-egg-info/cld2_cffi.egg-info/PKG-INFO                                                                                                                    
    writing manifest file 'pip-egg-info/cld2_cffi.egg-info/SOURCES.txt'                                                                                                   
    In file included from cld2/__pycache__/_cffi__x35e462e9x1977d085.c:208:0:                                                                                           
    cld2/binding_decls.h:32:1: warning: function declaration isn_t a prototype [-Wstrict-prototypes]                                                                    
     int cld_num_languages();                                                                                                                                           
     ^~~                                                                                                                                                                
    cld2/binding_decls.h:33:1: warning: function declaration isn_t a prototype [-Wstrict-prototypes]                                                                    
     const char** cld_languages();                                                                                                                                      
     ^~~~~                                                                                                                                                              
    cld2/binding_decls.h:34:1: warning: function declaration isn_t a prototype [-Wstrict-prototypes]                                                                    
     int cld_num_langcodes();                                                                                                                                             
     ^~~                                                                                                                                                                
    cld2/binding_decls.h:35:1: warning: function declaration isn_t a prototype [-Wstrict-prototypes]                                                                    
     const char** cld_langcodes();                                                                                                                                      
     ^~~~~                                                                                                                                                              
    cld2/binding_decls.h:36:1: warning: function declaration isn_t a prototype [-Wstrict-prototypes]                                                                    
     int cld_num_encodings();                                                                                                                                           
     ^~~                                                                                                                                                                  
    cld2/binding_decls.h:37:1: warning: function declaration isn_t a prototype [-Wstrict-prototypes]                                                                    
     const char** cld_supported_encodings();                                                                                                                            
     ^~~~~                                                                                                                                                              
    cld2/binding_decls.h:39:1: warning: function declaration isn_t a prototype [-Wstrict-prototypes]                                                                    
     cld_results_t* cld_create_results();                                                                                                                                 
     ^~~~~~~~~~~~~                                                                                                                                                      
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cld2/binding.cc: In function _int cld_detect(char*, int, cld_results_t*, const char*, const char*, const char*, const char*, int, int, int, int, int, int, int, int, i
nt)_:                                                                                                                                                                     
    cld2/binding.cc:165:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]                                                        
                     for (unsigned int i=0; i<num_chunks; i++) {                                                                                                        
                                            ~^~~~~~~~~~~                                                                                                                
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cld2/internal/compact_lang_det_hint_code.cc: In function _std::__cxx11::string CLD2::TrimCLDLangTagsHint(const string&)_:                                           
    cld2/internal/compact_lang_det_hint_code.cc:1060:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]                           
         if (comma == string::npos) {comma = langtags.size();} // fake trailing comma                                                                                   
             ~~~~~~^~~~~~~~~                                                                                                                                            
    cld2/internal/compact_lang_det_hint_code.cc: In function _void CLD2::SetCLDLangTagsHint(const string&, CLD2::CLDLangPriors*)_:                                      
    cld2/internal/compact_lang_det_hint_code.cc:1403:15: warning: comparison between signed and unsig
if (comma == string::npos) {comma = langtags.size();} // fake trailing comma                                                                                   
             ~~~~~~^~~~~~~~~              
         if (comma == string::npos) {comma = langtags.size();} // fake trailing comma                                                                           [912/1031]
             ~~~~~~^~~~~~~~~                                                                                                                                            
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cld2/internal/compact_lang_det_impl.cc: In function _void CLD2::CalcSummaryLang(CLD2::DocTote*, int, const int*, const CLD2::Language*, const int*, CLD2::Language*, b
ool*, bool, bool, int)_:                                                                                                                                                
    cld2/internal/compact_lang_det_impl.cc:1455:7: warning: unused variable _plang_second_ [-Wunused-variable]                                                          
       int plang_second = PerScriptNumber(ULScript_Latin, language3[active_slot[1]]);                                                                                   
           ^~~~~~~~~~~~                                                                                                                                                 
    cld2/internal/compact_lang_det_impl.cc: In function _CLD2::Language CLD2::DetectLanguageSummaryV2(const char*, int, bool, const CLD2::CLDHints*, bool, int, CLD2::Lang
uage, CLD2::Language*, int*, double*, CLD2::ResultChunkVector*, int*, bool*)_:                                                                                          
    cld2/internal/compact_lang_det_impl.cc:1849:14: warning: unused variable _ulscript_ [-Wunused-variable]                                                             
         ULScript ulscript = scriptspan.ulscript;                                                                                                                       
                  ^~~~~~~~                                                                                                                                              
    cld2/internal/compact_lang_det_impl.cc:1788:7: warning: unused variable _next_other_tote_ [-Wunused-variable]                                                       
       int next_other_tote = 2;                                                                                                                                         
           ^~~~~~~~~~~~~~~                                                                                                                                              
    cld2/internal/compact_lang_det_impl.cc:1789:7: warning: unused variable _tote_num_ [-Wunused-variable]                                                              
       int tote_num = 0;                                                                                                                                                  
           ^~~~~~~~                                                                                                                                                     
    cld2/internal/compact_lang_det_impl.cc:1793:8: warning: unused variable _tote_seen_ [-Wunused-variable]                                                             
       bool tote_seen[4] = {false, false, false, false};                                                                                                                
            ^~~~~~~~~                                                                                                                                                   
    cld2/internal/compact_lang_det_impl.cc:1794:7: warning: unused variable _tote_grams_ [-Wunused-variable]                                                            
       int tote_grams[4] = {0, 0, 0, 0};     // Number in partial chunk                                                                                                 
           ^~~~~~~~~~                                                                                                                                                     
    cld2/internal/compact_lang_det_impl.cc:1795:12: warning: unused variable _tote_script_ [-Wunused-variable]                                                          
       ULScript tote_script[4] =                                                                                                                                        
                ^~~~~~~~~~~                                                                                                                                             
    cld2/internal/compact_lang_det_impl.cc:1814:7: warning: unused variable _advance_by_ [-Wunused-variable]                                                            
       int advance_by = 2;                   // Advance 2 bytes                                                                                                           
           ^~~~~~~~~~                                                                                                                                                   
    cld2/internal/compact_lang_det_impl.cc:1815:7: warning: unused variable _advance_limit_ [-Wunused-variable]                                                         
       int advance_limit = textlimit >> 3;   // For first 1/8 of max document                                                                                           
           ^~~~~~~~~~~~~                                                                                                                                                  
    cld2/internal/compact_lang_det_impl.cc:1817:7: warning: variable _initial_word_span_ set but not used [-Wunused-but-set-variable]                                     
       int initial_word_span = kDefaultWordSpan;                                                                                                                        
           ^~~~~~~~~~~~~~~~~                                                                                                                                            
    cld2/internal/compact_lang_det_impl.cc:1828:7: warning: unused variable _chunksizeunis_ [-Wunused-variable]                                                         
       int chunksizeunis = (chunksizequads * 5) >> 1;                                                                                                                   
           ^~~~~~~~~~~~~                                                                                                                                                
    cld2/internal/compact_lang_det_impl.cc:1832:7: warning: unused variable _spantooshortlimit_ [-Wunused-variable]                                                     
       int spantooshortlimit = kShortSpanThresh;                                                                                                                        
           ^~~~~~~~~~~~~~~~~                                                                                                                                            
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++ 
cld2/internal/offsetmap.cc: In member function _void CLD2::OffsetMap::Printmap(const char*)_:                                                                         
    cld2/internal/offsetmap.cc:84:54: warning: array subscript has type _char_ [-Wchar-subscripts]                                                                      
         fprintf(fout, "%c%02d ", "&=+-"[OpPart(diffs_[i])], LenPart(diffs_[i]));                                                                                       
                                                          ^                                                                                                             
    cld2/internal/offsetmap.cc: In member function _void CLD2::OffsetMap::DumpString()_:                                                                                
    cld2/internal/offsetmap.cc:210:56: warning: array subscript has type _char_ [-Wchar-subscripts]                                                                       
         fprintf(stderr, "%c%02d ", "&=+-"[OpPart(diffs_[i])], LenPart(diffs_[i]));                                                                                     
                                                            ^                                                                                                           
    cld2/internal/offsetmap.cc: In member function _bool CLD2::OffsetMap::MoveLeft()_:                                                                                  
    cld2/internal/offsetmap.cc:404:8: warning: variable _retval_ set but not used [-Wunused-but-set-variable]                                                           
       bool retval = true;                                                                                                                                              
            ^~~~~~                                                                                                                                                      
    cld2/internal/offsetmap.cc: In static member function _static bool CLD2::OffsetMap::CopyInserts(CLD2::OffsetMap*, CLD2::OffsetMap*)_:                               
    cld2/internal/offsetmap.cc:484:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]                                             
       while (ok && (source->next_diff_sub_ != source->diffs_.size())) {                                                                                                  
                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~                                                                                                    
    cld2/internal/offsetmap.cc: In static member function _static bool CLD2::OffsetMap::CopyDeletes(CLD2::OffsetMap*, CLD2::OffsetMap*)_:                               
    cld2/internal/offsetmap.cc:498:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]                                             
       while (ok && (source->next_diff_sub_ != source->diffs_.size())) {                                                                                                
                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~                                                                                                    
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cld2/internal/scoreonescriptspan.cc: In function _void CLD2::ScoreEntireScriptSpan(const CLD2::LangSpan&, CLD2::ScoringContext*, CLD2::DocTote*, CLD2::ResultChunkVect
or*)_:                                                                                                                                                                  
    cld2/internal/scoreonescriptspan.cc:1149:5: warning: narrowing conversion of _score_ from _int_ to _CLD2::uint16 {aka short unsigned int}_ inside { } [-Wnarrowing] 
         };                                                                                                                                                             
         ^                                                                                                                                                              
    cld2/internal/scoreonescriptspan.cc:1149:5: warning: narrowing conversion of _bytes_ from _int_ to _CLD2::uint16 {aka short unsigned int}_ inside { } [-Wnarrowing]   
    cld2/internal/scoreonescriptspan.cc:1149:5: warning: narrowing conversion of _reliability_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing] 
    cld2/internal/scoreonescriptspan.cc:1149:5: warning: narrowing conversion of _reliability_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing] 
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                     
    cc1plus: warning: command line option _-Wstrict-prototypes_ is valid for C/ObjC but not for C++                                                                       
    cld2/internal/utf8statetable.cc: In function _int CLD2::UTF8GenericReplaceInternalTwoByte(const UTF8ReplaceObj_2*, const StringPiece&, StringPiece&, bool, int*, int*,
 int*, CLD2::OffsetMap*)_:                                                                                                                                              
    cld2/internal/utf8statetable.cc:933:7: warning: variable _src_lll_ set but not used [-Wunused-but-set-variable]                                                     
       int src_lll = srclimit - src;                                                                                                                                    
           ^~~~~~~                                                                                                                                                      
    cld2/internal/utf8statetable.cc:934:7: warning: variable _dst_lll_ set but not used [-Wunused-but-set-variable]                                                     
       int dst_lll = dstlimit - dst;                                                                                                                                    
           ^~~~~~~                                                                                                                                                      
    cld2/internal/utf8statetable.cc: At global scope:                                                                                                                   
    cld2/internal/utf8statetable.cc:200:13: warning: _bool CLD2::IsReplaceObj_2(const CLD2::UTF8StateMachineObj_2&)_ defined but not used [-Wunused-function]           
     static bool IsReplaceObj_2(const UTF8StateMachineObj_2& obj) {                                                                                                     
                 ^~~~~~~~~~~~~~                                                                                                                                         
    cld2/internal/utf8statetable.cc:194:13: warning: _bool CLD2::IsReplaceObj(const CLD2::UTF8StateMachineObj&)_ defined but not used [-Wunused-function]               
     static bool IsReplaceObj(const UTF8StateMachineObj& obj) {                                                                                                         
                 ^~~~~~~~~~~~                                                                                                                                           
    cld2/internal/utf8statetable.cc:189:13: warning: _bool CLD2::IsScanObj(const CLD2::UTF8StateMachineObj&)_ defined but not used [-Wunused-function]
cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wna[798/1031]
    cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing]
    cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing]
    cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing]
    cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing]
    cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing]
    cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing]  
    cld2/internal/cld_generated_cjk_uni_prop_80.cc:7089:1: error: narrowing conversion of _-14_ from _int_ to _CLD2::uint8 {aka unsigned char}_ inside { } [-Wnarrowing]

the last part continues until it hits:

Traceback (most recent call last):                                                                                                                                  
      File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile                                                                                       
        extra_postargs)                                                                                                                                                 
      File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn                                                                                                
        spawn(cmd, dry_run=self.dry_run)                                                                                                                                
      File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn                                                                                                   
        _spawn_posix(cmd, search_path, dry_run=dry_run)                                                                                                                 
      File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix                                                                                           
        % (cmd, exit_status))                                                                                                                                           
    distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1                                                                       
                                                                                                                                                                        
    During handling of the above exception, another exception occurred:                                                                                                 
                                                                                                                                                                          
    Traceback (most recent call last):                                                                                                                                  
      File "/tmp/pip-build-v2mrcai3/cld2-cffi/.eggs/cffi-1.10.0-py3.5-linux-x86_64.egg/cffi/ffiplatform.py", line 49, in _build                                         
        dist.run_command('build_ext')                                                                                                                                   
      File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command                                                                                             
        cmd_obj.run()                                                                                                                                                   
      File "/home/arjoonn/Desktop/temp/env/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 75, in run                                                
        _build_ext.run(self)                                                                                                                                              
      File "/usr/lib/python3.5/distutils/command/build_ext.py", line 339, in run                                                                                        
        self.build_extensions()                                                                                                                                         
      File "/usr/lib/python3.5/distutils/command/build_ext.py", line 448, in build_extensions                                                                           
        self._build_extensions_serial()                                                                                                                                 
      File "/usr/lib/python3.5/distutils/command/build_ext.py", line 473, in _build_extensions_serial                                                                     
        self.build_extension(ext)                                                                                                                                       
      File "/home/arjoonn/Desktop/temp/env/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 196, in build_extension                                   
        _build_ext.build_extension(self, ext)                                                                                                                           
      File "/usr/lib/python3.5/distutils/command/build_ext.py", line 533, in build_extension                                                                              
        depends=ext.depends)                                                                                                                                              
      File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile                                                                                            
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)                                                                                                  
      File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile                                                                                       
        raise CompileError(msg)                                                                                                                                         
    distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Environment

  • spacy version: spacy==1.8.2
  • Python version: 3.5.3
  • Operating system and version: Ubuntu 17.04
@bdewilde
Copy link
Collaborator

bdewilde commented Jun 2, 2017

Hey @theSage21 , so this is a problem with the installation of cld2-cffi, right? This has been a long-running problem — see here and here. In those threads you can find a couple solutions that have worked for others. Could you give them a shot, and report back?

In the current dev version of textacy, I've made this dependency optional and allowed for the usage of other language detection libraries in its place. FWIW I'll be releasing it sometime in the next couple weeks...

@theSage21
Copy link
Author

One of them solved the issue. I'm sorry I overlooked those before opening a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants