Ikaros-521 / AI-Vtuber

AI Vtuber是一个由 【ChatterBot/ChatGPT/claude/langchain/chatglm/text-gen-webui/闻达/千问/kimi/ollama】 驱动的虚拟主播【Live2D/UE/xuniren】,可以在 【Bilibili/抖音/快手/微信视频号/拼多多/斗鱼/YouTube/twitch/TikTok】 直播中与观众实时互动 或 直接在本地进行聊天。它使用TTS技术【edge-tts/VITS/elevenlabs/bark/bert-vits2/睿声】生成回答并可以选择【so-vits-svc/DDSP-SVC】变声;指令协同SD画图。
https://ikaros-521.github.io/Luna-Docs/site/
GNU General Public License v3.0
2.99k stars 454 forks source link

🐛 安装依赖冲突(pip install -r requirements.txt)报错:ERROR: Cannot install -r requirements.txt (line 18) and -r requirements.txt (line 74) because these package versions have conflicting dependencies. #655

Closed Ikaros-521 closed 7 months ago

Ikaros-521 commented 8 months ago

您使用的版本? | Your usage version?

main

您使用的python版本&系统环境? | Your usage python version & system?

python:3.10.13 系统:ubuntu22.04

您使用的场景? | Your usage scenarios?

您做了什么操作? | What did you do?

您遇到了什么问题? | What are your problems?

ERROR: Cannot install -r requirements.txt (line 18) and -r requirements.txt (line 74) because these package versions have conflicting dependencies.

The conflict is caused by:
    langchain 0.0.142 depends on pydantic<2 and >=1
    gradio 4.16.0 depends on pydantic>=2.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

您期望的结果是怎样的? | What is your expected outcome?

Ikaros-521 commented 8 months ago

删除requirements.txt里面的langchain 、gradio ,完成安装后,手动安装冲突库。一般高版本向下兼容低版本。

Ikaros-521 commented 8 months ago
ERROR: Cannot install -r requirements.txt (line 3), -r requirements.txt (line 38), -r requirements.txt (line 39), -r requirements.txt (line 6) and aiohttp==3.9.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested aiohttp==3.9.1
    edge-tts 6.1.6 depends on aiohttp>=3.8.0
    langchain 0.0.142 depends on aiohttp<4.0.0 and >=3.8.3
    blivedm 0.1.1 depends on aiohttp
    bilibili-api-python 16.2.0 depends on aiohttp~=3.9.3
    The user requested aiohttp==3.9.1
    edge-tts 6.1.6 depends on aiohttp>=3.8.0
    langchain 0.0.142 depends on aiohttp<4.0.0 an
Ikaros-521 commented 8 months ago
ERROR: Cannot install -r requirements.txt (line 3), -r requirements.txt (line 38), -r requirements.txt (line 39), -r requirements.txt (line 6) and aiohttp==3.9.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested aiohttp==3.9.1
    edge-tts 6.1.6 depends on aiohttp>=3.8.0
    langchain 0.0.142 depends on aiohttp<4.0.0 and >=3.8.3
    blivedm 0.1.1 depends on aiohttp
    bilibili-api-python 16.2.0 depends on aiohttp~=3.9.3
    The user requested aiohttp==3.9.1
    edge-tts 6.1.6 depends on aiohttp>=3.8.0
    langchain 0.0.142 depends on aiohttp<4.0.0 an

删除 aiohttp后,安装完再手动安装

Ikaros-521 commented 8 months ago
Collecting PyYAML>=5.4.1 (from langchain==0.0.142->-r requirements.txt (line 38))
  Downloading PyYAML-5.4.1.tar.gz (175 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 8.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      running egg_info
      writing lib3/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib3/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):
        File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 271, in <module>
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 321, in run
          self.find_sources()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
          mm.run()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 550, in run
          self.add_defaults()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 588, in add_defaults
          sdist.add_defaults(self)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/sdist.py", line 102, in add_defaults
          super().add_defaults()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
          self._add_defaults_ext()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
          self.filelist.extend(build_ext.get_source_files())
        File "<string>", line 201, in get_source_files
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Ikaros-521 commented 8 months ago
Collecting PyYAML>=5.4.1 (from langchain==0.0.142->-r requirements.txt (line 38))
  Downloading PyYAML-5.4.1.tar.gz (175 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 8.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      running egg_info
      writing lib3/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib3/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):
        File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 271, in <module>
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 321, in run
          self.find_sources()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
          mm.run()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 550, in run
          self.add_defaults()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 588, in add_defaults
          sdist.add_defaults(self)
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/command/sdist.py", line 102, in add_defaults
          super().add_defaults()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
          self._add_defaults_ext()
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
          self.filelist.extend(build_ext.get_source_files())
        File "<string>", line 201, in get_source_files
        File "/tmp/pip-build-env-y3bo8iwd/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

删除langchain,bilibili-api-python,装完后手动补

