Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🙋 Mac部署问题讨论 #423

Open
Ikaros-521 opened this issue Nov 11, 2023 · 24 comments
Open

🙋 Mac部署问题讨论 #423

Ikaros-521 opened this issue Nov 11, 2023 · 24 comments
Labels
question Further information is requested

Comments

@Ikaros-521
Copy link
Owner

专用讨论帖

@Ikaros-521 Ikaros-521 added the question Further information is requested label Nov 11, 2023
@Ikaros-521
Copy link
Owner Author

Ikaros-521 commented Nov 11, 2023

pyaudio安装失败,先brew install portaudio,再安装pyaudio

pyqt5手动安装一下,走清华源

pyqt5-tools 安装失败,跳过,不影响使用

brew install ffmpeg安装

同样手动安装 blivedm

pip install pure_protobuf==3.0.0a5

@Ikaros-521
Copy link
Owner Author

pyvirtualcam 不支持Mac,需要屏蔽SD相关的功能

@Ikaros-521
Copy link
Owner Author

Ikaros-521 commented Nov 11, 2023

Traceback (most recent call last):
  File "/Users/fameidetuoyanghetanghesuan/Desktop/AI-Vtuber/main.py", line 9, in <module>
    from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox, QLabel, QComboBox, QLineEdit, QTextEdit, QCheckBox, QGroupBox
ImportError: dlopen(/Users/fameidetuoyanghetanghesuan/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/PyQt5/QtWidgets.abi3.so, 0x0002): Symbol not found: __ZTVNSt3__13pmr25monotonic_buffer_resourceE
  Referenced from: <8239A761-D3BE-396C-A445-F703655273B5> /Users/fameidetuoyanghetanghesuan/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtWidgets.framework/Versions/5/QtWidgets
  Expected in:     <3EE92404-8FC3-374B-A598-D5C9A8CD64B5> /usr/lib/libc++.1.dylib

暂时无法解决,放弃pyqt5

@Ikaros-521
Copy link
Owner Author

