Code Monkey home page Code Monkey logo

pytgvoip's People

Contributors

alissonlauffer avatar bakatrouble avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pytgvoip's Issues

Error comes up when installing

How to generate the issue:

pip3 install pytgvoip

What happens:

Collecting pytgvoip
  Using cached https://files.pythonhosted.org/packages/ee/6b/07f67f9904d7f697084d7a3577a773760a366b90ed248ed5542037b45191/pytgvoip-0.0.2.7.tar.gz
Building wheels for collected packages: pytgvoip
  Building wheel for pytgvoip (setup.py) ... error
  ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/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 /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-wheel-fxkupjxp --python-tag cp37:
  ERROR: /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_required'
    warnings.warn(msg)
  /usr/local/lib/python3.7/site-packages/setuptools/dist.py:481: UserWarning: The version specified ('0.0.2.7.develop') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
    "details." % self.metadata.version
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.14-x86_64-3.7
  creating build/lib.macosx-10.14-x86_64-3.7/tgvoip
  copying src/tgvoip/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/tgvoip
  copying src/tgvoip/utils.py -> build/lib.macosx-10.14-x86_64-3.7/tgvoip
  copying src/tgvoip/tgvoip.py -> build/lib.macosx-10.14-x86_64-3.7/tgvoip
  running build_ext
  -- The C compiler identification is AppleClang 10.0.1.10010046
  -- The CXX compiler identification is AppleClang 10.0.1.10010046
  -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
  -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- TGVOIP_INCLUDE_DIR-NOTFOUND
  -- TGVOIP_LIBRARY-NOTFOUND
  -- Could NOT find TGVOIP (missing: TGVOIP_INCLUDE_DIR TGVOIP_LIBRARY)
  -- Found PythonInterp: /usr/local/opt/python/bin/python3.7 (found version "3.7.4")
  -- Found PythonLibs: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib
  -- pybind11 v2.3.dev0
  -- Performing Test HAS_FLTO
  -- Performing Test HAS_FLTO - Success
  -- LTO enabled
  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  Please set them or make sure they are set and tested correctly in the CMake files:
  TGVOIP_INCLUDE_DIR (ADVANCED)
     used as include directory in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip
     used as include directory in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip
     used as include directory in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip
  TGVOIP_LIBRARY (ADVANCED)
      linked by target "_tgvoip" in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip

  -- Configuring incomplete, errors occurred!
  See also "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeOutput.log".
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/setup.py", line 161, in <module>
      'Topic :: Software Development :: Libraries :: Python Modules',
    File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
      self.run_command('build')
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/setup.py", line 69, in run
      self.build_extension(ext)
    File "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/setup.py", line 93, in build_extension
      subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
    File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 347, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/build/lib.macosx-10.14-x86_64-3.7', '-DPYTHON_EXECUTABLE=/usr/local/opt/python/bin/python3.7', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: 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
    ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/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 /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-record-9iluv1wc/install-record.txt --single-version-externally-managed --compile:
    ERROR: /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_required'
      warnings.warn(msg)
    /usr/local/lib/python3.7/site-packages/setuptools/dist.py:481: UserWarning: The version specified ('0.0.2.7.develop') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
      "details." % self.metadata.version
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.14-x86_64-3.7
    creating build/lib.macosx-10.14-x86_64-3.7/tgvoip
    copying src/tgvoip/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/tgvoip
    copying src/tgvoip/utils.py -> build/lib.macosx-10.14-x86_64-3.7/tgvoip
    copying src/tgvoip/tgvoip.py -> build/lib.macosx-10.14-x86_64-3.7/tgvoip
    running build_ext
    -- The C compiler identification is AppleClang 10.0.1.10010046
    -- The CXX compiler identification is AppleClang 10.0.1.10010046
    -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
    -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
    -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- TGVOIP_INCLUDE_DIR-NOTFOUND
    -- TGVOIP_LIBRARY-NOTFOUND
    -- Could NOT find TGVOIP (missing: TGVOIP_INCLUDE_DIR TGVOIP_LIBRARY)
    -- Found PythonInterp: /usr/local/opt/python/bin/python3.7 (found version "3.7.4")
    -- Found PythonLibs: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib
    -- pybind11 v2.3.dev0
    -- Performing Test HAS_FLTO
    -- Performing Test HAS_FLTO - Success
    -- LTO enabled
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    TGVOIP_INCLUDE_DIR (ADVANCED)
       used as include directory in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip
       used as include directory in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip
       used as include directory in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip
    TGVOIP_LIBRARY (ADVANCED)
        linked by target "_tgvoip" in directory /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip

    -- Configuring incomplete, errors occurred!
    See also "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/build/temp.macosx-10.14-x86_64-3.7/CMakeFiles/CMakeOutput.log".
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/setup.py", line 161, in <module>
        'Topic :: Software Development :: Libraries :: Python Modules',
      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/setup.py", line 69, in run
        self.build_extension(ext)
      File "/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/setup.py", line 93, in build_extension
        subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
      File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 347, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/build/lib.macosx-10.14-x86_64-3.7', '-DPYTHON_EXECUTABLE=/usr/local/opt/python/bin/python3.7', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command "/usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/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 /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-record-9iluv1wc/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_r/zy42qp913_z34sr_fkkp8yzw0000gq/T/pip-install-db6j6tjf/pytgvoip/

