-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem installing on Windows 10 using MinGW #16
Comments
Hi @gregstarr thank you for submitting this issue. I'm not a windows user, but on another project I ran into issues unit testing on a windows operating system with the latest numpy version. Since I don't see any error or failure messages in your comment, I wonder if this may be the issue. Otherwise, could you identify where the install is failing? |
It didn't seem like the install was failing, but I am not an expert. The problem came when I tried to import apexpy, it gave me the |
Are you saying that if I roll back numpy to an earlier version then this might work? |
Looking at the type of error you got, no I don't think it will. The problem looks like it is occurring when the fortran library is compiled, not afterwards. I don't suppose you know which compilers you have? You could test this by going to to the apexpy/src/fortranapex directory and running the makefile there. If it can't compile that would confirm the problem. |
Thanks for the response, I will try that
…On Fri, Mar 15, 2019, 7:39 PM Angeline Burrell ***@***.***> wrote:
Looking at the type of error you got, no I don't think it will. The
problem looks like it is occurring when the fortran library is compiled,
not afterwards. I don't suppose you know which compilers you have?
You could test this by going to to the apexpy/src/fortranapex directory
and running the makefile there. If it can't compile that would confirm the
problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGNr7TJJRCozVR7lMxh9o9OaYTB9gOD6ks5vXC78gaJpZM4btTSt>
.
|
The make seems to have gone smoothly, no errors. How do I continue with the
installation? I made using mingw32-make and my compiler is mingw gfortran.
…On Fri, Mar 15, 2019 at 7:39 PM Angeline Burrell ***@***.***> wrote:
Looking at the type of error you got, no I don't think it will. The
problem looks like it is occurring when the fortran library is compiled,
not afterwards. I don't suppose you know which compilers you have?
You could test this by going to to the apexpy/src/fortranapex directory
and running the makefile there. If it can't compile that would confirm the
problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGNr7TJJRCozVR7lMxh9o9OaYTB9gOD6ks5vXC78gaJpZM4btTSt>
.
|
Which version of python are you using? |
I have a colleague who uses Windows looking into this. It's something he'll be doing in his free time, so probably won't be quick, but will likely succeed. |
Okay great! Thanks
…On Mon, Apr 29, 2019, 3:23 PM Angeline Burrell ***@***.***> wrote:
I have a colleague who uses Windows looking into this. It's something
he'll be doing in his free time, so probably won't be quick, but will
likely succeed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABRWX3INNUTM4TJ777ZXQOLPS5DKLANCNFSM4G5VGSWQ>
.
|
This is a matter of setup.py / setup.cfg needing reconfiguration. This fork works for Windows: https://github.com/space-physics/apexpy3 I am upstreaming this work here as a series of pull requests. |
I just ended up having the same problem as was described here. When calling |
I have a new problem now where I can't even install apexpy. I installed a fresh copy on anaconda version 2020.02, I created a new conda environment using python version 3.6.10, finally, I went to https://github.com/space-physics/apexpy and cloned apexpy. I cd'ed into the directory and used
Do you have any ideas of how I can fix this? |
During a subsequent attempt, I tried opening a MinGW terminal, cd'ing to the apexpy directory and running
|
Ensure that your Windows system has a file %USERPROFILE%\pydistutils.cfg containing: [build]
compiler=mingw32 then after cloning https://github.com/space-physics/apexpy cd apexpy
python setup.py develop and then pytest all tests pass on Windows with GCC, including GCC 10. If you have GCC 10, there is a general bug with Numpy that I fixed in numpy/numpy#16468 |
By adding a pydistutils.cfg to my user directory and running
When I do the same thing (in cmd or in anaconda terminal) except in a conda environment with python 3.6, I get this error:
When I run the command in the Anaconda terminal using my base environment I get:
|
With the help of @scivision I was able to get apexpy compiled and working. Here's what I had to do:
lines 106 - 109:
lines 276 - 287:
Hope this helps! EDIT: numpy commit hash for which this is valid |
I can install apexpy 1.0.3 using pip no problem on windows 10 now (without using the above procedure). I think this can be closed. |
@gregstarr thank you for letting us know! I am glad windows and apexpy are playing well again :) |
fortranapex module could not be imported,I encountered this problem and didn't know how to solve it. Apexpy can be installed, but fortranex module cannot be used |
running install
running bdist_egg
running egg_info
running build_src
build_src
building extension "apexpy.fortranapex" sources
f2py options: []
adding 'build\src.win-amd64-3.6\build\src.win-amd64-3.6\apexpy\fortranobject.c' to sources.
adding 'build\src.win-amd64-3.6\build\src.win-amd64-3.6\apexpy' to include_dirs.
adding 'build\src.win-amd64-3.6\apexpy\fortranapex-f2pywrappers.f' to sources.
adding 'build\src.win-amd64-3.6\apexpy\fortranapex-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
writing src\apexpy.egg-info\PKG-INFO
writing dependency_links to src\apexpy.egg-info\dependency_links.txt
writing entry points to src\apexpy.egg-info\entry_points.txt
writing requirements to src\apexpy.egg-info\requires.txt
writing top-level names to src\apexpy.egg-info\top_level.txt
reading manifest file 'src\apexpy.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '.py[cod~]' found anywhere in distribution
warning: no previously-included files matching 'pycache' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files matching '*.dylib' found anywhere in distribution
writing manifest file 'src\apexpy.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
No module named 'numpy.distutils.msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\MinGW\bin\gfortran.exe
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gfortran.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
customize Gnu95FCompiler
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gfortran.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
customize Gnu95FCompiler using build_ext
copying build\temp.win-amd64-3.6\Release.libs\libapexsh.UJFRKYGDN7P5LGGMZBJUWNEONNJ7KRCN.gfortran-win_amd64.dll -> build\lib.win-amd64-3.6\apexpy.libs
copying build\temp.win-amd64-3.6\Release.libs\libapexsh.ZGPHGEE3MPBTQ6RVB5N56Q4UUMJ43TUU.gfortran-win_amd64.dll -> build\lib.win-amd64-3.6\apexpy.libs
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\apexpy
creating build\bdist.win-amd64\egg\apexpy.libs
copying build\lib.win-amd64-3.6\apexpy.libs\libapexsh.UJFRKYGDN7P5LGGMZBJUWNEONNJ7KRCN.gfortran-win_amd64.dll -> build\bdist.win-amd64\egg\apexpy.libs
copying build\lib.win-amd64-3.6\apexpy.libs\libapexsh.ZGPHGEE3MPBTQ6RVB5N56Q4UUMJ43TUU.gfortran-win_amd64.dll -> build\bdist.win-amd64\egg\apexpy.libs
copying build\lib.win-amd64-3.6\apexpy\apex.py -> build\bdist.win-amd64\egg\apexpy
copying build\lib.win-amd64-3.6\apexpy\apexsh.dat -> build\bdist.win-amd64\egg\apexpy
copying build\lib.win-amd64-3.6\apexpy\fortranapex.cp36-win_amd64.pyd -> build\bdist.win-amd64\egg\apexpy
copying build\lib.win-amd64-3.6\apexpy\helpers.py -> build\bdist.win-amd64\egg\apexpy
copying build\lib.win-amd64-3.6\apexpy_init.py -> build\bdist.win-amd64\egg\apexpy
copying build\lib.win-amd64-3.6\apexpy_main_.py -> build\bdist.win-amd64\egg\apexpy
byte-compiling build\bdist.win-amd64\egg\apexpy\apex.py to apex.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\apexpy\helpers.py to helpers.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\apexpy_init_.py to init.cpython-36.pyc
byte-compiling build\bdist.win-amd64\egg\apexpy_main_.py to main.cpython-36.pyc
creating stub loader for apexpy\fortranapex.cp36-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\apexpy\fortranapex.py to fortranapex.cpython-36.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying src\apexpy.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying src\apexpy.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying src\apexpy.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying src\apexpy.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying src\apexpy.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying src\apexpy.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying src\apexpy.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
creating 'dist\apexpy-1.0.3-py3.6-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing apexpy-1.0.3-py3.6-win-amd64.egg
removing 'c:\programdata\anaconda3\envs\space-physics-machine-learning\lib\site-packages\apexpy-1.0.3-py3.6-win-amd64.egg' (and everything under it)
creating c:\programdata\anaconda3\envs\space-physics-machine-learning\lib\site-packages\apexpy-1.0.3-py3.6-win-amd64.egg
Extracting apexpy-1.0.3-py3.6-win-amd64.egg to c:\programdata\anaconda3\envs\space-physics-machine-learning\lib\site-packages
apexpy 1.0.3 is already the active version in easy-install.pth
Installing apexpy-script.py script to C:\ProgramData\Anaconda3\envs\space-physics-machine-learning\Scripts
Installing apexpy.exe script to C:\ProgramData\Anaconda3\envs\space-physics-machine-learning\Scripts
Installed c:\programdata\anaconda3\envs\space-physics-machine-learning\lib\site-packages\apexpy-1.0.3-py3.6-win-amd64.egg
Processing dependencies for apexpy==1.0.3
Searching for numpy==1.16.2
Best match: numpy 1.16.2
Adding numpy 1.16.2 to easy-install.pth file
Installing f2py-script.py script to C:\ProgramData\Anaconda3\envs\space-physics-machine-learning\Scripts
Installing f2py.exe script to C:\ProgramData\Anaconda3\envs\space-physics-machine-learning\Scripts
Using c:\programdata\anaconda3\envs\space-physics-machine-learning\lib\site-packages
Finished processing dependencies for apexpy==1.0.3
The text was updated successfully, but these errors were encountered: