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

Python 3.7 build failure #4

Open
sangaline opened this issue May 25, 2019 · 3 comments
Open

Python 3.7 build failure #4

sangaline opened this issue May 25, 2019 · 3 comments

Comments

@sangaline
Copy link

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
@NahomAgidew
Copy link

+1

@nmd1
Copy link

nmd1 commented Feb 16, 2020

I ran into the same errors with python 3.8. It seems like pull request #5 fixes the issue

@ghost
Copy link

ghost commented Jan 20, 2022

+1
laughing-53

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

3 participants