What's actually expected to happen:

It should be installed.

My system information:

  • python --version : Python 2.7.10
  • python3 --version : Python 3.7.4
  • Macbook Pro Mid 2014
  • Mojave version 10.14.6

please help with version `libcrypto.so.10' not found

Traceback (most recent call last):
File "/home/osboxes/PycharmProjects/voiceapi/app/appvoice.py", line 2, in
from tgvoip_pyrogram import VoIPFileStreamService
File "/home/osboxes/PycharmProjects/voiceapi/venv/lib/python3.5/site-packages/tgvoip_pyrogram/init.py", line 19, in
from tgvoip_pyrogram.service import VoIPService
File "/home/osboxes/PycharmProjects/voiceapi/venv/lib/python3.5/site-packages/tgvoip_pyrogram/service.py", line 25, in
from tgvoip_pyrogram.incoming_call import VoIPIncomingCall
File "/home/osboxes/PycharmProjects/voiceapi/venv/lib/python3.5/site-packages/tgvoip_pyrogram/incoming_call.py", line 26, in
from tgvoip import CallState
File "/home/osboxes/PycharmProjects/voiceapi/venv/lib/python3.5/site-packages/tgvoip/init.py", line 20, in
from tgvoip.tgvoip import *
File "/home/osboxes/PycharmProjects/voiceapi/venv/lib/python3.5/site-packages/tgvoip/tgvoip.py", line 26, in
from _tgvoip import (
ImportError: /home/osboxes/PycharmProjects/voiceapi/venv/lib/python3.5/site-packages/.libs_tgvoip/libcrypto-a94305d7.so.1.0.1e: version `libcrypto.so.10' not found (required by /home/osboxes/PycharmProjects/voiceapi/venv/lib/python3.5/site-packages/.libs_tgvoip/libtgvoip-d66a5fc7.so.0.0.0)

Process finished with exit code 1

Calling client freeze when called client discarded the incoming call initiated by calling client

this is the log output when the problem occurred:

D/tgvoip: Packet with seq 108 was not acknowledged
V/tgvoip: Writing extra into header: type 1, length 5
V/tgvoip: jitter: found no packet for timestamp 7258 (last put = 0, lost = 0)
V/tgvoip: jitter: found no packet for timestamp 7318 (last put = 0, lost = 0)
V/tgvoip: Writing extra into header: type 1, length 5
D/tgvoip: Packet with seq 109 was not acknowledged
D/tgvoip: Packet with seq 110 was not acknowledged
V/tgvoip: jitter: found no packet for timestamp 7318 (last put = 0, lost = 0)
V/tgvoip: jitter: found no packet for timestamp 7378 (last put = 0, lost = 0)
V/tgvoip: Writing extra into header: type 1, length 5
D/tgvoip: Packet with seq 111 was not acknowledged
V/tgvoip: jitter: found no packet for timestamp 7378 (last put = 0, lost = 0)
V/tgvoip: jitter: found no packet for timestamp 7438 (last put = 0, lost = 0)
V/tgvoip: Writing extra into header: type 1, length 5
V/tgvoip: jitter: found no packet for timestamp 7438 (last put = 0, lost = 0)
V/tgvoip: jitter: found no packet for timestamp 7498 (last put = 0, lost = 0)
V/tgvoip: Writing extra into header: type 1, length 5
D/tgvoip: Packet with seq 112 was not acknowledged

