Skip to content

Python 3.7 build failure #4

Description

@sangaline

I'm trying to install PySixel in a Python 3.7.3 environment with Cython 0.29.7 using pip. I get the following error during compilation:

[EnvCommandError]                                                                                                                                                                                                               
Command ['python', '-m', 'pip', 'install', '--no-deps', 'pysixel==0.1.11'] errored with the following output:                                                                              
Collecting pysixel==0.1.11                                                                                                                                                                                                                   
  Using cached https://files.pythonhosted.org/packages/0d/f8/e67ae96d3a42122e85343ac9741692183158882d0ba67ce7c5d84043c7fc/PySixel-0.1.11.tar.gz                                                                                              
Installing collected packages: pysixel                                                                                                                                                                                                       
  Running setup.py install for pysixel: started                                                                                                                                                                                              
    Running setup.py install for pysixel: finished with status 'error'                                                                                                                                                                       
    Complete output from command /home/sangaline/tenantbase/tenantbase/science/.venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-8c5te3yn/pysixel/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-2szxr2ht/install-record.txt --single-version-externally-managed --compile --install-headers /home/sangaline/tenantbase/tena  
ntbase/science/.venv/include/site/python3.7/pysixel:                                                                                                                                                                                         
    ERROR:root:No module named 'sixel_cimpl'                                                                                                                                                                                                 
    Traceback (most recent call last):                                                                                                                                                                                                       
      File "/tmp/pip-install-8c5te3yn/pysixel/sixel/sixel.py", line 25, in <module>                                                                                                                                                          
        from sixel_cimpl import SixelConverter                                                                                                                                                                                               
    ModuleNotFoundError: No module named 'sixel_cimpl'                                                                                                                                                                                       
    running install                                                                                                                                                                                                                          
    running build                                                                                                                                                                                                                            
    running build_py                                                                                                                                                                                                                         
    file sixel.py (for module sixel) not found                                                                                                                                                                                               
    creating build                                                                                                                                                                                                                           
    creating build/lib.linux-x86_64-3.7                                                                                                                                                                                                      
    creating build/lib.linux-x86_64-3.7/sixel                                                                                                                                                                                                
    copying sixel/sixel.py -> build/lib.linux-x86_64-3.7/sixel                                                                                                                                                                               
    copying sixel/converter.py -> build/lib.linux-x86_64-3.7/sixel                                                                                                                                                                           
    copying sixel/cellsize.py -> build/lib.linux-x86_64-3.7/sixel                                                                                                                                                                            
    copying sixel/__init__.py -> build/lib.linux-x86_64-3.7/sixel                                                                                                                                                                            
    file sixel.py (for module sixel) not found                                                                                                                                                                                               
    running build_ext                                                                                                                                                                                                                        
    building 'sixel_cimpl' extension                                                                                                                                                                                                         
    creating build/temp.linux-x86_64-3.7                                                                                                                                                                                                     
    creating build/temp.linux-x86_64-3.7/sixel                                                                                                                                                                                               
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -march=x  
86-64 -mtune=generic -O3 -pipe -fstack-protector-strong -fno-plt -fPIC -I/home/sangaline/tenantbase/tenantbase/science/.venv/include -I/usr/include/python3.7m -c sixel/sixel_cimpl.c -o build/temp.linux-x86_64-3.7/sixel/sixel_cimpl.o     
    sixel/sixel_cimpl.c: In function ‘__Pyx_ExceptionSave’:                                                                                                                                                                                  
    sixel/sixel_cimpl.c:8094:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?                                                                                                       
         *type = tstate->exc_type;                                                                                                                                                                                                           
                         ^~~~~~~~                                                                                                                                                                                                            
                         curexc_type                                                                                                                                                                                                         
    sixel/sixel_cimpl.c:8095:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?                                                                                                     
         *value = tstate->exc_value;                                                                                                                                                                                                         
                          ^~~~~~~~~                                                                                                                                                                                                          
                          curexc_value                                                                                                                                                                                                       
    sixel/sixel_cimpl.c:8096:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?                                                                                             
         *tb = tstate->exc_traceback;                                                                                                                                                                                                        
                       ^~~~~~~~~~~~~                                                                                                                                                                                                         
                       curexc_traceback                                                                                                                                                                                                      
    sixel/sixel_cimpl.c: In function ‘__Pyx_ExceptionReset’:                                                                                                                                                                                 
    sixel/sixel_cimpl.c:8108:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?                                                                                                       
         tmp_type = tstate->exc_type;                                                                                                                                                                                                        
                            ^~~~~~~~                                                                                                                                                                                                         
                            curexc_type                                                                                                                                                                                                      
    sixel/sixel_cimpl.c:8109:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?                                                                                                     
         tmp_value = tstate->exc_value;                                                                                                                                                                                                      
                             ^~~~~~~~~                                                                                                                                                                                                       
                             curexc_value                                                                                                                                                                                                    
    sixel/sixel_cimpl.c:8110:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?                                                                                             
         tmp_tb = tstate->exc_traceback;                                                                                                                                                                                                     
                          ^~~~~~~~~~~~~                                                                                                                                                                                                      
                          curexc_traceback                                                                                                                                                                                                   
    sixel/sixel_cimpl.c:8111:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?                                                                                                       
         tstate->exc_type = type;                                                                                                                                                                                                            
                 ^~~~~~~~                                                                                                                                                                                                                    
                 curexc_type                                                                                                                                                                                                                 
    sixel/sixel_cimpl.c:8112:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?                                                                                                     
         tstate->exc_value = value;                                                                                                                                                                                                          
                 ^~~~~~~~~                                                                                                                                                                                                                   
                 curexc_value                                                                                                                                                                                                                
    sixel/sixel_cimpl.c:8113:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?                                                                                             
         tstate->exc_traceback = tb;                                                                                                                                                                                                         
                 ^~~~~~~~~~~~~                                                                                                                                                                                                               
                 curexc_traceback                                                                                                                                                                                                            
    sixel/sixel_cimpl.c: In function ‘__Pyx_GetException’:                                                                                                                                                                                   
    sixel/sixel_cimpl.c:8156:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?                                                                                                       
         tmp_type = tstate->exc_type;                                                                                                                                                                                                        
                            ^~~~~~~~                                                                                                                                                                                                         
                            curexc_type                                                                                                                                                                                                      
    sixel/sixel_cimpl.c:8157:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?                                                                                                     
         tmp_value = tstate->exc_value;                                                                                                                                                                                                      
                             ^~~~~~~~~                                                                                                                                                                                                       
                             curexc_value                                                                                                                                                                                                    
    sixel/sixel_cimpl.c:8158:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?                                                                                             
         tmp_tb = tstate->exc_traceback;                                                                                                                                                                                                     
                          ^~~~~~~~~~~~~                                                                                                                                                                                                      
                          curexc_traceback                                                                                                                                                                                                   
    sixel/sixel_cimpl.c:8159:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?                                                                                                       
         tstate->exc_type = local_type;                                                                                                                                                                                                      
                 ^~~~~~~~                                                                                                                                                                                                                    
                 curexc_type                                                                                                                                                                                                                 
    sixel/sixel_cimpl.c:8160:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?                                                                                                     
         tstate->exc_value = local_value;                                                                                                                                                                                                    
                 ^~~~~~~~~                                                                                                                                                                                                                   
                 curexc_value                                                                                                                                                                                                                
    sixel/sixel_cimpl.c:8161:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?                                                                                             
         tstate->exc_traceback = local_tb;                                                                                                                                                                                                   
                 ^~~~~~~~~~~~~                                                                                                                                                                                                               
                 curexc_traceback                                                                                                                                                                                                            
    sixel/sixel_cimpl.c: In function ‘__Pyx_ExceptionSwap’:                                                                                                                                                                                  
    sixel/sixel_cimpl.c:8954:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?                                                                                                       
         tmp_type = tstate->exc_type;                                                                                                                                                                                                        
                            ^~~~~~~~                                                                                                                                                                                                         
                            curexc_type                                                                                                                                                                                                      
    sixel/sixel_cimpl.c:8955:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?                                                                                                     
         tmp_value = tstate->exc_value;                                                                                                                                                                                                      
                             ^~~~~~~~~                                                                                                                                                                                                       
                             curexc_value                                                                                                                                                                                                    
    sixel/sixel_cimpl.c:8956:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?                                                                                             
         tmp_tb = tstate->exc_traceback;                                                                                                                                                                                                     
                          ^~~~~~~~~~~~~                                                                                                                                                                                                      
                          curexc_traceback                                                                                                                                                                                                   
    sixel/sixel_cimpl.c:8957:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?                                                                                                       
         tstate->exc_type = *type;                                                                                                                                                                                                           
                 ^~~~~~~~                                                                                                                                                                                                                    
                 curexc_type                                                                                                                                                                                                                 
    sixel/sixel_cimpl.c:8958:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?                                                                                                     
         tstate->exc_value = *value;                                                                                                                                                                                                         
                 ^~~~~~~~~                                                                                                                                                                                                                   
                 curexc_value                                                                                                                                                                                                                
    sixel/sixel_cimpl.c:8959:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?                                                                                             
         tstate->exc_traceback = *tb;                                                                                                                                                                                                        
                 ^~~~~~~~~~~~~                                                                                                                                                                                                               
                 curexc_traceback                                                                                                                                                                                                            
    error: command 'gcc' failed with exit status 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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