我正在尝试通过使用Adel小麦来生成树冠,但是这样做会遇到此错误。
[错误屏幕截图] [1]
from alinea.adel.astk_interface import AdelWheat
from alinea.astk.Weather import sample_weather
seq, weather = sample_weather()
wdata = weather.get_weather(seq)
adel = AdelWheat(nsect=2)
g = adel.setup_canopy(100)
adel.grow(g, wdata)
(adel) C:\Users\Personal\Desktop\OpenAlea research\adel\example>python test_AdelWheat.py
Traceback (most recent call last):
File "test_AdelWheat.py", line 1, in <module>
from alinea.adel.astk_interface import AdelWheat
File "C:\Users\Personal\Desktop\OpenAlea research\adel\src\alinea\adel\astk_interface.py", line 6, in <module>
from alinea.adel.AdelR import setAdel, RunAdel, genGeoAxe, checkAxeDyn, getAxeT, \
File "C:\Users\Personal\Desktop\OpenAlea research\adel\src\alinea\adel\AdelR.py", line 23, in <module>
import rpy2.robjects as robj
File "C:\Users\Personal\.conda\envs\adel\lib\site-packages\rpy2\robjects\__init__.py", line 16, in <module>
import rpy2.rinterface as rinterface
File "C:\Users\Personal\.conda\envs\adel\lib\site-packages\rpy2\rinterface\__init__.py", line 92, in <module>
from rpy2.rinterface._rinterface import (baseenv,
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.