连接到 teradata 时遇到 python 问题

发布于 2025-01-14 19:00:41 字数 1154 浏览 1 评论 0原文

Traceback (most recent call last):
  File "/Users/GA20081466/Desktop/LH_Imeitool/scripts/replication.py", line 93, in <module>
    with teradatasql.connect(host="xxxx", user="xxxx",
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/teradatasql/__init__.py", line 138, in __init__
    goside = ctypes.cdll.LoadLibrary(sLibPathName)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/teradatasql/teradatasql.dylib, 0x0006): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/teradatasql/teradatasql.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/teradatasql.dylib' (no such file)
Traceback (most recent call last):
  File "/Users/GA20081466/Desktop/LH_Imeitool/scripts/replication.py", line 93, in <module>
    with teradatasql.connect(host="xxxx", user="xxxx",
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/teradatasql/__init__.py", line 138, in __init__
    goside = ctypes.cdll.LoadLibrary(sLibPathName)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/teradatasql/teradatasql.dylib, 0x0006): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/teradatasql/teradatasql.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/teradatasql.dylib' (no such file)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没企图 2025-01-21 19:00:41

适用于 Python 的 Teradata SQL 驱动程序附带的 dylib 适用于 Intel 架构。

目前,您需要使用Rosetta。我们计划将来支持M1。

The dylib included with the Teradata SQL Driver for Python is for Intel architecture.

At the present time, you need to use Rosetta. We plan to support M1 in the future.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文