Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python.net `使用Pythonnet导入DLL时不是包`错误_Python.net - Fatal编程技术网

Python.net `使用Pythonnet导入DLL时不是包`错误

Python.net `使用Pythonnet导入DLL时不是包`错误,python.net,Python.net,我正在尝试将一些IronPython代码移植到Pythonnet,我得到了一个ModuleNotFoundError:没有名为'Arendi.bleblibrary'的模块;'“Arendi”不是程序包错误 以下是我正在做的: 导入系统 sys.path.append(“C:/ProgramFiles(x86)/文件夹(DLL所在的位置”) 导入clr clr.AddReference(“Arendi.DotNETLibrary”) clr.AddReference(“Arendi.DotNET

我正在尝试将一些IronPython代码移植到Pythonnet,我得到了一个
ModuleNotFoundError:没有名为'Arendi.bleblibrary'的模块;'“Arendi”不是程序包
错误

以下是我正在做的:

导入系统 sys.path.append(“C:/ProgramFiles(x86)/文件夹(DLL所在的位置”) 导入clr clr.AddReference(“Arendi.DotNETLibrary”) clr.AddReference(“Arendi.DotNETLibrary.Windows”) clr.AddReference(“log4net”) clr.AddReference(“Newtonsoft.Json”) clr.AddReference(“Arendi.bleblibrary”) 导入Arendi.DotNETLibrary 导入Arendi.DotNETLibrary.Log 导入log4net 导入Arendi.bleblibrary.Local 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 ModuleNotFoundError:没有名为“Arendi.BleLibrary”的模块;'“阿伦迪”不是一个包 我已经使用检查了依赖关系,我认为我很好

我如何调试这个? 这可能是DLL的构建方式吗

谢谢