Skip to content

import fails on Windows 11 #4

@guifh

Description

@guifh

Hello,
Thanks for this library. I installed the MinGW fortran compiler to be able to install xleaf on Windows 11. Install completed successfully but then when I import xleaf, it throws the following error:

>>> import xleaf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\Python310\TestEnv\lib\site-packages\xleaf\__init__.py", line 27, in <module>
    from xleaf.simulators import simulate_canopy, simulate_leaf
  File "c:\Python310\TestEnv\lib\site-packages\xleaf\simulators.py", line 7, in <module>
    from xleaf import prosail
ImportError: DLL load failed while importing prosail: The specified module could not be found.

Would be nice if it could works straight away on Windows without having to go through WSL. It works just fine through WSL though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions