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

Error when trying to install package #34

Open
m1cm1c opened this issue Jan 5, 2021 · 0 comments
Open

Error when trying to install package #34

m1cm1c opened this issue Jan 5, 2021 · 0 comments

Comments

@m1cm1c
Copy link

m1cm1c commented Jan 5, 2021

When trying to install the package, I get the following error:

$ pip install two1
Defaulting to user installation because normal site-packages is not writeable
Starting new HTTPS connection (1): pypi.org
Collecting two1
  Using cached two1-3.10.9.tar.gz (226 kB)
Requirement already satisfied: arrow in /home/christoph/.local/lib/python3.9/site-packages (from two1) (0.17.0)
Requirement already satisfied: base58==0.2.2 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (0.2.2)
Requirement already satisfied: click==6.6 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (6.6)
Requirement already satisfied: docker-py==1.8.0 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (1.8.0)
Requirement already satisfied: flake8 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (3.8.4)
Requirement already satisfied: jsonrpcclient==2.0.1 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (2.0.1)
Requirement already satisfied: jsonrpcserver==3.1.1 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (3.1.1)
Requirement already satisfied: mnemonic==0.13 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (0.13)
Requirement already satisfied: path.py in /home/christoph/.local/lib/python3.9/site-packages (from two1) (12.5.0)
Requirement already satisfied: pexpect in /home/christoph/.local/lib/python3.9/site-packages (from two1) (4.8.0)
Requirement already satisfied: protobuf==3.0.0a3 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (3.0.0a3)
Requirement already satisfied: pyaes in /usr/lib/python3.9/site-packages (from two1) (1.6.1)
Requirement already satisfied: pytest in /home/christoph/.local/lib/python3.9/site-packages (from two1) (6.2.1)
Requirement already satisfied: pyyaml in /usr/lib/python3.9/site-packages (from two1) (5.3.1)
Requirement already satisfied: requests<=2.11.1 in /home/christoph/.local/lib/python3.9/site-packages (from two1) (2.11.1)
Collecting sha256
  Using cached sha256-0.1.tar.gz (30 kB)
Collecting tabulate
  Using cached tabulate-0.8.7-py3-none-any.whl (24 kB)
