gmpy prerequisite is broken on windows systems
See original GitHub issueOn 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:
- Created 4 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
Install from master.
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.