Error during installation as user: Permission denied

$ pip3 install -U pytgvoip                                                                                                            
Collecting pytgvoip
  Using cached https://files.pythonhosted.org/packages/ee/6b/07f67f9904d7f697084d7a3577a773760a366b90ed248ed5542037b45191/pytgvoip-0.0.2.7.tar.gz
Building wheels for collected packages: pytgvoip
  Building wheel for pytgvoip (setup.py) ... done
  Stored in directory: /home/mike/.cache/pip/wheels/bb/30/3b/f3bde0aeb1441fe7dd913f1f2d6f495f967612abd47cfdfd0e
Successfully built pytgvoip
Installing collected packages: pytgvoip
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python3.7/site-packages/_tgvoip.cpython-37m-x86_64-linux-gnu.so'
Consider using the `--user` option or check the permissions.

Distro: Arch Linux
Python: 3.7.4
pip: 19.0.3

Get a .whl file

Hi! I am so grateful y'all made this. I'm trying to find the wheel to install for Windows but I think the last working build's artifact got deleted:

Screen Shot 2020-10-12 at 3 36 41 PM

Can someone kick off a build for me? I'd love to try this out for the windows service I'm building. I'll give it some thorough testing for y'all if you'd like and I can even try to contribute fixes for anything I find.

Thanks so much for making this!

Error during installation

libtgvoip is build and ready

> ldconfig -p | grep voip
	libtgvoip.so.2 (libc6,x86-64) => /usr/local/lib/libtgvoip.so.2
	libtgvoip.so (libc6,x86-64) => /usr/local/lib/libtgvoip.so

But pip installation fails:

> pip install pytgvoip
Collecting pytgvoip
  Using cached pytgvoip-0.0.5.tar.gz (2.1 MB)
