连接到 teradata 时遇到 python 问题
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
适用于 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.