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 Apple M1 是否支持? #1555

Closed
huangbz2007 opened this issue Mar 25, 2024 · 3 comments
Closed

mac Apple M1 是否支持? #1555

huangbz2007 opened this issue Mar 25, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@huangbz2007
Copy link

es/fastapi/exceptions.py", line 3, in
from pydantic import BaseModel, create_model
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic/init.py", line 383, in getattr
module = import_module(module_name, package=package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic/main.py", line 12, in
import pydantic_core
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic_core/init.py", line 6, in
from ._pydantic_core import (
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic_core/_pydantic_core.cpython-311-darwin.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic_core/_pydantic_core.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic_core/_pydantic_core.cpython-311-darwin.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic_core/_pydantic_core.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

Copy link

dosubot bot commented Mar 25, 2024

嗨,@huangbz2007!很高兴再次见到你。希望一切都好!

根据您提供的错误信息,问题出在 pydantic 这个库。这个库在尝试加载一个名为 _pydantic_core.cpython-311-darwin.so 的共享库时,发现这个库是为 x86_64 架构编译的,而您的机器是 arm64 架构,因此无法加载。

这个问题并非特定于 langflow 仓库,而是 pydantic 库在 Apple M1 架构上的兼容性问题。解决这个问题的一种可能的方法是,尝试在您的环境中重新安装 pydantic,以确保它为您的 arm64 架构正确编译。

您可以尝试以下步骤来解决这个问题:

  1. 首先,卸载当前的 pydantic 库:
pip uninstall pydantic
  1. 然后,重新安装 pydantic
pip install pydantic

这将会从 PyPI 下载 pydantic 的源代码,并在您的机器上为您的架构编译它。

如果这个方法不能解决问题,那么可能需要考虑使用 Rosetta 2 来运行 Python。Rosetta 2 是 Apple 提供的一个转换层,可以让为 Intel 架构编写的应用在 Apple Silicon 上运行。您可以参考 Apple 的官方文档 来了解如何使用 Rosetta 2。

希望这些信息对您有所帮助。如果您有任何其他问题或需要进一步的帮助,请随时告诉我。

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot dosubot bot added the bug Something isn't working label Mar 25, 2024
@huangbz2007
Copy link
Author

请问我们以本地源码方式启动,有相关说明文档?

@dosubot dosubot bot added the stale label Jun 24, 2024
@anovazzi1
Copy link
Contributor

您好,

请查看 https://pre-release.langflow.org/ 上的文档。

@dosubot dosubot bot removed the stale label Jul 1, 2024
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants