Skip to main content
 首页 » 编程设计

Python 错误 "WindowsError: [Error 127] The specified procedure could not be found"

2024年10月25日9傻小

我正在运行一个 python 脚本导入数据提取(从 tableau api)csv、os 和 datetime 当我运行它时出现此错误,我不知道从哪里开始查找。我正在运行的唯一代码行是

import dataextract as tde 

我按照 tableau 的教程安装了这个库 http://www.tableausoftware.com/learn/tutorials/on-demand/extract-api-introduction?signin=f850b055b106d24b93b365faad64838f

Traceback (most recent call last): 
File "C:/Users/Ofri Harlev/Documents/Python/TableauFlatScript.py", line 1, in <module> 
import dataextract as tde 
File "C:\Python27\lib\site-packages\dataextract\__init__.py", line 15, in <module> 
from Base import * 
File "C:\Python27\lib\site-packages\dataextract\Base.py", line 17, in <module> 
from . import StringUtils 
File "C:\Python27\lib\site-packages\dataextract\StringUtils.py", line 17, in <module> 
tablib = libs.load_lib 
File "C:\Python27\lib\site-packages\dataextract\Libs.py", line 35, in load_lib 
self.lib = ctypes.cdll.LoadLibrary(self.lib_path) 
File "C:\Python27\lib\ctypes\__init__.py", line 443, in LoadLibrary 
return self._dlltype(name) 
File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__ 
self._handle = _dlopen(self._name, mode) 
WindowsError: [Error 127] The specified procedure could not be found 

请您参考如下方法:

在尝试了所有方法后,我发现 Tableau Extract Library 只能在安装了 Tableau 的计算机上运行