Describe the bug
pip install . doesn't work out of the box with Windows 10 and the mingw32 compiler.
To Reproduce
Steps to reproduce the behavior:
-
Grab this commit: git clone git+https://github.com/aburrell/apexpy.git@4a5b2d696b1c905b77e4115cbe9438f41c0c6740 (This is the latest, about to be merged in for 1.1.0 release)
-
Try to pip install . and then try importing import apexpy in a python shell and get this result:
Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import apexpy
C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy\apex.py:19: UserWarning: fortranapex module could not be imported, so apexpy probably won't work. Make sure you have a gfortran compiler. Wheels installation assumes your compiler lives in /opt/local/bin" assumes your compiler lives in /opt/local/bin"]))
Traceback (most recent call last):
File "", line 1, in
File "C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy_init_.py", line 3, in
from .apex import Apex, ApexHeightError
File "C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy\apex.py", line 20, in
raise err
File "C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy\apex.py", line 14, in
from . import fortranapex as fa
ImportError: DLL load failed: The specified module could not be found.
Expected behavior
The pip install command should work fine.
Computer (please complete the following information):
Windows 10, miniconda python3.7 with mingw32 compiler installed.
Describe the bug
pip install .doesn't work out of the box with Windows 10 and the mingw32 compiler.To Reproduce
Steps to reproduce the behavior:
Grab this commit:
git clone git+https://github.com/aburrell/apexpy.git@4a5b2d696b1c905b77e4115cbe9438f41c0c6740(This is the latest, about to be merged in for 1.1.0 release)Try to
pip install .and then try importingimport apexpyin a python shell and get this result:Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import apexpy
C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy\apex.py:19: UserWarning: fortranapex module could not be imported, so apexpy probably won't work. Make sure you have a gfortran compiler. Wheels installation assumes your compiler lives in /opt/local/bin" assumes your compiler lives in /opt/local/bin"]))
Traceback (most recent call last):
File "", line 1, in
File "C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy_init_.py", line 3, in
from .apex import Apex, ApexHeightError
File "C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy\apex.py", line 20, in
raise err
File "C:\tools\miniconda3\envs\py37\lib\site-packages\apexpy\apex.py", line 14, in
from . import fortranapex as fa
ImportError: DLL load failed: The specified module could not be found.
Expected behavior
The pip install command should work fine.
Computer (please complete the following information):
Windows 10, miniconda python3.7 with mingw32 compiler installed.