Ikaros-521 commented 8 months ago
Stored in directory: /home/ikaros/.cache/pip/wheels/79/9e/b6/ab96803f552f38c341a3f07f12ae49f7cbf9d406a4c70200fa
  Building wheel for PyAudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyAudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyAudio
  Building wheel for pyautogui (pyproject.toml) ... done
  Created wheel for pyautogui: filename=PyAutoGUI-0.9.54-py3-none-any.whl size=37576 sha256=7ce43232eebcdce900d1c370886c23ee82c2ceada93cd0e814b90274e8ce12eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/23/a7/1c/5a51aaff3bbe110be4ddf766d429cc9d2fae7a72fc1b843e56
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314458 sha256=e1f96b86030cc41c04cfb6b610368f6571670d6389d76e8dc435cac253a3fb15
  Stored in directory: /home/ikaros/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
  Building wheel for ffmpy (setup.py) ... done
  Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5582 sha256=6ba42a5ca14e9f9b2a291299d137b21a6954c70ff575e11644bd2c37d98e78ab
  Stored in directory: /home/ikaros/.cache/pip/wheels/bd/65/9a/671fc6dcde07d4418df0c592f8df512b26d7a0029c2a23dd81
  Building wheel for protobuf3-to-dict (setup.py) ... done
  Created wheel for protobuf3-to-dict: filename=protobuf3_to_dict-0.1.5-py3-none-any.whl size=4009 sha256=44c8d4802991bc07dd03e38e7c0c7e2c59a13fafa99e15eff7149a5487de2a04
  Stored in directory: /home/ikaros/.cache/pip/wheels/12/3e/42/e783cdd4e7b8fda9bfc472eeb465bc9041bda90a3dbece8d74
  Building wheel for pygetwindow (setup.py) ... done
  Created wheel for pygetwindow: filename=PyGetWindow-0.0.9-py3-none-any.whl size=11064 sha256=b2e3acb75df701da2b6d4201c4c6120f1301c71f99c57c85bd3f3df77020c7eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/02/f6/64/c5d427819f80553df2398bfecc351e94e00371c1dcb6edb24e
  Building wheel for pyscreeze (pyproject.toml) ... done
  Created wheel for pyscreeze: filename=PyScreeze-0.1.30-py3-none-any.whl size=14382 sha256=38069024556b881c3f9149ae731d80b8a2c3c24578a4beb3d1fa5a48263e25d1
  Stored in directory: /home/ikaros/.cache/pip/wheels/c4/46/42/d3613adf9880c8b4a780c07a8cf85df12ca04a9a0ca77c6c02
  Building wheel for pytweening (setup.py) ... done
  Created wheel for pytweening: filename=pytweening-1.2.0-py3-none-any.whl size=8009 sha256=dea9f974f99ec42f32db21ff7cd22760e37d20b35698e017e309ffdc37a4420d
  Stored in directory: /home/ikaros/.cache/pip/wheels/22/d7/02/b3e395d93b6dd41a7da54b2fa738ec03e7fb7451f7f22f8213
  Building wheel for mouseinfo (setup.py) ... done
  Created wheel for mouseinfo: filename=MouseInfo-0.1.3-py3-none-any.whl size=10890 sha256=36cf2f01096de31e5e5dec941ce73fb3d88622d34299b6ccc1d3832207b0107c
  Stored in directory: /home/ikaros/.cache/pip/wheels/6e/d5/27/2f1be84b3e6ccee99c82f50e3fe7fe6360dd30417109b49a72
  Building wheel for pymsgbox (pyproject.toml) ... done
  Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=bac1ad777dd1665fe7af88aa18cff33c4bf5520db71b980f975106bd93fdb765
  Stored in directory: /home/ikaros/.cache/pip/wheels/b9/6a/ba/be2d7d78166ec8018c21d07241dffa54446c09652a267759ae
  Building wheel for python3-Xlib (setup.py) ... done
  Created wheel for python3-Xlib: filename=python3_xlib-0.15-py3-none-any.whl size=109501 sha256=03c24a81c9308bc4ee8aed546f3e440eb2818870e2d0b741c7afb4fb2d6b076a
  Stored in directory: /home/ikaros/.cache/pip/wheels/9c/8e/c5/8a93a3415a4a2065f31750a3244db61482b9e508f04ee56e82
  Building wheel for grpclib (pyproject.toml) ... done
  Created wheel for grpclib: filename=grpclib-0.4.7-py3-none-any.whl size=76221 sha256=954f4fc7649c88a54a178eaa76fb3aba8da06f6d7b8215e315e20212b521dfc4
  Stored in directory: /home/ikaros/.cache/pip/wheels/05/c0/1c/3d807409d0c67efeab2949832ba409205b1b6fe03f739ae4c1
  Building wheel for pyperclip (setup.py) ... done
  Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11125 sha256=3ad0b3e966dae0dc9e08e6c06abd9f222f9d00d5fabb75cbc0658d80c65c8c81
  Stored in directory: /home/ikaros/.cache/pip/wheels/04/24/fe/140a94a7f1036003ede94579e6b4227fe96c840c6f4dcbe307
  Building wheel for pyrect (setup.py) ... done
  Created wheel for pyrect: filename=PyRect-0.2.0-py2.py3-none-any.whl size=11179 sha256=ad8ea8cf5faeb0e691033cfde20b9a9f16102054ceda369fe9e31d61b3f94224
  Stored in directory: /home/ikaros/.cache/pip/wheels/d5/4c/bd/42e4e23641afcd185d4e932784da37e6e04505da0cf3f7b832
Successfully built profanity wenxinworkshop blivedm langid websocket-client-py3 pyautogui jieba ffmpy protobuf3-to-dict pygetwindow pyscreeze pytweening mouseinfo pymsgbox python3-Xlib grpclib pyperclip pyrect
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$
Ikaros-521 commented 8 months ago
Stored in directory: /home/ikaros/.cache/pip/wheels/79/9e/b6/ab96803f552f38c341a3f07f12ae49f7cbf9d406a4c70200fa
  Building wheel for PyAudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyAudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyAudio
  Building wheel for pyautogui (pyproject.toml) ... done
  Created wheel for pyautogui: filename=PyAutoGUI-0.9.54-py3-none-any.whl size=37576 sha256=7ce43232eebcdce900d1c370886c23ee82c2ceada93cd0e814b90274e8ce12eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/23/a7/1c/5a51aaff3bbe110be4ddf766d429cc9d2fae7a72fc1b843e56
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314458 sha256=e1f96b86030cc41c04cfb6b610368f6571670d6389d76e8dc435cac253a3fb15
  Stored in directory: /home/ikaros/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
  Building wheel for ffmpy (setup.py) ... done
  Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5582 sha256=6ba42a5ca14e9f9b2a291299d137b21a6954c70ff575e11644bd2c37d98e78ab
  Stored in directory: /home/ikaros/.cache/pip/wheels/bd/65/9a/671fc6dcde07d4418df0c592f8df512b26d7a0029c2a23dd81
  Building wheel for protobuf3-to-dict (setup.py) ... done
  Created wheel for protobuf3-to-dict: filename=protobuf3_to_dict-0.1.5-py3-none-any.whl size=4009 sha256=44c8d4802991bc07dd03e38e7c0c7e2c59a13fafa99e15eff7149a5487de2a04
  Stored in directory: /home/ikaros/.cache/pip/wheels/12/3e/42/e783cdd4e7b8fda9bfc472eeb465bc9041bda90a3dbece8d74
  Building wheel for pygetwindow (setup.py) ... done
  Created wheel for pygetwindow: filename=PyGetWindow-0.0.9-py3-none-any.whl size=11064 sha256=b2e3acb75df701da2b6d4201c4c6120f1301c71f99c57c85bd3f3df77020c7eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/02/f6/64/c5d427819f80553df2398bfecc351e94e00371c1dcb6edb24e
  Building wheel for pyscreeze (pyproject.toml) ... done
  Created wheel for pyscreeze: filename=PyScreeze-0.1.30-py3-none-any.whl size=14382 sha256=38069024556b881c3f9149ae731d80b8a2c3c24578a4beb3d1fa5a48263e25d1
  Stored in directory: /home/ikaros/.cache/pip/wheels/c4/46/42/d3613adf9880c8b4a780c07a8cf85df12ca04a9a0ca77c6c02
  Building wheel for pytweening (setup.py) ... done
  Created wheel for pytweening: filename=pytweening-1.2.0-py3-none-any.whl size=8009 sha256=dea9f974f99ec42f32db21ff7cd22760e37d20b35698e017e309ffdc37a4420d
  Stored in directory: /home/ikaros/.cache/pip/wheels/22/d7/02/b3e395d93b6dd41a7da54b2fa738ec03e7fb7451f7f22f8213
  Building wheel for mouseinfo (setup.py) ... done
  Created wheel for mouseinfo: filename=MouseInfo-0.1.3-py3-none-any.whl size=10890 sha256=36cf2f01096de31e5e5dec941ce73fb3d88622d34299b6ccc1d3832207b0107c
  Stored in directory: /home/ikaros/.cache/pip/wheels/6e/d5/27/2f1be84b3e6ccee99c82f50e3fe7fe6360dd30417109b49a72
  Building wheel for pymsgbox (pyproject.toml) ... done
  Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=bac1ad777dd1665fe7af88aa18cff33c4bf5520db71b980f975106bd93fdb765
  Stored in directory: /home/ikaros/.cache/pip/wheels/b9/6a/ba/be2d7d78166ec8018c21d07241dffa54446c09652a267759ae
  Building wheel for python3-Xlib (setup.py) ... done
  Created wheel for python3-Xlib: filename=python3_xlib-0.15-py3-none-any.whl size=109501 sha256=03c24a81c9308bc4ee8aed546f3e440eb2818870e2d0b741c7afb4fb2d6b076a
  Stored in directory: /home/ikaros/.cache/pip/wheels/9c/8e/c5/8a93a3415a4a2065f31750a3244db61482b9e508f04ee56e82
  Building wheel for grpclib (pyproject.toml) ... done
  Created wheel for grpclib: filename=grpclib-0.4.7-py3-none-any.whl size=76221 sha256=954f4fc7649c88a54a178eaa76fb3aba8da06f6d7b8215e315e20212b521dfc4
  Stored in directory: /home/ikaros/.cache/pip/wheels/05/c0/1c/3d807409d0c67efeab2949832ba409205b1b6fe03f739ae4c1
  Building wheel for pyperclip (setup.py) ... done
  Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11125 sha256=3ad0b3e966dae0dc9e08e6c06abd9f222f9d00d5fabb75cbc0658d80c65c8c81
  Stored in directory: /home/ikaros/.cache/pip/wheels/04/24/fe/140a94a7f1036003ede94579e6b4227fe96c840c6f4dcbe307
  Building wheel for pyrect (setup.py) ... done
  Created wheel for pyrect: filename=PyRect-0.2.0-py2.py3-none-any.whl size=11179 sha256=ad8ea8cf5faeb0e691033cfde20b9a9f16102054ceda369fe9e31d61b3f94224
  Stored in directory: /home/ikaros/.cache/pip/wheels/d5/4c/bd/42e4e23641afcd185d4e932784da37e6e04505da0cf3f7b832