Requirement already satisfied: python-dateutil>=2.7.0 in /home/christoph/.local/lib/python3.9/site-packages (from arrow->two1) (2.8.1)
Requirement already satisfied: websocket-client>=0.32.0 in /usr/lib/python3.9/site-packages (from docker-py==1.8.0->two1) (0.57.0)
Requirement already satisfied: six>=1.4.0 in /usr/lib/python3.9/site-packages (from docker-py==1.8.0->two1) (1.15.0)
Requirement already satisfied: pyflakes<2.3.0,>=2.2.0 in /home/christoph/.local/lib/python3.9/site-packages (from flake8->two1) (2.2.0)
Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in /home/christoph/.local/lib/python3.9/site-packages (from flake8->two1) (0.6.1)
Requirement already satisfied: pycodestyle<2.7.0,>=2.6.0a1 in /home/christoph/.local/lib/python3.9/site-packages (from flake8->two1) (2.6.0)
Requirement already satisfied: jsonschema in /home/christoph/.local/lib/python3.9/site-packages (from jsonrpcclient==2.0.1->two1) (3.2.0)
Requirement already satisfied: future in /home/christoph/.local/lib/python3.9/site-packages (from jsonrpcclient==2.0.1->two1) (0.18.2)
Requirement already satisfied: funcsigs in /home/christoph/.local/lib/python3.9/site-packages (from jsonrpcserver==3.1.1->two1) (1.0.2)
Requirement already satisfied: pbkdf2 in /usr/lib/python3.9/site-packages (from mnemonic==0.13->two1) (1.3)
Requirement already satisfied: path in /home/christoph/.local/lib/python3.9/site-packages (from path.py->two1) (15.0.1)
Requirement already satisfied: ptyprocess>=0.5 in /home/christoph/.local/lib/python3.9/site-packages (from pexpect->two1) (0.7.0)
Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (from protobuf==3.0.0a3->two1) (51.0.0)
Requirement already satisfied: attrs>=19.2.0 in /usr/lib/python3.9/site-packages (from pytest->two1) (20.3.0)
Requirement already satisfied: toml in /usr/lib/python3.9/site-packages (from pytest->two1) (0.10.2)
Requirement already satisfied: packaging in /usr/lib/python3.9/site-packages (from pytest->two1) (20.7)
Requirement already satisfied: iniconfig in /home/christoph/.local/lib/python3.9/site-packages (from pytest->two1) (1.1.1)
Requirement already satisfied: py>=1.8.2 in /home/christoph/.local/lib/python3.9/site-packages (from pytest->two1) (1.10.0)
Requirement already satisfied: pluggy<1.0.0a1,>=0.12 in /home/christoph/.local/lib/python3.9/site-packages (from pytest->two1) (0.13.1)
Requirement already satisfied: pyrsistent>=0.14.0 in /home/christoph/.local/lib/python3.9/site-packages (from jsonschema->jsonrpcclient==2.0.1->two1) (0.17.3)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/lib/python3.9/site-packages (from packaging->pytest->two1) (2.4.7)
Using legacy 'setup.py install' for two1, since package 'wheel' is not installed.
Using legacy 'setup.py install' for sha256, since package 'wheel' is not installed.
Installing collected packages: sha256, tabulate, two1
    Running setup.py install for sha256 ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8tall8qf/sha256/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8tall8qf/sha256/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-_1wa986e/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/christoph/.local/include/python3.9/sha256         
         cwd: /tmp/pip-install-8tall8qf/sha256/                                              
    Complete output (121 lines):                                                             
    running install                                                                          
    running build                                                                            
    running build_ext                                                                        
    building 'sha256' extension                                                              
    creating build                                                                           
    creating build/temp.linux-x86_64-3.9                                                     
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/include/python3.9 -c sha256.c -o build/temp.linux-x86_64-3.9/sha256.o                                     
    sha256.c: In function ‘PyInit_sha256’:                                                   
    sha256.c:2823:28: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’                                                                                     
     2823 |   __pyx_type_6sha256_sha256.tp_print = 0;                                        
          |                            ^                                                     
    sha256.c: In function ‘__Pyx_ParseOptionalKeywords’:                                     
    sha256.c:3061:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                     
     3061 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^                                                            
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here               
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {              
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                              
    sha256.c:3061:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]                                                                                            
     3061 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^                                                            
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here               
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(                 
          |                                             ^~~~~~~~~~~~~~~~~~~                  
    sha256.c:3061:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                     
     3061 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^                                                            
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here               
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {              
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                              
    sha256.c:3061:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                     
     3061 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^                                                            
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here               
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {              
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                              
    sha256.c:3061:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]                                                                                            
     3061 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^                                                            
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here               
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(                 
          |                                             ^~~~~~~~~~~~~~~~~~~                  
    sha256.c:3061:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                     
     3061 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                     ^                                                            
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here               
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {              
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                              
    sha256.c:3077:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                     
     3077 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                      
          |                         ^                                                        
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here               
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {              
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                              
    sha256.c:3077:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]                                                                                            
     3077 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                      
          |                         ^                                                        
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here               
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(                 
          |                                             ^~~~~~~~~~~~~~~~~~~                  
    sha256.c:3077:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                     
     3077 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                      
          |                         ^                                                        
    In file included from /usr/include/python3.9/unicodeobject.h:1026,                       
                     from /usr/include/python3.9/Python.h:97,                                
                     from sha256.c:24:                                                       
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here               
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {              
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                              
    sha256.c:3077:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                     
     3077 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                      
          |                         ^                                                        
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:97,
                     from sha256.c:24:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    sha256.c:3077:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
     3077 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:97,
                     from sha256.c:24:
    /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    sha256.c:3077:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
     3077 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                         ^
    In file included from /usr/include/python3.9/unicodeobject.h:1026,
                     from /usr/include/python3.9/Python.h:97,
                     from sha256.c:24:
    /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8tall8qf/sha256/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8tall8qf/sha256/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-_1wa986e/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/christoph/.local/include/python3.9/sha256 Check the logs for full command output.

System: Manjaro (up to date; Linux 5.4.85)
Python Verison: 3.9.1
pip version: 20.2.2

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

1 participant