2023-11-11 21:01:01,653 - /Users/1/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/app/app.py[line:118] - ERROR: [Errno 2] No such file or directory: 'data\\edge-tts-voice-list.txt'
Traceback (most recent call last):
  File "/Users/1/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/nicegui/events.py", line 401, in handle_event
    result = handler(arguments) if expects_arguments else handler()
  File "/Users/1/Desktop/AI-Vtuber/webui.py", line 1776, in <lambda>
    button_login = ui.button('登录', on_click=lambda: my_login()).style("width:250px;")
  File "/Users/1/Desktop/AI-Vtuber/webui.py", line 1760, in my_login
    goto_func_page()
  File "/Users/1/Desktop/AI-Vtuber/webui.py", line 1299, in goto_func_page
    with open('data\edge-tts-voice-list.txt', 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'data\\edge-tts-voice-list.txt'

路径语法改为 /

@Ikaros-521
Copy link
Owner Author

Ikaros-521 commented Nov 11, 2023

Traceback (most recent call last):
  File "/Users/fameidetuoyanghetanghesuan/Desktop/AI-Vtuber/bilibili2.py", line 16, in <module>
    import blivedm
  File "/Users/fameidetuoyanghetanghesuan/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/blivedm/__init__.py", line 2, in <module>
    from .handlers import *
  File "/Users/fameidetuoyanghetanghesuan/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/blivedm/handlers.py", line 5, in <module>
    from .clients import ws_base
  File "/Users/fameidetuoyanghetanghesuan/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/blivedm/clients/__init__.py", line 2, in <module>
    from .web import *
  File "/Users/fameidetuoyanghetanghesuan/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/blivedm/clients/web.py", line 9, in <module>
    from . import ws_base
  File "/Users/fameidetuoyanghetanghesuan/opt/miniconda3/envs/aivtb/lib/python3.10/site-packages/blivedm/clients/ws_base.py", line 11, in <module>
    import brotli
ModuleNotFoundError: No module named 'brotli'

pip install brotli

@Ikaros-521
Copy link
Owner Author

Ikaros-521 commented Nov 11, 2023

虚拟声卡 VB-audio不支持Mac
改用 brew install blackhole-16ch https://github.com/ExistentialAudio/BlackHole

@Ikaros-521
Copy link
Owner Author

运行后退出仍然存在端口占用,进程挂在后台问题,请kill掉相关进程后重启

@zachry-r
Copy link

D5C9A8CD64B5

brew 去安装PyQt@5,安装完将sit包里面的 PyQt@5 相关拷贝到 python包里面的sit包里面

@Ikaros-521
Copy link
Owner Author

D5C9A8CD64B5

brew 去安装PyQt@5,安装完将sit包里面的 PyQt@5 相关拷贝到 python包里面的sit包里面
()_3TW8J$WO~62{ 3VROL A

@AeroXi
Copy link

AeroXi commented Dec 29, 2023

pyvirtualcam

pyvirtualcam GitHub 说支持 Mac,但我在 M1 上直接安装失败
M1 使用这个命令源码安装成功
letmaik/pyvirtualcam#97 (comment)

@Ikaros-521
Copy link
Owner Author

pyvirtualcam

pyvirtualcam GitHub 说支持 Mac,但我在 M1 上直接安装失败
M1 使用这个命令源码安装成功
letmaik/pyvirtualcam#97 (comment)

好好好

@Bestbbb
Copy link

Bestbbb commented Jan 9, 2024

mac想弄抖音是不是够呛了 我看文档还得安装第三方的exe依赖

@Ikaros-521
Copy link
Owner Author

mac想弄抖音是不是够呛了 我看文档还得安装第三方的exe依赖

确实,得自行编译

@zzz0908
Copy link

zzz0908 commented Jan 30, 2024

16G 512G mac m1使用PD虚拟机运行windows整包行吗

@Honst211
Copy link

Honst211 commented Mar 6, 2024

Mac M1在使用keyboard库时百分百复现问题Process finished with exit code 139 (interrupted by signal 11: SIGSEGV),注释后可以正常使用

@Ikaros-521
Copy link
Owner Author

16G 512G mac m1使用PD虚拟机运行windows整包行吗

试试 配置肯定是够的 主要是虚拟机好不好用

@Ikaros-521
Copy link
Owner Author

Mac M1在使用keyboard库时百分百复现问题Process finished with exit code 139 (interrupted by signal 11: SIGSEGV),注释后可以正常使用

这库没记错好像确实不兼容mac

@watchpoints
Copy link

AttributeError: module 'pygetwindow' has no attribute 'getWindowsWithTitle' mac

@Ikaros-521
Copy link
Owner Author

AttributeError: module 'pygetwindow' has no attribute 'getWindowsWithTitle' mac

pip install pygetwindow试试,不行的话 那只能删掉对应功能了

@luofeng0603
Copy link

Traceback (most recent call last):
File "/Users/fengluo/AI-Vtuber/webui.py", line 15, in
from utils.audio import Audio
File "/Users/fengluo/AI-Vtuber/utils/audio.py", line 16, in
from elevenlabs import generate, play, set_api_key
ImportError: cannot import name 'generate' from 'elevenlabs' (/opt/miniconda3/envs/py310/lib/python3.10/site-packages/elevenlabs/init.py)
这个咋解决呢?

@Ikaros-521
Copy link
Owner Author

elevenlabs

降低elevenlabs版本到1.x

@luofeng0603
Copy link

elevenlabs

降低elevenlabs版本到1.x

(py310) ➜ AI-Vtuber % pip show elevenlabs
Name: elevenlabs
Version: 1.0.5
Summary:
Home-page:
Author:
Author-email:
License:
Location: /opt/miniconda3/envs/py310/lib/python3.10/site-packages
Requires: httpx, ipython, pydantic, requests, typing_extensions, websockets

就是1.0.5的版本呢~~

@yiyi17
Copy link

yiyi17 commented Apr 27, 2024

python webui.py
pygame 2.5.2 (SDL 2.28.3, Python 3.12.3)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/Users/macbook/project/AI-Vtuber/webui.py", line 15, in
from utils.audio import Audio
File "/Users/macbook/project/AI-Vtuber/utils/audio.py", line 16, in
from elevenlabs import generate, play, set_api_key
ImportError: cannot import name 'generate' from 'elevenlabs' (/usr/local/lib/python3.12/site-packages/elevenlabs/init.py)

$ pip show elevenlabs
Name: elevenlabs
Version: 1.2.0
Summary:
Home-page:
Author:
Author-email:
License:
Location: /usr/local/lib/python3.12/site-packages
Requires: httpx, ipython, pydantic, requests, typing_extensions, websockets
Required-by:

我遇到这个问题

pip install pydantic===2.0.3
pip install elevenlabs===0.2.27

就好了

@Ikaros-521
Copy link
Owner Author

elevenlabs

降低elevenlabs版本到1.x

(py310) ➜ AI-Vtuber % pip show elevenlabs Name: elevenlabs Version: 1.0.5 Summary: Home-page: Author: Author-email: License: Location: /opt/miniconda3/envs/py310/lib/python3.10/site-packages Requires: httpx, ipython, pydantic, requests, typing_extensions, websockets

就是1.0.5的版本呢~~

降到0.x 记错了 emm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

9 participants