Successfully built profanity wenxinworkshop blivedm langid websocket-client-py3 pyautogui jieba ffmpy protobuf3-to-dict pygetwindow pyscreeze pytweening mouseinfo pymsgbox python3-Xlib grpclib pyperclip pyrect
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$

删除pyaudio先

Ikaros-521 commented 8 months ago

注意注意:pydantic==1.10.13

Ikaros-521 commented 8 months ago
Stored in directory: /home/ikaros/.cache/pip/wheels/79/9e/b6/ab96803f552f38c341a3f07f12ae49f7cbf9d406a4c70200fa
  Building wheel for PyAudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyAudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyAudio
  Building wheel for pyautogui (pyproject.toml) ... done
  Created wheel for pyautogui: filename=PyAutoGUI-0.9.54-py3-none-any.whl size=37576 sha256=7ce43232eebcdce900d1c370886c23ee82c2ceada93cd0e814b90274e8ce12eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/23/a7/1c/5a51aaff3bbe110be4ddf766d429cc9d2fae7a72fc1b843e56
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314458 sha256=e1f96b86030cc41c04cfb6b610368f6571670d6389d76e8dc435cac253a3fb15
  Stored in directory: /home/ikaros/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
  Building wheel for ffmpy (setup.py) ... done
  Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5582 sha256=6ba42a5ca14e9f9b2a291299d137b21a6954c70ff575e11644bd2c37d98e78ab
  Stored in directory: /home/ikaros/.cache/pip/wheels/bd/65/9a/671fc6dcde07d4418df0c592f8df512b26d7a0029c2a23dd81
  Building wheel for protobuf3-to-dict (setup.py) ... done
  Created wheel for protobuf3-to-dict: filename=protobuf3_to_dict-0.1.5-py3-none-any.whl size=4009 sha256=44c8d4802991bc07dd03e38e7c0c7e2c59a13fafa99e15eff7149a5487de2a04
  Stored in directory: /home/ikaros/.cache/pip/wheels/12/3e/42/e783cdd4e7b8fda9bfc472eeb465bc9041bda90a3dbece8d74
  Building wheel for pygetwindow (setup.py) ... done
  Created wheel for pygetwindow: filename=PyGetWindow-0.0.9-py3-none-any.whl size=11064 sha256=b2e3acb75df701da2b6d4201c4c6120f1301c71f99c57c85bd3f3df77020c7eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/02/f6/64/c5d427819f80553df2398bfecc351e94e00371c1dcb6edb24e
  Building wheel for pyscreeze (pyproject.toml) ... done
  Created wheel for pyscreeze: filename=PyScreeze-0.1.30-py3-none-any.whl size=14382 sha256=38069024556b881c3f9149ae731d80b8a2c3c24578a4beb3d1fa5a48263e25d1
  Stored in directory: /home/ikaros/.cache/pip/wheels/c4/46/42/d3613adf9880c8b4a780c07a8cf85df12ca04a9a0ca77c6c02
  Building wheel for pytweening (setup.py) ... done
  Created wheel for pytweening: filename=pytweening-1.2.0-py3-none-any.whl size=8009 sha256=dea9f974f99ec42f32db21ff7cd22760e37d20b35698e017e309ffdc37a4420d
  Stored in directory: /home/ikaros/.cache/pip/wheels/22/d7/02/b3e395d93b6dd41a7da54b2fa738ec03e7fb7451f7f22f8213
  Building wheel for mouseinfo (setup.py) ... done
  Created wheel for mouseinfo: filename=MouseInfo-0.1.3-py3-none-any.whl size=10890 sha256=36cf2f01096de31e5e5dec941ce73fb3d88622d34299b6ccc1d3832207b0107c
  Stored in directory: /home/ikaros/.cache/pip/wheels/6e/d5/27/2f1be84b3e6ccee99c82f50e3fe7fe6360dd30417109b49a72
  Building wheel for pymsgbox (pyproject.toml) ... done
  Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=bac1ad777dd1665fe7af88aa18cff33c4bf5520db71b980f975106bd93fdb765
  Stored in directory: /home/ikaros/.cache/pip/wheels/b9/6a/ba/be2d7d78166ec8018c21d07241dffa54446c09652a267759ae
  Building wheel for python3-Xlib (setup.py) ... done
  Created wheel for python3-Xlib: filename=python3_xlib-0.15-py3-none-any.whl size=109501 sha256=03c24a81c9308bc4ee8aed546f3e440eb2818870e2d0b741c7afb4fb2d6b076a
  Stored in directory: /home/ikaros/.cache/pip/wheels/9c/8e/c5/8a93a3415a4a2065f31750a3244db61482b9e508f04ee56e82
  Building wheel for grpclib (pyproject.toml) ... done
  Created wheel for grpclib: filename=grpclib-0.4.7-py3-none-any.whl size=76221 sha256=954f4fc7649c88a54a178eaa76fb3aba8da06f6d7b8215e315e20212b521dfc4
  Stored in directory: /home/ikaros/.cache/pip/wheels/05/c0/1c/3d807409d0c67efeab2949832ba409205b1b6fe03f739ae4c1
  Building wheel for pyperclip (setup.py) ... done
  Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11125 sha256=3ad0b3e966dae0dc9e08e6c06abd9f222f9d00d5fabb75cbc0658d80c65c8c81
  Stored in directory: /home/ikaros/.cache/pip/wheels/04/24/fe/140a94a7f1036003ede94579e6b4227fe96c840c6f4dcbe307
  Building wheel for pyrect (setup.py) ... done
  Created wheel for pyrect: filename=PyRect-0.2.0-py2.py3-none-any.whl size=11179 sha256=ad8ea8cf5faeb0e691033cfde20b9a9f16102054ceda369fe9e31d61b3f94224
  Stored in directory: /home/ikaros/.cache/pip/wheels/d5/4c/bd/42e4e23641afcd185d4e932784da37e6e04505da0cf3f7b832
Successfully built profanity wenxinworkshop blivedm langid websocket-client-py3 pyautogui jieba ffmpy protobuf3-to-dict pygetwindow pyscreeze pytweening mouseinfo pymsgbox python3-Xlib grpclib pyperclip pyrect
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$

删除pyaudio先

