V
V
Vyacheslav Grachunov2020-07-20 08:32:16
Python
Vyacheslav Grachunov, 2020-07-20 08:32:16

pytgvoip is not installed. What is the problem?

pip3 install pytgvoip
Collecting pytgvoip
  Using cached https://files.pythonhosted.org/packages/dc/00/23d27c9ed17cce94b07852a8896be145c1e9dcb62cdd7353897c28491c0a/pytgvoip-0.0.7.1.tar.gz
Building wheels for collected packages: pytgvoip
  Running setup.py bdist_wheel for pytgvoip ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a6zqezd7/pytgvoip/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpyxn0ll1gpip-wheel- --python-tag cp36:
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
    warnings.warn(msg)
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_required'
    warnings.warn(msg)
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for pytgvoip
  Running setup.py clean for pytgvoip
Failed to build pytgvoip
Installing collected packages: pytgvoip
  Running setup.py install for pytgvoip ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a6zqezd7/pytgvoip/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-l8a6urz0-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_required'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/tgvoip
    copying src/tgvoip/tgvoip.py -> build/lib.linux-x86_64-3.6/tgvoip
    copying src/tgvoip/utils.py -> build/lib.linux-x86_64-3.6/tgvoip
    copying src/tgvoip/__init__.py -> build/lib.linux-x86_64-3.6/tgvoip
    running build_ext
    -- The C compiler identification is GNU 7.5.0
    -- The CXX compiler identification is GNU 7.5.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
    -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so
    -- pybind11 v2.4.dev4
    -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1")
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
    -- Checking for module 'opus'
    --   Found opus, version 1.1.2
    -- Performing Test HAS_FLTO
    -- Performing Test HAS_FLTO - Success
    -- LTO enabled
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /tmp/pip-build-a6zqezd7/pytgvoip/build/temp.linux-x86_64-3.6
    Scanning dependencies of target lib_tgvoip
    [  1%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/CongestionControl.cpp.o
    [  0%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/BlockingQueue.cpp.o
    [  1%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/Buffers.cpp.o
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    CMakeFiles/lib_tgvoip.dir/build.make:81: recipe for target 'CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/BlockingQueue.cpp.o' failed
    make[3]: *** [CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/BlockingQueue.cpp.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    CMakeFiles/lib_tgvoip.dir/build.make:94: recipe for target 'CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/Buffers.cpp.o' failed
    make[3]: *** [CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/Buffers.cpp.o] Error 1
    CMakeFiles/lib_tgvoip.dir/build.make:107: recipe for target 'CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/CongestionControl.cpp.o' failed
    make[3]: *** [CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/CongestionControl.cpp.o] Error 1
    CMakeFiles/Makefile2:185: recipe for target 'CMakeFiles/lib_tgvoip.dir/all' failed
    make[2]: *** [CMakeFiles/lib_tgvoip.dir/all] Error 2
    CMakeFiles/Makefile2:165: recipe for target 'CMakeFiles/_tgvoip.dir/rule' failed
    make[1]: *** [CMakeFiles/_tgvoip.dir/rule] Error 2
    Makefile:137: recipe for target '_tgvoip' failed
    make: *** [_tgvoip] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-a6zqezd7/pytgvoip/setup.py", line 149, in <module>
        'Topic :: Software Development :: Libraries :: Python Modules',
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
        self.run_command('build')
      File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-a6zqezd7/pytgvoip/setup.py", line 64, in run
        self.build_extension(ext)
      File "/tmp/pip-build-a6zqezd7/pytgvoip/setup.py", line 91, in build_extension
        subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
      File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--target', '_tgvoip', '--', '-j3']' returned non-zero exit status 2.

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a6zqezd7/pytgvoip/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-l8a6urz0-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-a6zqezd7/pytgvoip/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2020-07-20
@Qwentor

Update your gcc system to version 8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question