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.

gmpy prerequisite is broken on windows systems

See original GitHub issue

On windows systems, pip install gmpy is broken, alas it needs a lot of prerequisites to be built correctly (first error message you get, is that the wheel cannot be built due to missing gmp.h, for anyone else out there trying to search for this issue, and on windows we don’t have libgmp3-dev to install). Now a “simple” pip install ludwig now fails due to missing header files and more.

I know you are not explicitly supporting Windows installs, but up to the H3 feature support (when gmpy was added) the package was able to be built\deployed. I suppose it could be possible to pip install ludwig up to the point where all other packages are correctly installed and then do a final pip install ludwig --no-deps, and then manually commenting all H3 references in ludwig\features\feature_registries.py but it’s a really broken way to workaround over this. (in my case, with an added pip uninstall tensorflow and pip install tensorflow-gpu to leverage GPU processing)

Preliminary tests show that this “half-and-half” workaround with --no-deps is running fine with train\test\predict\visualize operations (of course not including anything relative to H3). I am also seeing that 0.1.2 models cannot be used with 0.2 due to Not found: Key optimizer/intent/fc_0/biases/Adam not found in checkpoint [[{{node save/RestoreV2}}]] I am looking into this to find if it’s related to H3 commenting or if it deserves a separate bug report (even just to give a readable message stating the non retrocompatibility of 0.2 towards 0.1.2)

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
w4nderlustcommented, Jul 28, 2019

Install from master.

2reactions
carlogrisetticommented, Jul 24, 2019

FYI, gmpy2 2.0.8 has available pre-built wheels for recent python versions (not on pypy, and I don’t understand why they don’t mirror them over there). https://www.lfd.uci.edu/~gohlke/pythonlibs/#gmpy I could see that as a “clean” workaround for windows users (like: manually install gmpy2 by doing pip install gmpy2-2.0.8-cp36-cp36m-win_amd64.whl with the correct cpXX version depending on python environment and win32\amd64 architecture).

I don’t know if that could be enough, but I suppose that migrating from gmpy to gmpy2 should be fairly straightforward (I haven’t seen anything about that, nor I know\understand the purpose of this module, but I hope they have a similar shape\size 😃) gmpy2 at least is actively mantained, and 2.1.0 beta came out in May, so we could hope for an extended support timeframe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gmpy prerequisite is broken on windows systems #452 - GitHub
On windows systems, pip install gmpy is broken, alas it needs a lot of prerequisites to be built correctly (first error message you...
Read more >
python - GMPY2 Not installing, mpir.h not found - Stack Overflow
The reason is some required packages (especially below packages) aren't installed. GMP: GNU Multiple Precision Arithmetic Library ...
Read more >
gmpy2 Documentation - Read the Docs
gmpy2 is a C-coded Python extension module that supports multiple-precision ... GMP is the default library on non-Windows operating systems.
Read more >
gmpy2 Documentation - manpages.ubuntu!
GMP is the default library on non-Windows operating systems. --gmp Force the use of GMP instead of MPIR. MPIR is the default library...
Read more >
gmpy2 2.1.0a1 documentation
gmpy2 is a C-coded Python extension module that supports ... MPIR is based on the GMP library but adds support for Microsoft's Visual...
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