pytgvoip_pyrogram
pytgvoip_pyrogram copied to clipboard
Can't install
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/
Hello! It seems like you did not built the libtgvoip first.
Please refer to this guide to build and install it.
Also there was an issue with library versioning when installed from source, I've just fixed it.
I followed the guide but while conf i get another error:
$ autoreconf --force --install
Makefile.am:5: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:5: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:5: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:5: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:5: its definition is in aclocal's search path.
autoreconf: automake failed with exit status: 1
It seems some trouble with libtool or something like that...and i can't go on
Could be useful a working docker container with everything ready to go. Do you plan to make one?
Install libtool via brew.
What about "ready to go packages":
- I already have CI set up to build windows wheels automatically
- Linux wheels are blocked by an issue described in https://github.com/pypa/auditwheel/issues/159
- I have absolutely no experience with macOS, don't know how to build correct wheels for it and have no Mac machine to fiddle around.
If you could help with setting up CI for macOS wheels, contributions to https://github.com/bakatrouble/pytgvoip are welcome!
Windows was my main priority even though my main OS is Linux, because compiling stuff on Windows is too big of a pain.
I fallowed instructions and correctly built libtgvoip... but when a try an example from readme (making outgoing calls) i get a very strange error...
$ python3 call.py
Traceback (most recent call last):
File "call.py", line 3, in <module>
from tgvoip_pyrogram import VoIPFileStreamService
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tgvoip_pyrogram/__init__.py", line 19, in <module>
from tgvoip_pyrogram.service import VoIPService
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tgvoip_pyrogram/service.py", line 25, in <module>
from tgvoip_pyrogram.incoming_call import VoIPIncomingCall
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tgvoip_pyrogram/incoming_call.py", line 26, in <module>
from tgvoip import CallState
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tgvoip/__init__.py", line 20, in <module>
from tgvoip.tgvoip import *
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tgvoip/tgvoip.py", line 26, in <module>
from _tgvoip import (
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/_tgvoip.cpython-37m-darwin.so, 2): Symbol not found: _AVLayerVideoGravityResizeAspect
Referenced from: /usr/local/lib/libtgvoip.0.dylib
Expected in: flat namespace
in /usr/local/lib/libtgvoip.0.dylib
What is _AVLayerVideoGravityResizeAspect? Maybe some missing packages?
As soon i'm able to make a working environment i will share a docker container for rapid development
Any news?
I also get an error:
Traceback (most recent call last):
File "./vitus.py", line 8, in <module>
from tgvoip_pyrogram import VoIPFileStreamService, VoIPIncomingFileStreamCall
File "/usr/lib/python3.7/site-packages/tgvoip_pyrogram/__init__.py", line 19, in <module>
from tgvoip_pyrogram.service import VoIPService
File "/usr/lib/python3.7/site-packages/tgvoip_pyrogram/service.py", line 25, in <module>
from tgvoip_pyrogram.incoming_call import VoIPIncomingCall
File "/usr/lib/python3.7/site-packages/tgvoip_pyrogram/incoming_call.py", line 26, in <module>
from tgvoip import CallState
File "/usr/lib/python3.7/site-packages/tgvoip/__init__.py", line 20, in <module>
from tgvoip.tgvoip import *
File "/usr/lib/python3.7/site-packages/tgvoip/tgvoip.py", line 26, in <module>
from _tgvoip import (
ImportError: /usr/lib/python3.7/site-packages/_tgvoip.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZTVN6tgvoip14NetworkAddressE
I also got error
Collecting pytgvoip
Using cached pytgvoip-0.0.7.1.tar.gz (2.1 MB)
Using legacy 'setup.py install' for pytgvoip, since package 'wheel' is not insta
lled.
Installing collected packages: pytgvoip
Running setup.py install for pytgvoip ... error
ERROR: Command errored out with exit status 1:
command: 'd:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sy
s.argv[0] = '"'"'C:\\Users\\ME\\AppData\\Local\\Temp\\pip-install-anuw62fp\\pytg
voip\\setup.py'"'"'; __file__='"'"'C:\\Users\\ME\\AppData\\Local\\Temp\\pip-inst
all-anuw62fp\\pytgvoip\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(
__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(com
pile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ME\AppData\Loc
al\Temp\pip-record-ut2cww0z\install-record.txt' --single-version-externally-mana
ged --compile --install-headers 'd:\python\Include\pytgvoip'
cwd: C:\Users\ME\AppData\Local\Temp\pip-install-anuw62fp\pytgvoip\
Complete output (62 lines):
d:\python\lib\distutils\dist.py:274: UserWarning: Unknown distribution optio
n: 'python_required'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\tgvoip
copying src\tgvoip\tgvoip.py -> build\lib.win-amd64-3.9\tgvoip
copying src\tgvoip\utils.py -> build\lib.win-amd64-3.9\tgvoip
copying src\tgvoip\__init__.py -> build\lib.win-amd64-3.9\tgvoip
running build_ext
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:21 (project):
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/ME/AppData/Local/Temp/pip-install-anuw62fp/pytgvoip/build
/temp.win-amd64-3.9/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ME\AppData\Local\Temp\pip-install-anuw62fp\pytgvoip\setup.p
y", line 109, in <module>
setup(
File "d:\python\lib\site-packages\setuptools\__init__.py", line 165, in se
tup
return distutils.core.setup(**attrs)
File "d:\python\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "d:\python\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "d:\python\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\python\lib\site-packages\setuptools\command\install.py", line 61,
in run
return orig.install.run(self)
File "d:\pyt1J2WMuE8JJeN5WsA1v8DxhXBezXy1STMy3.py", line 546, in run
self.run_command('build')
File "d:\python\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "d:\python\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "d:\python\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "d:\python\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "d:\python\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\ME\AppData\Local\Temp\pip-install-anuw62fp\pytgvoip\setup.p
y", line 64, in run
self.build_extension(ext)
File "C:\Users\ME\AppData\Local\Temp\pip-install-anuw62fp\pytgvoip\setup.p
y", line 90, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.bu
ild_temp, env=env)
File "d:\python\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\ME\\AppData\\L
ocal\\Temp\\pip-install-anuw62fp\\pytgvoip', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C
:\\Users\\ME\\AppData\\Local\\Temp\\pip-install-anuw62fp\\pytgvoip\\build\\lib.w
in-amd64-3.9', '-DPYTHON_EXECUTABLE=d:\\python\\python.exe', '-DCMAKE_LIBRARY_OU
TPUT_DIRECTORY_RELEASE=C:\\Users\\ME\\AppData\\Local\\Temp\\pip-install-anuw62fp
\\pytgvoip\\build\\lib.win-amd64-3.9', '-A', 'x64']' returned non-zero exit stat
us 1.
----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\python\python.exe' -u -c 'imp
ort sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ME\\AppData\\Local\
\Temp\\pip-install-anuw62fp\\pytgvoip\\setup.py'"'"'; __file__='"'"'C:\\Users\\M
E\\AppData\\Local\\Temp\\pip-install-anuw62fp\\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 'C:\Users\ME\AppData\Local\Temp\pip-record-ut2cww0z\install-record.txt'
--single-version-externally-managed --compile --install-headers 'd:\python\Incl
ude\pytgvoip' Check the logs for full command output.```
I get this issue also for python 3.8.8 on Windows 10 when trying to install pytgvoip
as a workaround for me, I installed WSL on windows, created Ubuntu image, was then able to install (install python (due to the GCC version of 8 which is required due to some compiler flags I believe). I can then call it from windows via WSL
Error
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
Full traceback
Collecting pytgvoip
Using cached pytgvoip-0.0.7.1.tar.gz (2.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pytgvoip
Building wheel for pytgvoip (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pytgvoip (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [275 lines of output]
C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\dist.py:265: UserWarning: Unknown distribution option: 'python_required'
warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-cpython-310
creating build\lib.win32-cpython-310\tgvoip
copying src\tgvoip\tgvoip.py -> build\lib.win32-cpython-310\tgvoip
copying src\tgvoip\utils.py -> build\lib.win32-cpython-310\tgvoip
copying src\tgvoip\__init__.py -> build\lib.win32-cpython-310\tgvoip
running build_ext
-- Building for: Visual Studio 17 2022
-- The C compiler identification is MSVC 19.35.32217.1
-- The CXX compiler identification is MSVC 19.35.32217.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - 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: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Python310/python.exe (found version "3.10")
-- Found PythonLibs: C:/Python310/libs/Python310.lib
-- pybind11 v2.4.dev4
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- LTO enabled
-- Configuring done (5.3s)
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "external_openssl" includes non-existent path
"C:/Users/smart/AppData/Local/Temp/pip-install-u9s6vxih/openssl_1_1_1/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Python310\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\build_meta.py", line 416, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\build_meta.py", line 401, in _build_with_temp_dir
self.run_setup()
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 109, in <module>
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
super().run_command(command)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 343, in run
self.run_command("build")
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
super().run_command(command)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
super().run_command(command)
File "C:\Users\smart\AppData\Local\Temp\pip-build-env-xrxg7z8n\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 64, in run
File "<string>", line 90, in build_extension
File "C:\Python310\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\smart\\AppData\\Local\\Temp\\pip-install-u9s6vxih\\pytgvoip_723dc9f3c5f348e18e2e463f83d51c4a', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\smart\\AppData\\Local\\Temp\\pip-install-u9s6vxih\\pytgvoip_723dc9f3c5f348e18e2e463f83d51c4a\\build\\lib.win32-cpython-310', '-DPYTHON_EXECUTABLE=C:\\Python310\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\smart\\AppData\\Local\\Temp\\pip-install-u9s6vxih\\pytgvoip_723dc9f3c5f348e18e2e463f83d51c4a\\build\\lib.win32-cpython-310', '-A', 'x64']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pytgvoip
Failed to build pytgvoip
ERROR: Could not build wheels for pytgvoip, which is required to install pyproject.toml-based projects```