我尝试通过 python 访问 NIST refprop 数据库。为此,我从http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm下载了 refprop python 模块
尝试导入模块时,我收到以下错误:
>>> import REFPROP
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python33\lib\REFPROP.py", line 6525, in <module>
setpath()
File "C:\Python33\lib\REFPROP.py", line 381, in setpath
_setpath(path)
File "C:\Python33\lib\REFPROP.py", line 421, in _setpath
_rp.SETPATHdll(ctypes.byref(_hpth), ctypes.c_long(255))
File "C:\Python33\lib\ctypes\__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "C:\Python33\lib\ctypes\__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'SETPATHdll' not found
>>>
我发现这个 SETPATHdll 函数不包含在 refprop.dll 文件中。尽管如此,模块是为这个文件编写的。有人可以帮忙吗?谢谢你 。