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: command '/usr/bin/gcc' failed with exit code 1 #30

Open
Heath123 opened this issue Jan 6, 2022 · 3 comments · May be fixed by #31
Open

error: command '/usr/bin/gcc' failed with exit code 1 #30

Heath123 opened this issue Jan 6, 2022 · 3 comments · May be fixed by #31

Comments

@Heath123
Copy link

Heath123 commented Jan 6, 2022

$ pip3 install --upgrade --force-reinstall gplaydl
Defaulting to user installation because normal site-packages is not writeable
Collecting gplaydl
  Downloading gplaydl-1.3.5.tar.gz (3.8 kB)
  Preparing metadata (setup.py) ... done
Collecting certifi==2020.4.5.1
  Downloading certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
     |████████████████████████████████| 157 kB 3.2 MB/s            
Collecting cffi==1.14.0
  Downloading cffi-1.14.0.tar.gz (463 kB)
     |████████████████████████████████| 463 kB 7.1 MB/s            
  Preparing metadata (setup.py) ... done
Collecting chardet==3.0.4
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 6.4 MB/s            
Collecting cryptography==2.9
  Downloading cryptography-2.9-cp35-abi3-manylinux2010_x86_64.whl (2.7 MB)
     |████████████████████████████████| 2.7 MB 7.2 MB/s            
Collecting decorator==4.4.2
  Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting gpapidl==1.0.2
  Downloading gpapidl-1.0.2.tar.gz (91 kB)
     |████████████████████████████████| 91 kB 6.4 MB/s             
  Preparing metadata (setup.py) ... done
Collecting idna==2.9
  Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 4.5 MB/s            
Collecting protobuf==3.14.0
  Downloading protobuf-3.14.0-py2.py3-none-any.whl (173 kB)
     |████████████████████████████████| 173 kB 8.6 MB/s            
Collecting pycparser==2.20
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 7.0 MB/s            
Collecting requests==2.23.0
  Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 3.3 MB/s            
Collecting six==1.14.0
  Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting termcolor==1.1.0
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
  Preparing metadata (setup.py) ... done
Collecting urllib3==1.25.8
  Downloading urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
     |████████████████████████████████| 125 kB 6.7 MB/s            
Collecting validators==0.14.3
  Downloading validators-0.14.3.tar.gz (25 kB)
  Preparing metadata (setup.py) ... done
WARNING: The candidate selected for download or install is a yanked version: 'validators' candidate (version 0.14.3 at https://files.pythonhosted.org/packages/9b/15/f6bab21c3b54ae2025d886890831ebe790e59b57671b8fb96073cb84a5ed/validators-0.14.3.tar.gz#sha256=6a0d9502219aee486f1ee12d8a9635e4a56f3dbcfa204b4e0de3a038ae35f34f (from https://pypi.org/simple/validators/))
Reason for being yanked: Missing python_requires in setup.py
Using legacy 'setup.py install' for gplaydl, since package 'wheel' is not installed.
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for gpapidl, since package 'wheel' is not installed.
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Using legacy 'setup.py install' for validators, since package 'wheel' is not installed.
Installing collected packages: pycparser, urllib3, six, idna, chardet, cffi, certifi, requests, protobuf, decorator, cryptography, validators, termcolor, gpapidl, gplaydl
  Attempting uninstall: urllib3
    Found existing installation: urllib3 1.26.7
    Uninstalling urllib3-1.26.7:
      Successfully uninstalled urllib3-1.26.7
  Attempting uninstall: six
    Found existing installation: six 1.16.0
    Uninstalling six-1.16.0:
      Successfully uninstalled six-1.16.0
  Attempting uninstall: idna
    Found existing installation: idna 3.3
    Uninstalling idna-3.3:
      Successfully uninstalled idna-3.3
  WARNING: The script chardetect is installed in '/home/heath/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Running setup.py install for cffi ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uj2du9cm/cffi_62adf2a3598b4cf290e0cda58ae6ef0a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uj2du9cm/cffi_62adf2a3598b4cf290e0cda58ae6ef0a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-kjouduu8/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/heath/.local/include/python3.10/cffi
         cwd: /tmp/pip-install-uj2du9cm/cffi_62adf2a3598b4cf290e0cda58ae6ef0a/
    Complete output (56 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.10
    creating build/lib.linux-x86_64-3.10/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/model.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/commontypes.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/error.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/cparser.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/api.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/lock.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/__init__.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/verifier.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/recompiler.py -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/_embedding.h -> build/lib.linux-x86_64-3.10/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.10/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-x86_64-3.10
    creating build/temp.linux-x86_64-3.10/c
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.10 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.10/c/_cffi_backend.o
    c/_cffi_backend.c: In function ‘ctypedescr_dealloc’:
    c/_cffi_backend.c:407:23: error: lvalue required as left operand of assignment
      407 |         Py_REFCNT(ct) = 43;
          |                       ^
    c/_cffi_backend.c:410:23: error: lvalue required as left operand of assignment
      410 |         Py_REFCNT(ct) = 0;
          |                       ^
    c/_cffi_backend.c: In function ‘prepare_callback_info_tuple’:
    c/_cffi_backend.c:6185:5: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
     6185 |     PyEval_InitThreads();
          |     ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.10/Python.h:130,
                     from c/_cffi_backend.c:2:
    /usr/include/python3.10/ceval.h:122:37: note: declared here
      122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
          |                                     ^~~~~~~~~~~~~~~~~~
    c/_cffi_backend.c: In function ‘b_callback’:
    c/_cffi_backend.c:6245:5: warning: ‘ffi_prep_closure’ is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
     6245 |     if (ffi_prep_closure(closure, &cif_descr->cif,
          |     ^~
    In file included from c/_cffi_backend.c:15:
    /usr/include/ffi.h:347:1: note: declared here
      347 | ffi_prep_closure (ffi_closure*,
          | ^~~~~~~~~~~~~~~~
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uj2du9cm/cffi_62adf2a3598b4cf290e0cda58ae6ef0a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uj2du9cm/cffi_62adf2a3598b4cf290e0cda58ae6ef0a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-kjouduu8/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/heath/.local/include/python3.10/cffi Check the logs for full command output.
@Heath123
Copy link
Author

Heath123 commented Jan 6, 2022

Seems to be caused by https://foss.heptapod.net/pypy/cffi/-/issues/459

@Heath123 Heath123 linked a pull request Jan 6, 2022 that will close this issue
@Heath123
Copy link
Author

Heath123 commented Jan 6, 2022

I have an alternate tool that works:

PS C:\> googleplay -a com.google.android.youtube
Title: YouTube
UploadDate: Dec 14, 2021
VersionString: 16.49.37
VersionCode: 1524886976
NumDownloads: 11.037 B
Size: 38.905 MB
Offer: 0.00 USD

89z/googleplay

Thanks, I'll look at that too, though I have a PR to make this work again

@Heath123
Copy link
Author

Heath123 commented Jan 6, 2022

Seems like your thing might support older versions which I need

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

Successfully merging a pull request may close this issue.

1 participant