Задать вопрос
  • Как сделать мини сервер?

    Levman5
    @Levman5 Автор вопроса
    maxsmeller, Решил raspberry pi 4 model b брать. На 2гб оперативной памяти.
  • Heroku ошибка. Что делать?

    Levman5
    @Levman5 Автор вопроса
    Что логи значат?
    C:\Users\Irina\Desktop\py\tbot2>heroku logs --tail
     >   Warning: heroku update available from 7.53.0 to 7.57.0.
    2021-08-22T12:30:12.742232+00:00 app[api]: Release v1 created by user lev_bariak
    h@icloud.com
    2021-08-22T12:30:12.742232+00:00 app[api]: Initial release by user lev_bariakh@i
    cloud.com
    2021-08-22T12:30:12.888285+00:00 app[api]: Enable Logplex by user lev_bariakh@ic
    loud.com
    2021-08-22T12:30:12.888285+00:00 app[api]: Release v2 created by user lev_bariak
    h@icloud.com
    2021-08-22T12:31:23.027592+00:00 heroku[router]: at=info code=H81 desc="Blank ap
    p" method=GET path="/" host=imageq-bot.herokuapp.com request_id=fba6ca12-b7e0-42
    b4-9b92-109743216aed fwd="85.172.106.38" dyno= connect= service= status=502 byte
    s= protocol=https
    2021-08-22T12:31:23.287604+00:00 heroku[router]: at=info code=H81 desc="Blank ap
    p" method=GET path="/favicon.ico" host=imageq-bot.herokuapp.com request_id=f8384
    08c-2c32-4e8f-a372-e41589f1ca6b fwd="85.172.106.38" dyno= connect= service= stat
    us=502 bytes= protocol=https
    2021-08-22T12:34:34.000000+00:00 app[api]: Build started by user lev_bariakh@icl
    oud.com
    2021-08-22T12:34:36.000000+00:00 app[api]: Build failed -- check your build outp
    ut: https://dashboard.heroku.com/apps/9996748e-d2aa-463d-a0c3-4d44bb4c1837/activ
    ity/builds/32f6c49e-c401-44ae-944a-7ff08292a3d3
    2021-08-22T12:34:55.689747+00:00 heroku[router]: at=info code=H81 desc="Blank ap
    p" method=GET path="/" host=imageq-bot.herokuapp.com request_id=f3014d83-a962-47
    ed-a276-1752081befb5 fwd="85.172.106.38" dyno= connect= service= status=502 byte
    s= protocol=https
    2021-08-22T12:34:55.941085+00:00 heroku[router]: at=info code=H81 desc="Blank ap
    p" method=GET path="/favicon.ico" host=imageq-bot.herokuapp.com request_id=e83dc
    4c1-650e-4a6b-90f1-ccde9e8c5632 fwd="85.172.106.38" dyno= connect= service= stat
    us=502 bytes= protocol=https
    2021-08-22T12:50:59.000000+00:00 app[api]: Build started by user lev_bariakh@icl
    oud.com
    2021-08-22T12:51:00.000000+00:00 app[api]: Build failed -- check your build outp
    ut: https://dashboard.heroku.com/apps/9996748e-d2aa-463d-a0c3-4d44bb4c1837/activ
    ity/builds/0ccd2856-b956-4455-857d-aab3b15f14ba
    2021-08-22T12:52:00.000000+00:00 app[api]: Build started by user lev_bariakh@icl
    oud.com
    2021-08-22T12:52:01.000000+00:00 app[api]: Build failed -- check your build outp
    ut: https://dashboard.heroku.com/apps/9996748e-d2aa-463d-a0c3-4d44bb4c1837/activ
    ity/builds/416dcbc5-deea-48a3-8456-0d07597478f2
    2021-08-22T12:52:57.000000+00:00 app[api]: Build started by user lev_bariakh@icl
    oud.com
    2021-08-22T12:52:59.000000+00:00 app[api]: Build failed -- check your build outp
    ut: https://dashboard.heroku.com/apps/9996748e-d2aa-463d-a0c3-4d44bb4c1837/activ
    ity/builds/7b74ae28-5068-4f82-842a-c7e8beedcdba
    2021-08-22T12:53:26.000000+00:00 app[api]: Build started by user lev_bariakh@icl
    oud.com
    2021-08-22T12:53:28.000000+00:00 app[api]: Build failed -- check your build outp
    ut: https://dashboard.heroku.com/apps/9996748e-d2aa-463d-a0c3-4d44bb4c1837/activ
    ity/builds/cc897c4b-e985-4f67-a399-21fcb5f496fd
    2021-08-22T13:06:49.000000+00:00 app[api]: Build started by user lev_bariakh@icl
    oud.com
    2021-08-22T13:07:18.550065+00:00 app[api]: Deploy 1fcb7b3b by user lev_bariakh@i
    cloud.com
    2021-08-22T13:07:18.550065+00:00 app[api]: Release v3 created by user lev_bariak
    h@icloud.com
    2021-08-22T13:07:30.000000+00:00 app[api]: Build succeeded
    2021-08-22T13:07:45.378582+00:00 heroku[router]: at=error code=H14 desc="No web
    processes running" method=GET path="/" host=imageq-bot.herokuapp.com request_id=
    70175e46-6c00-4d61-945e-67c206f72323 fwd="85.172.106.38" dyno= connect= service=
     status=503 bytes= protocol=https
    2021-08-22T13:07:46.573567+00:00 heroku[router]: at=error code=H14 desc="No web
    processes running" method=GET path="/favicon.ico" host=imageq-bot.herokuapp.com
    request_id=e8839e46-d13f-42a2-81b4-38f87765723f fwd="85.172.106.38" dyno= connec
    t= service= status=503 bytes= protocol=https
    2021-08-22T13:07:52.101466+00:00 heroku[router]: at=error code=H14 desc="No web
    processes running" method=GET path="/" host=imageq-bot.herokuapp.com request_id=
    b8bc4061-46aa-46a4-bc97-8a3fe1611961 fwd="85.172.106.38" dyno= connect= service=
     status=503 bytes= protocol=https
    2021-08-22T13:07:52.644917+00:00 heroku[router]: at=error code=H14 desc="No web
    processes running" method=GET path="/favicon.ico" host=imageq-bot.herokuapp.com
    request_id=5fcc1c33-7052-4e88-973a-89cef0b43ab6 fwd="85.172.106.38" dyno= connec
    t= service= status=503 bytes= protocol=https
  • Heroku ошибка. Что делать?

    Levman5
    @Levman5 Автор вопроса
    Я поменял содержание runtime.txt на python-3.8.11 Но такая же ошибка
  • Как получить ссылку на фотографирую отправленную юзером боту в телеграмм?

    Levman5
    @Levman5 Автор вопроса
    Делиться ссылкой не буду. Бот будет отсылать ссылку на сервер, сервер скачивает фото, преобразовывает и отправляет ссылку на новое фото юзеру.
  • Как сделать из python файла .exe?

    Levman5
    @Levman5 Автор вопроса
    Всё будет работать даже если в коде используются json файлы для работы dialogflow?
  • Как подключить dialogflow к python?

    Levman5
    @Levman5 Автор вопроса
    Алан Гибизов, Вы тоже не понимаете. Вопрос заключается не в коде, а в том где взять токен для dialogflow.
  • Как подключить dialogflow к python?

    Levman5
    @Levman5 Автор вопроса
    Алан Гибизов, Я делаю голосового ассистента И решил подключить ему dialogflow. Нашёл на ютубе этот ролик и в начале решил протестировать на коде из видео. Потом добавить в ассистента
  • Не работает playsaund. Что делать?

    Levman5
    @Levman5 Автор вопроса
    Всё ровно ошибка:
    C:\Users\Дом\Desktop\Py>golos.py
    Скажите вашу команнду: g
    Данной команды не существует!
    
        Error 259 for command:
            play _audio_golos1628163845.8361058_3742.mp3 wait
        Указанный параметр команды не распознан драйвером.
    Traceback (most recent call last):
      File "C:\Users\Дом\Desktop\Py\golos.py", line 35, in <module>
        do_this_command(command)
      File "C:\Users\Дом\Desktop\Py\golos.py", line 30, in do_this_command
        say_message("Данной команды не существует!")
      File "C:\Users\Дом\Desktop\Py\golos.py", line 14, in say_message
        playsound.playsound(file_name)
      File "C:\Users\Дом\AppData\Local\Programs\Python\Python38\lib\site-packages\playsound.py", line 73, in _playsoundWin
        winCommand(u'play {}{}'.format(sound, ' wait' if block else ''))
      File "C:\Users\Дом\AppData\Local\Programs\Python\Python38\lib\site-packages\playsound.py", line 64, in winCommand
        raise PlaysoundException(exceptionMessage)
    playsound.PlaysoundException:
        Error 259 for command:
            play _audio_golos1628163845.8361058_3742.mp3 wait
        Указанный параметр команды не распознан драйвером.
  • Как решать проблемы с face_recognition?

    Levman5
    @Levman5 Автор вопроса
    alexbprofit, Послу установки по инструкции опять другая ошибка
    Microsoft Windows [Version 10.0.17763.2061]
    (c) Корпорация Майкрософт (Microsoft Corporation), 2018. Все права защищены.
    
    C:\Users\Дом>pip install cmake
    Requirement already satisfied: cmake in c:\users\дом\appdata\local\programs\python\python38\lib\site-packages (3.21.1.post1)
    WARNING: You are using pip version 21.1.3; however, version 21.2.2 is available.
    You should consider upgrading via the 'c:\users\дом\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.
    
    C:\Users\Дом>pip install dlib
    Collecting dlib
      Using cached dlib-19.22.0.tar.gz (7.4 MB)
    Using legacy 'setup.py install' for dlib, since package 'wheel' is not installed.
    Installing collected packages: dlib
        Running setup.py install for dlib ... error
        ERROR: Command errored out with exit status 1:
         command: 'c:\users\дом\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Дом\\AppData\\Local\\Temp\\pip-install-1znae5re\\dlib_ad5e4ed886094762b350bd13cdcb007d\\setup.py'"'"'; __file__='"'"'C:\\Users\\Дом\\AppData\\Local\\Temp\\pip-install-1znae5re\\dlib_ad5e4ed886094762b350bd13cdcb007d\\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 'C:\Users\Дом\AppData\Local\Temp\pip-record-um_adwza\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\дом\appdata\local\programs\python\python38\Include\dlib'
             cwd: C:\Users\Дом\AppData\Local\Temp\pip-install-1znae5re\dlib_ad5e4ed886094762b350bd13cdcb007d\
        Complete output (64 lines):
        running install
        running build
        running build_py
        package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
        running build_ext
        Building extension for Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)]
        Invoking CMake setup: 'cmake C:\Users\Дом\AppData\Local\Temp\pip-install-1znae5re\dlib_ad5e4ed886094762b350bd13cdcb007d\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Дом\AppData\Local\Temp\pip-install-1znae5re\dlib_ad5e4ed886094762b350bd13cdcb007d\build\lib.win-amd64-3.8 -DPYTHON_EXECUTABLE=c:\users\дом\appdata\local\programs\python\python38\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\Дом\AppData\Local\Temp\pip-install-1znae5re\dlib_ad5e4ed886094762b350bd13cdcb007d\build\lib.win-amd64-3.8 -A x64'
        -- Building for: Visual Studio 16 2019
        -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763.
        -- The C compiler identification is MSVC 19.29.30040.0
        -- The CXX compiler identification is MSVC 19.29.30040.0
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/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/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Found PythonInterp: C:/Users/Дом/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8")
        CMake Error at C:/Users/Дом/AppData/Local/Temp/pip-install-1znae5re/dlib_ad5e4ed886094762b350bd13cdcb007d/dlib/external/pybind11/tools/FindPythonLibsNew.cmake:158 (message):
          Python libraries not found
        Call Stack (most recent call first):
          C:/Users/Дом/AppData/Local/Temp/pip-install-1znae5re/dlib_ad5e4ed886094762b350bd13cdcb007d/dlib/external/pybind11/tools/pybind11Tools.cmake:16 (find_package)
          C:/Users/Дом/AppData/Local/Temp/pip-install-1znae5re/dlib_ad5e4ed886094762b350bd13cdcb007d/dlib/external/pybind11/CMakeLists.txt:33 (include)
    
    
        -- Configuring incomplete, errors occurred!
        See also "C:/Users/Дом/AppData/Local/Temp/pip-install-1znae5re/dlib_ad5e4ed886094762b350bd13cdcb007d/build/temp.win-amd64-3.8/Release/CMakeFiles/CMakeOutput.log".
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "C:\Users\Дом\AppData\Local\Temp\pip-install-1znae5re\dlib_ad5e4ed886094762b350bd13cdcb007d\setup.py", line 222, in <module>
            setup(
          File "c:\users\дом\appdata\local\programs\python\python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
            return distutils.core.setup(**attrs)
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\core.py", line 148, in setup
            dist.run_commands()
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\dist.py", line 966, in run_commands
            self.run_command(cmd)
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "c:\users\дом\appdata\local\programs\python\python38\lib\site-packages\setuptools\command\install.py", line 61, in run
            return orig.install.run(self)
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\command\install.py", line 545, in run
            self.run_command('build')
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\command\build.py", line 135, in run
            self.run_command(cmd_name)
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "c:\users\дом\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "C:\Users\Дом\AppData\Local\Temp\pip-install-1znae5re\dlib_ad5e4ed886094762b350bd13cdcb007d\setup.py", line 134, in run
            self.build_extension(ext)
          File "C:\Users\Дом\AppData\Local\Temp\pip-install-1znae5re\dlib_ad5e4ed886094762b350bd13cdcb007d\setup.py", line 171, in build_extension
            subprocess.check_call(cmake_setup, cwd=build_folder)
          File "c:\users\дом\appdata\local\programs\python\python38\lib\subprocess.py", line 364, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\Дом\\AppData\\Local\\Temp\\pip-install-1znae5re\\dlib_ad5e4ed886094762b350bd13cdcb007d\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\Дом\\AppData\\Local\\Temp\\pip-install-1znae5re\\dlib_ad5e4ed886094762b350bd13cdcb007d\\build\\lib.win-amd64-3.8', '-DPYTHON_EXECUTABLE=c:\\users\\дом\\appdata\\local\\programs\\python\\python38\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\Дом\\AppData\\Local\\Temp\\pip-install-1znae5re\\dlib_ad5e4ed886094762b350bd13cdcb007d\\build\\lib.win-amd64-3.8', '-A', 'x64']' returned non-zero exit status 1.
        ----------------------------------------
    ERROR: Command errored out with exit status 1: 'c:\users\дом\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Дом\\AppData\\Local\\Temp\\pip-install-1znae5re\\dlib_ad5e4ed886094762b350bd13cdcb007d\\setup.py'"'"'; __file__='"'"'C:\\Users\\Дом\\AppData\\Local\\Temp\\pip-install-1znae5re\\dlib_ad5e4ed886094762b350bd13cdcb007d\\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 'C:\Users\Дом\AppData\Local\Temp\pip-record-um_adwza\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\дом\appdata\local\programs\python\python38\Include\dlib' Check the logs for full command output.
    WARNING: You are using pip version 21.1.3; however, version 21.2.2 is available.
    You should consider upgrading via the 'c:\users\дом\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.
    
    C:\Users\Дом>