(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$ pip install pyaudio
Collecting pyaudio
  Using cached PyAudio-0.2.14.tar.gz (47 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyaudio
  Building wheel for pyaudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyaudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects
Ikaros-521 commented 8 months ago
Stored in directory: /home/ikaros/.cache/pip/wheels/79/9e/b6/ab96803f552f38c341a3f07f12ae49f7cbf9d406a4c70200fa
  Building wheel for PyAudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyAudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyAudio
  Building wheel for pyautogui (pyproject.toml) ... done
  Created wheel for pyautogui: filename=PyAutoGUI-0.9.54-py3-none-any.whl size=37576 sha256=7ce43232eebcdce900d1c370886c23ee82c2ceada93cd0e814b90274e8ce12eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/23/a7/1c/5a51aaff3bbe110be4ddf766d429cc9d2fae7a72fc1b843e56
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314458 sha256=e1f96b86030cc41c04cfb6b610368f6571670d6389d76e8dc435cac253a3fb15
  Stored in directory: /home/ikaros/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
  Building wheel for ffmpy (setup.py) ... done
  Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5582 sha256=6ba42a5ca14e9f9b2a291299d137b21a6954c70ff575e11644bd2c37d98e78ab
  Stored in directory: /home/ikaros/.cache/pip/wheels/bd/65/9a/671fc6dcde07d4418df0c592f8df512b26d7a0029c2a23dd81
  Building wheel for protobuf3-to-dict (setup.py) ... done
  Created wheel for protobuf3-to-dict: filename=protobuf3_to_dict-0.1.5-py3-none-any.whl size=4009 sha256=44c8d4802991bc07dd03e38e7c0c7e2c59a13fafa99e15eff7149a5487de2a04
  Stored in directory: /home/ikaros/.cache/pip/wheels/12/3e/42/e783cdd4e7b8fda9bfc472eeb465bc9041bda90a3dbece8d74
  Building wheel for pygetwindow (setup.py) ... done
  Created wheel for pygetwindow: filename=PyGetWindow-0.0.9-py3-none-any.whl size=11064 sha256=b2e3acb75df701da2b6d4201c4c6120f1301c71f99c57c85bd3f3df77020c7eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/02/f6/64/c5d427819f80553df2398bfecc351e94e00371c1dcb6edb24e
  Building wheel for pyscreeze (pyproject.toml) ... done
  Created wheel for pyscreeze: filename=PyScreeze-0.1.30-py3-none-any.whl size=14382 sha256=38069024556b881c3f9149ae731d80b8a2c3c24578a4beb3d1fa5a48263e25d1
  Stored in directory: /home/ikaros/.cache/pip/wheels/c4/46/42/d3613adf9880c8b4a780c07a8cf85df12ca04a9a0ca77c6c02
  Building wheel for pytweening (setup.py) ... done
  Created wheel for pytweening: filename=pytweening-1.2.0-py3-none-any.whl size=8009 sha256=dea9f974f99ec42f32db21ff7cd22760e37d20b35698e017e309ffdc37a4420d
  Stored in directory: /home/ikaros/.cache/pip/wheels/22/d7/02/b3e395d93b6dd41a7da54b2fa738ec03e7fb7451f7f22f8213
  Building wheel for mouseinfo (setup.py) ... done
  Created wheel for mouseinfo: filename=MouseInfo-0.1.3-py3-none-any.whl size=10890 sha256=36cf2f01096de31e5e5dec941ce73fb3d88622d34299b6ccc1d3832207b0107c
  Stored in directory: /home/ikaros/.cache/pip/wheels/6e/d5/27/2f1be84b3e6ccee99c82f50e3fe7fe6360dd30417109b49a72
  Building wheel for pymsgbox (pyproject.toml) ... done
  Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=bac1ad777dd1665fe7af88aa18cff33c4bf5520db71b980f975106bd93fdb765
  Stored in directory: /home/ikaros/.cache/pip/wheels/b9/6a/ba/be2d7d78166ec8018c21d07241dffa54446c09652a267759ae
  Building wheel for python3-Xlib (setup.py) ... done
  Created wheel for python3-Xlib: filename=python3_xlib-0.15-py3-none-any.whl size=109501 sha256=03c24a81c9308bc4ee8aed546f3e440eb2818870e2d0b741c7afb4fb2d6b076a
  Stored in directory: /home/ikaros/.cache/pip/wheels/9c/8e/c5/8a93a3415a4a2065f31750a3244db61482b9e508f04ee56e82
  Building wheel for grpclib (pyproject.toml) ... done
  Created wheel for grpclib: filename=grpclib-0.4.7-py3-none-any.whl size=76221 sha256=954f4fc7649c88a54a178eaa76fb3aba8da06f6d7b8215e315e20212b521dfc4
  Stored in directory: /home/ikaros/.cache/pip/wheels/05/c0/1c/3d807409d0c67efeab2949832ba409205b1b6fe03f739ae4c1
  Building wheel for pyperclip (setup.py) ... done
  Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11125 sha256=3ad0b3e966dae0dc9e08e6c06abd9f222f9d00d5fabb75cbc0658d80c65c8c81
  Stored in directory: /home/ikaros/.cache/pip/wheels/04/24/fe/140a94a7f1036003ede94579e6b4227fe96c840c6f4dcbe307
  Building wheel for pyrect (setup.py) ... done
  Created wheel for pyrect: filename=PyRect-0.2.0-py2.py3-none-any.whl size=11179 sha256=ad8ea8cf5faeb0e691033cfde20b9a9f16102054ceda369fe9e31d61b3f94224
  Stored in directory: /home/ikaros/.cache/pip/wheels/d5/4c/bd/42e4e23641afcd185d4e932784da37e6e04505da0cf3f7b832
Successfully built profanity wenxinworkshop blivedm langid websocket-client-py3 pyautogui jieba ffmpy protobuf3-to-dict pygetwindow pyscreeze pytweening mouseinfo pymsgbox python3-Xlib grpclib pyperclip pyrect
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$

删除pyaudio先

(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$ pip install pyaudio
Collecting pyaudio
  Using cached PyAudio-0.2.14.tar.gz (47 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyaudio
  Building wheel for pyaudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyaudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects

sudo apt-get install portaudio19-dev

Ikaros-521 commented 8 months ago
Stored in directory: /home/ikaros/.cache/pip/wheels/79/9e/b6/ab96803f552f38c341a3f07f12ae49f7cbf9d406a4c70200fa
  Building wheel for PyAudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyAudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyAudio
  Building wheel for pyautogui (pyproject.toml) ... done
  Created wheel for pyautogui: filename=PyAutoGUI-0.9.54-py3-none-any.whl size=37576 sha256=7ce43232eebcdce900d1c370886c23ee82c2ceada93cd0e814b90274e8ce12eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/23/a7/1c/5a51aaff3bbe110be4ddf766d429cc9d2fae7a72fc1b843e56
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314458 sha256=e1f96b86030cc41c04cfb6b610368f6571670d6389d76e8dc435cac253a3fb15
  Stored in directory: /home/ikaros/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
  Building wheel for ffmpy (setup.py) ... done
  Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5582 sha256=6ba42a5ca14e9f9b2a291299d137b21a6954c70ff575e11644bd2c37d98e78ab
  Stored in directory: /home/ikaros/.cache/pip/wheels/bd/65/9a/671fc6dcde07d4418df0c592f8df512b26d7a0029c2a23dd81
  Building wheel for protobuf3-to-dict (setup.py) ... done
  Created wheel for protobuf3-to-dict: filename=protobuf3_to_dict-0.1.5-py3-none-any.whl size=4009 sha256=44c8d4802991bc07dd03e38e7c0c7e2c59a13fafa99e15eff7149a5487de2a04
  Stored in directory: /home/ikaros/.cache/pip/wheels/12/3e/42/e783cdd4e7b8fda9bfc472eeb465bc9041bda90a3dbece8d74
  Building wheel for pygetwindow (setup.py) ... done
  Created wheel for pygetwindow: filename=PyGetWindow-0.0.9-py3-none-any.whl size=11064 sha256=b2e3acb75df701da2b6d4201c4c6120f1301c71f99c57c85bd3f3df77020c7eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/02/f6/64/c5d427819f80553df2398bfecc351e94e00371c1dcb6edb24e
  Building wheel for pyscreeze (pyproject.toml) ... done
  Created wheel for pyscreeze: filename=PyScreeze-0.1.30-py3-none-any.whl size=14382 sha256=38069024556b881c3f9149ae731d80b8a2c3c24578a4beb3d1fa5a48263e25d1
  Stored in directory: /home/ikaros/.cache/pip/wheels/c4/46/42/d3613adf9880c8b4a780c07a8cf85df12ca04a9a0ca77c6c02
  Building wheel for pytweening (setup.py) ... done
  Created wheel for pytweening: filename=pytweening-1.2.0-py3-none-any.whl size=8009 sha256=dea9f974f99ec42f32db21ff7cd22760e37d20b35698e017e309ffdc37a4420d
  Stored in directory: /home/ikaros/.cache/pip/wheels/22/d7/02/b3e395d93b6dd41a7da54b2fa738ec03e7fb7451f7f22f8213
  Building wheel for mouseinfo (setup.py) ... done
  Created wheel for mouseinfo: filename=MouseInfo-0.1.3-py3-none-any.whl size=10890 sha256=36cf2f01096de31e5e5dec941ce73fb3d88622d34299b6ccc1d3832207b0107c
  Stored in directory: /home/ikaros/.cache/pip/wheels/6e/d5/27/2f1be84b3e6ccee99c82f50e3fe7fe6360dd30417109b49a72
  Building wheel for pymsgbox (pyproject.toml) ... done
  Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=bac1ad777dd1665fe7af88aa18cff33c4bf5520db71b980f975106bd93fdb765
  Stored in directory: /home/ikaros/.cache/pip/wheels/b9/6a/ba/be2d7d78166ec8018c21d07241dffa54446c09652a267759ae
  Building wheel for python3-Xlib (setup.py) ... done
  Created wheel for python3-Xlib: filename=python3_xlib-0.15-py3-none-any.whl size=109501 sha256=03c24a81c9308bc4ee8aed546f3e440eb2818870e2d0b741c7afb4fb2d6b076a
  Stored in directory: /home/ikaros/.cache/pip/wheels/9c/8e/c5/8a93a3415a4a2065f31750a3244db61482b9e508f04ee56e82
  Building wheel for grpclib (pyproject.toml) ... done
  Created wheel for grpclib: filename=grpclib-0.4.7-py3-none-any.whl size=76221 sha256=954f4fc7649c88a54a178eaa76fb3aba8da06f6d7b8215e315e20212b521dfc4
  Stored in directory: /home/ikaros/.cache/pip/wheels/05/c0/1c/3d807409d0c67efeab2949832ba409205b1b6fe03f739ae4c1
  Building wheel for pyperclip (setup.py) ... done
  Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11125 sha256=3ad0b3e966dae0dc9e08e6c06abd9f222f9d00d5fabb75cbc0658d80c65c8c81
  Stored in directory: /home/ikaros/.cache/pip/wheels/04/24/fe/140a94a7f1036003ede94579e6b4227fe96c840c6f4dcbe307
  Building wheel for pyrect (setup.py) ... done
  Created wheel for pyrect: filename=PyRect-0.2.0-py2.py3-none-any.whl size=11179 sha256=ad8ea8cf5faeb0e691033cfde20b9a9f16102054ceda369fe9e31d61b3f94224
  Stored in directory: /home/ikaros/.cache/pip/wheels/d5/4c/bd/42e4e23641afcd185d4e932784da37e6e04505da0cf3f7b832
Successfully built profanity wenxinworkshop blivedm langid websocket-client-py3 pyautogui jieba ffmpy protobuf3-to-dict pygetwindow pyscreeze pytweening mouseinfo pymsgbox python3-Xlib grpclib pyperclip pyrect
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$

删除pyaudio先

(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$ pip install pyaudio
Collecting pyaudio
  Using cached PyAudio-0.2.14.tar.gz (47 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyaudio
  Building wheel for pyaudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyaudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects

sudo apt-get install portaudio19-dev

Stored in directory: /home/ikaros/.cache/pip/wheels/79/9e/b6/ab96803f552f38c341a3f07f12ae49f7cbf9d406a4c70200fa
  Building wheel for PyAudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for PyAudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyAudio
  Building wheel for pyautogui (pyproject.toml) ... done
  Created wheel for pyautogui: filename=PyAutoGUI-0.9.54-py3-none-any.whl size=37576 sha256=7ce43232eebcdce900d1c370886c23ee82c2ceada93cd0e814b90274e8ce12eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/23/a7/1c/5a51aaff3bbe110be4ddf766d429cc9d2fae7a72fc1b843e56
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314458 sha256=e1f96b86030cc41c04cfb6b610368f6571670d6389d76e8dc435cac253a3fb15
  Stored in directory: /home/ikaros/.cache/pip/wheels/c9/69/31/d56d90b22a1777b0b231e234b00302a55be255930f8bd92dcd
  Building wheel for ffmpy (setup.py) ... done
  Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5582 sha256=6ba42a5ca14e9f9b2a291299d137b21a6954c70ff575e11644bd2c37d98e78ab
  Stored in directory: /home/ikaros/.cache/pip/wheels/bd/65/9a/671fc6dcde07d4418df0c592f8df512b26d7a0029c2a23dd81
  Building wheel for protobuf3-to-dict (setup.py) ... done
  Created wheel for protobuf3-to-dict: filename=protobuf3_to_dict-0.1.5-py3-none-any.whl size=4009 sha256=44c8d4802991bc07dd03e38e7c0c7e2c59a13fafa99e15eff7149a5487de2a04
  Stored in directory: /home/ikaros/.cache/pip/wheels/12/3e/42/e783cdd4e7b8fda9bfc472eeb465bc9041bda90a3dbece8d74
  Building wheel for pygetwindow (setup.py) ... done
  Created wheel for pygetwindow: filename=PyGetWindow-0.0.9-py3-none-any.whl size=11064 sha256=b2e3acb75df701da2b6d4201c4c6120f1301c71f99c57c85bd3f3df77020c7eb
  Stored in directory: /home/ikaros/.cache/pip/wheels/02/f6/64/c5d427819f80553df2398bfecc351e94e00371c1dcb6edb24e
  Building wheel for pyscreeze (pyproject.toml) ... done
  Created wheel for pyscreeze: filename=PyScreeze-0.1.30-py3-none-any.whl size=14382 sha256=38069024556b881c3f9149ae731d80b8a2c3c24578a4beb3d1fa5a48263e25d1
  Stored in directory: /home/ikaros/.cache/pip/wheels/c4/46/42/d3613adf9880c8b4a780c07a8cf85df12ca04a9a0ca77c6c02
  Building wheel for pytweening (setup.py) ... done
  Created wheel for pytweening: filename=pytweening-1.2.0-py3-none-any.whl size=8009 sha256=dea9f974f99ec42f32db21ff7cd22760e37d20b35698e017e309ffdc37a4420d
  Stored in directory: /home/ikaros/.cache/pip/wheels/22/d7/02/b3e395d93b6dd41a7da54b2fa738ec03e7fb7451f7f22f8213
  Building wheel for mouseinfo (setup.py) ... done
  Created wheel for mouseinfo: filename=MouseInfo-0.1.3-py3-none-any.whl size=10890 sha256=36cf2f01096de31e5e5dec941ce73fb3d88622d34299b6ccc1d3832207b0107c
  Stored in directory: /home/ikaros/.cache/pip/wheels/6e/d5/27/2f1be84b3e6ccee99c82f50e3fe7fe6360dd30417109b49a72
  Building wheel for pymsgbox (pyproject.toml) ... done
  Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7406 sha256=bac1ad777dd1665fe7af88aa18cff33c4bf5520db71b980f975106bd93fdb765
  Stored in directory: /home/ikaros/.cache/pip/wheels/b9/6a/ba/be2d7d78166ec8018c21d07241dffa54446c09652a267759ae
  Building wheel for python3-Xlib (setup.py) ... done
  Created wheel for python3-Xlib: filename=python3_xlib-0.15-py3-none-any.whl size=109501 sha256=03c24a81c9308bc4ee8aed546f3e440eb2818870e2d0b741c7afb4fb2d6b076a
  Stored in directory: /home/ikaros/.cache/pip/wheels/9c/8e/c5/8a93a3415a4a2065f31750a3244db61482b9e508f04ee56e82
  Building wheel for grpclib (pyproject.toml) ... done
  Created wheel for grpclib: filename=grpclib-0.4.7-py3-none-any.whl size=76221 sha256=954f4fc7649c88a54a178eaa76fb3aba8da06f6d7b8215e315e20212b521dfc4
  Stored in directory: /home/ikaros/.cache/pip/wheels/05/c0/1c/3d807409d0c67efeab2949832ba409205b1b6fe03f739ae4c1
  Building wheel for pyperclip (setup.py) ... done
  Created wheel for pyperclip: filename=pyperclip-1.8.2-py3-none-any.whl size=11125 sha256=3ad0b3e966dae0dc9e08e6c06abd9f222f9d00d5fabb75cbc0658d80c65c8c81
  Stored in directory: /home/ikaros/.cache/pip/wheels/04/24/fe/140a94a7f1036003ede94579e6b4227fe96c840c6f4dcbe307
  Building wheel for pyrect (setup.py) ... done
  Created wheel for pyrect: filename=PyRect-0.2.0-py2.py3-none-any.whl size=11179 sha256=ad8ea8cf5faeb0e691033cfde20b9a9f16102054ceda369fe9e31d61b3f94224
  Stored in directory: /home/ikaros/.cache/pip/wheels/d5/4c/bd/42e4e23641afcd185d4e932784da37e6e04505da0cf3f7b832
Successfully built profanity wenxinworkshop blivedm langid websocket-client-py3 pyautogui jieba ffmpy protobuf3-to-dict pygetwindow pyscreeze pytweening mouseinfo pymsgbox python3-Xlib grpclib pyperclip pyrect
Failed to build PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects
(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$

删除pyaudio先

(aivtb) ikaros@Ikaros-PC:/mnt/f/wsl_pro/AI-Vtuber$ pip install pyaudio
Collecting pyaudio
  Using cached PyAudio-0.2.14.tar.gz (47 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyaudio
  Building wheel for pyaudio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyaudio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.linux-x86_64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/pyaudio
      gcc -pthread -B /home/ikaros/miniconda3/envs/aivtb/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -O2 -isystem /home/ikaros/miniconda3/envs/aivtb/include -fPIC -I/usr/local/include -I/usr/include -I/home/ikaros/miniconda3/envs/aivtb/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.linux-x86_64-cpython-310/src/pyaudio/device_api.o
      src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects

sudo apt-get install portaudio19-dev

Ikaros-521 commented 8 months ago
Traceback (most recent call last):
  File "/mnt/f/wsl_pro/AI-Vtuber/webui.py", line 3735, in <module>
    goto_func_page()
  File "/mnt/f/wsl_pro/AI-Vtuber/webui.py", line 3206, in goto_func_page
    select_talk_device_index = ui.select(
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/select.py", line 57, in __init__
    super().__init__(options=options, value=value, on_change=on_change, validation=validation)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/validation_element.py", line 9, in __init__
    super().__init__(**kwargs)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/choice_element.py", line 18, in __init__
    super().__init__(tag=tag, value=value, on_value_change=on_change)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/value_element.py", line 33, in __init__
    self.on(f'update:{self.VALUE_PROP}', handle_change, [None], throttle=throttle)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/element.py", line 420, in on
    self.update()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/choice_element.py", line 34, in update
    self._update_options()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/choice_element.py", line 30, in _update_options
    self.value = before_value if before_value in self._values else None
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/binding.py", line 155, in __set__
    self._change_handler(owner, value)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/value_element.py", line 14, in <lambda>
    on_change=lambda sender, value: cast(Self, sender)._handle_value_change(value))  # pylint: disable=protected-access
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/validation_element.py", line 50, in _handle_value_change
    self.validate()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/validation_element.py", line 36, in validate
    if callable(self.validation):
AttributeError: 'Select' object has no attribute 'validation'. Did you mean: 'validate'?
Ikaros-521 commented 8 months ago
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_id returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM dmix
Ikaros-521 commented 8 months ago
Traceback (most recent call last):
  File "/mnt/f/wsl_pro/AI-Vtuber/webui.py", line 3735, in <module>
    goto_func_page()
  File "/mnt/f/wsl_pro/AI-Vtuber/webui.py", line 3206, in goto_func_page
    select_talk_device_index = ui.select(
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/select.py", line 57, in __init__
    super().__init__(options=options, value=value, on_change=on_change, validation=validation)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/validation_element.py", line 9, in __init__
    super().__init__(**kwargs)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/choice_element.py", line 18, in __init__
    super().__init__(tag=tag, value=value, on_value_change=on_change)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/value_element.py", line 33, in __init__
    self.on(f'update:{self.VALUE_PROP}', handle_change, [None], throttle=throttle)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/element.py", line 420, in on
    self.update()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/choice_element.py", line 34, in update
    self._update_options()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/choice_element.py", line 30, in _update_options
    self.value = before_value if before_value in self._values else None
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/binding.py", line 155, in __set__
    self._change_handler(owner, value)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/value_element.py", line 14, in <lambda>
    on_change=lambda sender, value: cast(Self, sender)._handle_value_change(value))  # pylint: disable=protected-access
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/validation_element.py", line 50, in _handle_value_change
    self.validate()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/elements/mixins/validation_element.py", line 36, in validate
    if callable(self.validation):
AttributeError: 'Select' object has no attribute 'validation'. Did you mean: 'validate'?

pip install nicegui==1.4.5

Ikaros-521 commented 8 months ago
Traceback (most recent call last):
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/xauth.py", line 43, in __init__
    raw = open(filename, 'rb').read()
FileNotFoundError: [Errno 2] No such file or directory: '/home/ikaros/.Xauthority'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/f/wsl_pro/AI-Vtuber/main.py", line 31, in <module>
    from utils.my_handle import My_handle
  File "/mnt/f/wsl_pro/AI-Vtuber/utils/my_handle.py", line 7, in <module>
    import pyautogui
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pyautogui/__init__.py", line 246, in <module>
    import mouseinfo
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/mouseinfo/__init__.py", line 223, in <module>
    _display = Display(os.environ['DISPLAY'])
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/protocol/display.py", line 60, in __init__
    auth_name, auth_data = connect.get_auth(self.socket,
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/support/connect.py", line 91, in get_auth
    return mod.get_auth(sock, dname, host, dno)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/support/unix_connect.py", line 103, in new_get_auth
    au = xauth.Xauthority()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/xauth.py", line 45, in __init__
    raise error.XauthError('~/.Xauthority: %s' % err)
Xlib.error.XauthError: ~/.Xauthority: [Errno 2] No such file or directory: '/home/ikaros/.Xauthority'
Ikaros-521 commented 8 months ago
Traceback (most recent call last):
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/xauth.py", line 43, in __init__
    raw = open(filename, 'rb').read()
FileNotFoundError: [Errno 2] No such file or directory: '/home/ikaros/.Xauthority'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/f/wsl_pro/AI-Vtuber/main.py", line 31, in <module>
    from utils.my_handle import My_handle
  File "/mnt/f/wsl_pro/AI-Vtuber/utils/my_handle.py", line 7, in <module>
    import pyautogui
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pyautogui/__init__.py", line 246, in <module>
    import mouseinfo
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/mouseinfo/__init__.py", line 223, in <module>
    _display = Display(os.environ['DISPLAY'])
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/protocol/display.py", line 60, in __init__
    auth_name, auth_data = connect.get_auth(self.socket,
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/support/connect.py", line 91, in get_auth
    return mod.get_auth(sock, dname, host, dno)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/support/unix_connect.py", line 103, in new_get_auth
    au = xauth.Xauthority()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/xauth.py", line 45, in __init__
    raise error.XauthError('~/.Xauthority: %s' % err)
Xlib.error.XauthError: ~/.Xauthority: [Errno 2] No such file or directory: '/home/ikaros/.Xauthority'

image

Ikaros-521 commented 8 months ago
Traceback (most recent call last):
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/xauth.py", line 43, in __init__
    raw = open(filename, 'rb').read()
FileNotFoundError: [Errno 2] No such file or directory: '/home/ikaros/.Xauthority'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/f/wsl_pro/AI-Vtuber/main.py", line 31, in <module>
    from utils.my_handle import My_handle
  File "/mnt/f/wsl_pro/AI-Vtuber/utils/my_handle.py", line 7, in <module>
    import pyautogui
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pyautogui/__init__.py", line 246, in <module>
    import mouseinfo
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/mouseinfo/__init__.py", line 223, in <module>
    _display = Display(os.environ['DISPLAY'])
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/protocol/display.py", line 60, in __init__
    auth_name, auth_data = connect.get_auth(self.socket,
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/support/connect.py", line 91, in get_auth
    return mod.get_auth(sock, dname, host, dno)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/support/unix_connect.py", line 103, in new_get_auth
    au = xauth.Xauthority()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/Xlib/xauth.py", line 45, in __init__
    raise error.XauthError('~/.Xauthority: %s' % err)
Xlib.error.XauthError: ~/.Xauthority: [Errno 2] No such file or directory: '/home/ikaros/.Xauthority'

image

image

Ikaros-521 commented 8 months ago
Traceback (most recent call last):
2024-02-25 01:18:20 - /mnt/f/wsl_pro/AI-Vtuber/main.py[line:782] - INFO: 当前平台:bilibili2
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/mnt/f/wsl_pro/AI-Vtuber/main.py", line 476, in key_listener
    keyboard.on_press(on_key_press)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 474, in on_press
    return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 461, in hook
    append(callback)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 67, in add_handler
    self.start_if_necessary()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 35, in start_if_necessary
    self.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 196, in init
 * Serving Flask app 'main'
    _os_keyboard.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 113, in init
 * Debug mode: off
    build_device()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 109, in build_device
    ensure_root()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixcommon.py", line 174, in ensure_root
    raise ImportError('You must be root to use this library on linux.')
ImportError: You must be root to use this library on linux.
Ikaros-521 commented 7 months ago
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/middleware/errors.py", line 176, in __call__
    response = await self.handler(request, exc)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/nicegui.py", line 131, in _exception_handler_500
    return client.build_response(request, 500)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/client.py", line 102, in build_response
    return templates.TemplateResponse('index.html', {
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/templating.py", line 230, in TemplateResponse
    return _TemplateResponse(
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/templating.py", line 41, in __init__
    super().__init__(content, status_code, headers, media_type, background)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/responses.py", line 42, in __init__
    self.init_headers(headers)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/responses.py", line 59, in init_headers
    for k, v in headers.items()
AttributeError: 'int' object has no attribute 'items'
Ikaros-521 commented 7 months ago
Traceback (most recent call last):
2024-02-25 01:18:20 - /mnt/f/wsl_pro/AI-Vtuber/main.py[line:782] - INFO: 当前平台:bilibili2
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/mnt/f/wsl_pro/AI-Vtuber/main.py", line 476, in key_listener
    keyboard.on_press(on_key_press)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 474, in on_press
    return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 461, in hook
    append(callback)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 67, in add_handler
    self.start_if_necessary()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 35, in start_if_necessary
    self.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 196, in init
 * Serving Flask app 'main'
    _os_keyboard.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 113, in init
 * Debug mode: off
    build_device()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 109, in build_device
    ensure_root()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixcommon.py", line 174, in ensure_root
    raise ImportError('You must be root to use this library on linux.')
ImportError: You must be root to use this library on linux.

以root用户启动

Ikaros-521 commented 7 months ago
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/middleware/errors.py", line 176, in __call__
    response = await self.handler(request, exc)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/nicegui.py", line 131, in _exception_handler_500
    return client.build_response(request, 500)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/client.py", line 102, in build_response
    return templates.TemplateResponse('index.html', {
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/templating.py", line 230, in TemplateResponse
    return _TemplateResponse(
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/templating.py", line 41, in __init__
    super().__init__(content, status_code, headers, media_type, background)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/responses.py", line 42, in __init__
    self.init_headers(headers)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/starlette/responses.py", line 59, in init_headers
    for k, v in headers.items()
AttributeError: 'int' object has no attribute 'items'

pip install starlette==0.27.0

Ikaros-521 commented 7 months ago
/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
Ikaros-521 commented 7 months ago
/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)

sudo apt install ffmpeg

Ikaros-521 commented 7 months ago
/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py:110: UserWarning: Failed to create a device file using `uinput` module. Sending of events may be limited or unavailable depending on plugged-in devices.
  device = aggregate_devices('kbd')
2024-03-03 13:43:03 - /mnt/f/wsl_pro/AI-Vtuber/main.py[line:782] - INFO: 当前平台:bilibili2
Exception in thread Thread-5 (key_listener):
Traceback (most recent call last):
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/mnt/f/wsl_pro/AI-Vtuber/main.py", line 476, in key_listener
    keyboard.on_press(on_key_press)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 474, in on_press
    return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 461, in hook
    append(callback)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 67, in add_handler
    self.start_if_necessary()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 35, in start_if_necessary
    self.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 196, in init
    _os_keyboard.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 113, in init
    build_device()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 110, in build_device
    device = aggregate_devices('kbd')
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixcommon.py", line 168, in aggregate_devices
    assert fake_device
AssertionError
Ikaros-521 commented 7 months ago
/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py:110: UserWarning: Failed to create a device file using `uinput` module. Sending of events may be limited or unavailable depending on plugged-in devices.
  device = aggregate_devices('kbd')
2024-03-03 13:43:03 - /mnt/f/wsl_pro/AI-Vtuber/main.py[line:782] - INFO: 当前平台:bilibili2
Exception in thread Thread-5 (key_listener):
Traceback (most recent call last):
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/mnt/f/wsl_pro/AI-Vtuber/main.py", line 476, in key_listener
    keyboard.on_press(on_key_press)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 474, in on_press
    return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 461, in hook
    append(callback)
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 67, in add_handler
    self.start_if_necessary()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_generic.py", line 35, in start_if_necessary
    self.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/__init__.py", line 196, in init
    _os_keyboard.init()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 113, in init
    build_device()
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixkeyboard.py", line 110, in build_device
    device = aggregate_devices('kbd')
  File "/home/ikaros/miniconda3/envs/aivtb/lib/python3.10/site-packages/keyboard/_nixcommon.py", line 168, in aggregate_devices
    assert fake_device
AssertionError

wsl问题,具体自行查阅

WRXinYue commented 3 months ago

我注意到项目的 requirements.txt 文件中有许多依赖项未设置版本号,自由指定版本可能会在不同环境下导致依赖管理问题。所以遇到依赖冲突手动解决我认为不是一个很好的解决方案。手动解决不仅效率低下,而且随着项目依赖的增加,冲突的可能性必然也会增加。此外,不同开发者的环境各异,手动解决依赖冲突可能无法涵盖所有情况,导致开发体验不一致,不利于项目的稳定性和可维护性。我建议遵循 PEP 518PEP 621 标准,采用标准化的方法来定义项目。例如,可以通过 pyproject.toml 文件锁定所有依赖的版本,以确保环境的一致性

Ikaros-521 commented 3 months ago

我注意到项目的 requirements.txt 文件中有许多依赖项未设置版本号,自由指定版本可能会在不同环境下导致依赖管理问题。所以遇到依赖冲突手动解决我认为不是一个很好的解决方案。手动解决不仅效率低下,而且随着项目依赖的增加,冲突的可能性必然也会增加。此外,不同开发者的环境各异,手动解决依赖冲突可能无法涵盖所有情况,导致开发体验不一致,不利于项目的稳定性和可维护性。我建议遵循 PEP 518PEP 621 标准,采用标准化的方法来定义项目。例如,可以通过 pyproject.toml 文件锁定所有依赖的版本,以确保环境的一致性

requirements_common.txt 指定版本也是冲突,就是冲突上硬装 不过确实可以规范一下,感谢建议

更新至:https://github.com/Ikaros-521/AI-Vtuber/pull/939

verigle commented 1 month ago

有没有大佬愿意 使用 pip freeze > requirements.txt 命令把依赖文件requirements.txt更新一下 ,或者把最新的requirements.txt 发出来

Ikaros-521 commented 1 month ago

有没有大佬愿意 使用 pip freeze > requirements.txt 命令把依赖文件requirements.txt更新一下 ,或者把最新的requirements.txt 发出来

不是 哥们,你当 requirements_common.txt是摆设吗

verigle commented 1 month ago

主要是依然出现了报错

Collecting omegaconf==2.3.0 (from -r requirements_common.txt (line 429))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/94/1843518e420fa3ed6919835845df698c7e27e183cb997394e4a670973a65/omegaconf-2.3.0-py3-none-any.whl (79 kB)
ERROR: Ignored the following versions that require a different python version: 0.36.0 Requires-Python >=3.6,<3.10; 0.37.0 Requires-Python >=3.7,<3.10; 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10; 2.10.1 Requires-Python <3; 2.11.0 Requires-Python <3; 2.11.1 Requires-Python <3; 2.4.0 Requires-Python <3; 2.4.1 Requires-Python <3; 2.4.2 Requires-Python <3; 2.4.3 Requires-Python <3; 2.4.4 Requires-Python <3; 2.5.0 Requires-Python <3; 2.5.1 Requires-Python <3; 2.5.2 Requires-Python <3; 2.6.0 Requires-Python <3; 2.6.1 Requires-Python <3; 2.6.2 Requires-Python <3; 2.7.0 Requires-Python <3; 2.7.2 Requires-Python <3; 2.8.0 Requires-Python <3; 2.8.1 Requires-Python <3; 2.8.2 Requires-Python <3; 2.8.3 Requires-Python <3; 2.8.4 Requires-Python <3; 2.8.5 Requires-Python <3; 2.8.6 Requires-Python <3; 2.8.7 Requires-Python <3; 2.9.2 Requires-Python <3
ERROR: Could not find a version that satisfies the requirement onnxruntime==1.18.1 (from versions: 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3)
ERROR: No matching distribution found for onnxruntime==1.18.1
Ikaros-521 commented 1 month ago

主要是依然出现了报错

Collecting omegaconf==2.3.0 (from -r requirements_common.txt (line 429))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/94/1843518e420fa3ed6919835845df698c7e27e183cb997394e4a670973a65/omegaconf-2.3.0-py3-none-any.whl (79 kB)
ERROR: Ignored the following versions that require a different python version: 0.36.0 Requires-Python >=3.6,<3.10; 0.37.0 Requires-Python >=3.7,<3.10; 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10; 2.10.1 Requires-Python <3; 2.11.0 Requires-Python <3; 2.11.1 Requires-Python <3; 2.4.0 Requires-Python <3; 2.4.1 Requires-Python <3; 2.4.2 Requires-Python <3; 2.4.3 Requires-Python <3; 2.4.4 Requires-Python <3; 2.5.0 Requires-Python <3; 2.5.1 Requires-Python <3; 2.5.2 Requires-Python <3; 2.6.0 Requires-Python <3; 2.6.1 Requires-Python <3; 2.6.2 Requires-Python <3; 2.7.0 Requires-Python <3; 2.7.2 Requires-Python <3; 2.8.0 Requires-Python <3; 2.8.1 Requires-Python <3; 2.8.2 Requires-Python <3; 2.8.3 Requires-Python <3; 2.8.4 Requires-Python <3; 2.8.5 Requires-Python <3; 2.8.6 Requires-Python <3; 2.8.7 Requires-Python <3; 2.9.2 Requires-Python <3
ERROR: Could not find a version that satisfies the requirement onnxruntime==1.18.1 (from versions: 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3)
ERROR: No matching distribution found for onnxruntime==1.18.1

你这啥py版本,另外库版本也没必要完全一致,降版本装也行,能跑就行

verigle commented 1 month ago

python 3.10, 我把文件中这一行依赖先注释一下试试

Ikaros-521 commented 1 month ago

python 3.10, 我把文件中这一行依赖先注释一下试试

换pip源

verigle commented 1 month ago

大佬有计划出一个构建docker 镜像的Dockerfile 吗?

Ikaros-521 commented 1 month ago

大佬有计划出一个构建docker 镜像的Dockerfile 吗?

docker跑不了

verigle commented 1 month ago

为什么docker 跑不了呢?linux 远程服务器上是不是也不能跑?

Ikaros-521 commented 1 month ago

为什么docker 跑不了呢?linux 远程服务器上是不是也不能跑?

声卡问题 按键监听

没图形界面部分功能就用不了