question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to install on MinGW x64

See original GitHub issue

Until 2 days ago the below was working. Not sure this is a msys2/mingw or pyproj issue. First noticed on an appveyor (Visual Studio 2109) build, since confirmed locally. Need mingw x64 due to GTK+3 dependency.

Installation method/steps

  • Installation method (conda, pip wheel, from source, etc…) pip install pyproj
  • How did you install PROJ? Where is it installed? $ pacman -S mingw-w64-x86_64-proj C:\msys64\mingw64\bin\proj.exe
  • Please provide all commands/steps you used to install pyproj and PROJ. am not sure these are all needed but…
$ pacman -Syuu  # twice if needed
$ pacman --needed -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-python-setuptools mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel mingw-w64-x86_64-proj
$ pip install pyproj

Environment Information

  • pyproj version you are attempting to install 3.3.0 and 3.2.1
  • PROJ version (Execute proj command and give version here.) Rel. 8.1.1, September 1st, 2021
  • Python version (python -c "import sys; print(sys.version.replace('\n', ' '))") 3.9.7 (default, Nov 21 2021, 22:02:56) [GCC 11.2.0 64 bit (AMD64)]
  • Operation System Information (python -c "import platform; print(platform.platform())") Windows-10-10.0.19042-SP0

My temporary solution was to use the last successful local installs wheel.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
RoDuthcommented, Aug 24, 2022

Thanks @snowman2 you pointed me in the right direction to finally find a solutions (for now)…

First of all scrap my “can not import” comment above, rookie mistake, didn’t change out of the pyproj directory first…

From what I gather: Since setuptools>=60.0.0 setuptools “includes a local, vendored copy of distutils”. Therefore the MSYS2 patched version of standard libary distutils is not used unless you make it e.g.:

SETUPTOOLS_USE_DISTUTILS=stdlib pip install pyproj

see: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html

Ideally the MSYS2 patches find their way into setuptools’ distutils and SETUPTOOLS_USE_DISTUTILS=stdlib becomes uneeded.

see: pypa/distutils/issues/34 pypa/distutils/pull/78

0reactions
wsgalaxycommented, Sep 1, 2022

Thanks @snowman2 you pointed me in the right direction to finally find a solutions (for now)…

First of all scrap my “can not import” comment above, rookie mistake, didn’t change out of the pyproj directory first…

From what I gather: Since setuptools>=60.0.0 setuptools “includes a local, vendored copy of distutils”. Therefore the MSYS2 patched version of standard libary distutils is not used unless you make it e.g.:

SETUPTOOLS_USE_DISTUTILS=stdlib pip install pyproj

see: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html

Ideally the MSYS2 patches find their way into setuptools’ distutils and SETUPTOOLS_USE_DISTUTILS=stdlib becomes uneeded.

see: pypa/distutils/issues/34 pypa/distutils/pull/78

This solves my problem, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

MinGW-w64 installation fails with 'ERROR res' in windows 10
The latest online installer (mingw-w64-install.exe from SourceForge) fails with 'Error res' message in the middle of installation.
Read more >
How To Fix MinGW File Downloaded Incorrectly Error
This can be due to corrupt file, some OS security issue, or because you are not running the installer as Administrator. However, even...
Read more >
Fix error The file has been downloaded incorrectly in Mingw ...
Ho to fix the error "The file has been downloaded incorrectly" in Mingw -W64. How to install mingw -w64 correclty on windows.
Read more >
How to install/Resolve mingw error| The file has ... - YouTube
Here is the link for English Version of this video : https://www.youtube.com/watch?v=oAbG_L-DhMIThe file has been downloaded incorrectly!
Read more >
The file has been downloaded incorrectly mingw w64 - YouTube
The file has been downloaded incorrectly mingw w64 | Error solved 100% | Hindi link : https://bit.ly/34WQoRQWinRAR download Link ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found