Building wheels for collected packages: pytgvoip
  Building wheel for pytgvoip (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/dopeforhope/virtualEnv/voip_tunnel/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f_4hpsz9/pytgvoip/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f_4hpsz9/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/pip-wheel-m3mene77
       cwd: /tmp/pip-install-f_4hpsz9/pytgvoip/
  Complete output (98 lines):
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_required'
    warnings.warn(msg)
  running bdist_wheel
  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/__init__.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/tgvoip.py -> build/lib.linux-x86_64-3.6/tgvoip
  running build_ext
  -- The C compiler identification is GNU 7.4.0
  -- The CXX compiler identification is GNU 7.4.0
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found PythonInterp: /home/dopeforhope/virtualEnv/voip_tunnel/bin/python3 (found version "3.6.9")
  -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so
  -- pybind11 v2.3.dev0
  -- 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-install-f_4hpsz9/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
  [  1%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/BlockingQueue.cpp.o
  [  1%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/JitterBuffer.cpp.o
  cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
  cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
  CMakeFiles/lib_tgvoip.dir/build.make:88: 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
  make[3]: *** Waiting for unfinished jobs....
  [  1%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/Buffers.cpp.o
  [  1%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/EchoCanceller.cpp.o
  CMakeFiles/lib_tgvoip.dir/build.make:62: 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
  cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
  CMakeFiles/lib_tgvoip.dir/build.make:114: recipe for target 'CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/JitterBuffer.cpp.o' failed
  make[3]: *** [CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/JitterBuffer.cpp.o] Error 1
  cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
  cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
  CMakeFiles/lib_tgvoip.dir/build.make:75: 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:101: recipe for target 'CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/EchoCanceller.cpp.o' failed
  make[3]: *** [CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/EchoCanceller.cpp.o] Error 1
  CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/lib_tgvoip.dir/all' failed
  make[2]: *** [CMakeFiles/lib_tgvoip.dir/all] Error 2
  CMakeFiles/Makefile2:84: recipe for target 'CMakeFiles/_tgvoip.dir/rule' failed
  make[1]: *** [CMakeFiles/_tgvoip.dir/rule] Error 2
  Makefile:118: recipe for target '_tgvoip' failed
  make: *** [_tgvoip] Error 2
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-f_4hpsz9/pytgvoip/setup.py", line 149, in <module>
      'Topic :: Software Development :: Libraries :: Python Modules',
    File "/home/dopeforhope/virtualEnv/voip_tunnel/lib/python3.6/site-packages/setuptools/__init__.py", line 145, 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 "/home/dopeforhope/virtualEnv/voip_tunnel/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 223, 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-install-f_4hpsz9/pytgvoip/setup.py", line 63, in run
      self.build_extension(ext)
    File "/tmp/pip-install-f_4hpsz9/pytgvoip/setup.py", line 90, 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', '--', '-j5']' returned non-zero exit status 2.
  ----------------------------------------
  ERROR: 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
    ERROR: Command errored out with exit status 1:
     command: /home/dopeforhope/virtualEnv/voip_tunnel/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f_4hpsz9/pytgvoip/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f_4hpsz9/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-record-69z6nx0c/install-record.txt --single-version-externally-managed --compile --install-headers /home/dopeforhope/virtualEnv/voip_tunnel/include/site/python3.6/pytgvoip
         cwd: /tmp/pip-install-f_4hpsz9/pytgvoip/
    Complete output (100 lines):
    /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/__init__.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/tgvoip.py -> build/lib.linux-x86_64-3.6/tgvoip
    running build_ext
    -- The C compiler identification is GNU 7.4.0
    -- The CXX compiler identification is GNU 7.4.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found PythonInterp: /home/dopeforhope/virtualEnv/voip_tunnel/bin/python3 (found version "3.6.9")
    -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so
    -- pybind11 v2.3.dev0
    -- 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-install-f_4hpsz9/pytgvoip/build/temp.linux-x86_64-3.6
    Scanning dependencies of target lib_tgvoip
    [  0%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/Buffers.cpp.o
    [  0%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/BlockingQueue.cpp.o
    [  0%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/JitterBuffer.cpp.o
    [  0%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/EchoCanceller.cpp.o
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    [  1%] Building CXX object CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/CongestionControl.cpp.o
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    CMakeFiles/lib_tgvoip.dir/build.make:62: 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:75: 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
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    cc1plus: error: -Werror=class-memaccess: no option -Wclass-memaccess
    CMakeFiles/lib_tgvoip.dir/build.make:101: recipe for target 'CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/EchoCanceller.cpp.o' failed
    make[3]: *** [CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/EchoCanceller.cpp.o] Error 1
    CMakeFiles/lib_tgvoip.dir/build.make:114: recipe for target 'CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/JitterBuffer.cpp.o' failed
    make[3]: *** [CMakeFiles/lib_tgvoip.dir/3rdparty/libtgvoip/JitterBuffer.cpp.o] Error 1
    CMakeFiles/lib_tgvoip.dir/build.make:88: 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:109: recipe for target 'CMakeFiles/lib_tgvoip.dir/all' failed
    make[2]: *** [CMakeFiles/lib_tgvoip.dir/all] Error 2
    CMakeFiles/Makefile2:84: recipe for target 'CMakeFiles/_tgvoip.dir/rule' failed
    make[1]: *** [CMakeFiles/_tgvoip.dir/rule] Error 2
    Makefile:118: recipe for target '_tgvoip' failed
    make: *** [_tgvoip] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-f_4hpsz9/pytgvoip/setup.py", line 149, in <module>
        'Topic :: Software Development :: Libraries :: Python Modules',
      File "/home/dopeforhope/virtualEnv/voip_tunnel/lib/python3.6/site-packages/setuptools/__init__.py", line 145, 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 "/home/dopeforhope/virtualEnv/voip_tunnel/lib/python3.6/site-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-install-f_4hpsz9/pytgvoip/setup.py", line 63, in run
        self.build_extension(ext)
      File "/tmp/pip-install-f_4hpsz9/pytgvoip/setup.py", line 90, 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', '--', '-j5']' returned non-zero exit status 2.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/dopeforhope/virtualEnv/voip_tunnel/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f_4hpsz9/pytgvoip/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f_4hpsz9/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-record-69z6nx0c/install-record.txt --single-version-externally-managed --compile --install-headers /home/dopeforhope/virtualEnv/voip_tunnel/include/site/python3.6/pytgvoip Check the logs for full command output.

OS: Ubuntu 18.04
Python: 3.6.9

How can I check if a call is playing?

Hello,
I want to finish a call once the play is over.
How can I check if the call is still "playing"? I saw that call.playing is available in libtgvoip but don't know how to use it in pytgvoip.

Thanks
Kind regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.