Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Can't install #3

@fabiosoft

Description

@fabiosoft

I issue this command pip3 install pytgvoip-pyrogram

But i get this error and then nothing is installed:

pytgvoip-pyrogram 0.0.5.develop has requirement pytgvoip>=0.0.2.7, but you'll have pytgvoip 0.0.2.7.develop which is incompatible.

I already installed pyrogram and its sample code works good.
How can i use this?

Full log:

Collecting pytgvoip-pyrogram
  Using cached https://files.pythonhosted.org/packages/17/98/6c18d9fb6ba25bd7fcebda7797fc5dfc64e027a6617abe8ef30c2d99c71f/pytgvoip_pyrogram-0.0.5-py3-none-any.whl
Collecting pytgvoip>=0.0.2 (from pytgvoip-pyrogram)
  Using cached https://files.pythonhosted.org/packages/ee/6b/07f67f9904d7f697084d7a3577a773760a366b90ed248ed5542037b45191/pytgvoip-0.0.2.7.tar.gz
  Requested pytgvoip>=0.0.2 from https://files.pythonhosted.org/packages/ee/6b/07f67f9904d7f697084d7a3577a773760a366b90ed248ed5542037b45191/pytgvoip-0.0.2.7.tar.gz#sha256=04c039dc8bad48e9d6ab373c26e474233953524cd51ac3f1ee41042fde28d2d3 (from pytgvoip-pyrogram), but installing version 0.0.2.7.develop
Requirement already satisfied: pyrogram>=0.14.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pytgvoip-pyrogram) (0.14.1)
Requirement already satisfied: pysocks==1.7.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyrogram>=0.14.1->pytgvoip-pyrogram) (1.7.0)
Requirement already satisfied: pyaes==1.6.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from pyrogram>=0.14.1->pytgvoip-pyrogram) (1.6.1)
pytgvoip-pyrogram 0.0.5 has requirement pytgvoip>=0.0.2, but you'll have pytgvoip 0.0.2.7.develop which is incompatible.
Installing collected packages: pytgvoip, pytgvoip-pyrogram
  Running setup.py install for pytgvoip ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/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/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-record-84uxwipx/install-record.txt --single-version-externally-managed --compile:
    /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_required'
      warnings.warn(msg)
    /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py:484: 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.9-x86_64-3.7
    creating build/lib.macosx-10.9-x86_64-3.7/tgvoip
    copying src/tgvoip/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/tgvoip
    copying src/tgvoip/utils.py -> build/lib.macosx-10.9-x86_64-3.7/tgvoip
    copying src/tgvoip/tgvoip.py -> build/lib.macosx-10.9-x86_64-3.7/tgvoip
    running build_ext
    -- The C compiler identification is AppleClang 10.0.0.10001145
    -- The CXX compiler identification is AppleClang 10.0.0.10001145
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 (found version "3.7.3")
    -- Found PythonLibs: /Library/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/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip
       used as include directory in directory /private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip
       used as include directory in directory /private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip
    TGVOIP_LIBRARY (ADVANCED)
        linked by target "_tgvoip" in directory /private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip
    
    -- Configuring incomplete, errors occurred!
    See also "/private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip/build/temp.macosx-10.9-x86_64-3.7/CMakeFiles/CMakeOutput.log".
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip/setup.py", line 161, in <module>
        'Topic :: Software Development :: Libraries :: Python Modules',
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip/setup.py", line 69, in run
        self.build_extension(ext)
      File "/private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip/setup.py", line 93, in build_extension
        subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
      File "/Library/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/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip/build/lib.macosx-10.9-x86_64-3.7', '-DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
    
    ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/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/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-record-84uxwipx/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/5_/52qhhhrd0j1bk7nrmhh887200000gn/T/pip-install-y_rmoboy/pytgvoip/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions