Comments (6)
Sadly I cannot embed Microsoft Visual C++ redistributable 2015 (or 2017 which is binary compatible) in the wheels. The best I can do is add a detailed explanation of the issue and of how to fix it in the documentation.
from kiwi.
I will close when the documentation will have been updated.
from kiwi.
I'm not a regular Windows user, still now I feel dumb for not looking for a Windows library dependency analyzer, that would have saved me a ton of trying and searching: http://www.dependencywalker.com/
Updating the documentation is as good as it gets I think. Nothing can be done to show "you are likely missing Microsoft Visual C++ redistributable 2015/2017" on import errors, right? Apart from maybe making a wrapper module which imports the real deal and throws that message ...
from kiwi.
I don't fancy adding a Python module to handle that kind of error report. However matplotlib could add such a safety around the import of kiwisolver. Something along the following lines:
try:
import kiwisolver as kiwi
except ImportError as ex:
if sys.platform == 'win32' and 'DLL' in ex.msg:
msg = ('You may be missing Microsoft Visual C++ redistributable '
'matching your Python version. Consult Kiwisolver '
'documentation for more details.'
raise ImportError(msg) from ex
else:
raise
I do not have access to a windows machine on which to test anytime soon @jonascj . Could you test and open a PR against matplotlib ?
from kiwi.
Sure could, I actually just suggested something similar here:
And that should be added the first place kiwisolver is imported, I think that is in _check_versions()
in lib/matplotlib/__init__.py
, at least that is what throws the error.
from kiwi.
Your suggested code works, thanks. I submitted a PR containing it: matplotlib/matplotlib#14316
from kiwi.
Related Issues (20)
- Failed building wheel for kiwisolver :( HOT 4
- Cann't install on python 3.11b3 HOT 2
- 1.4.3 has no attribute __version__ HOT 2
- ERROR: Failed building wheel for kiwisolver: C2440: 'static_cast': cannot convert from 'expr_type' to 'type' HOT 2
- Provide cp311 releases HOT 1
- Objective cell memory leak? HOT 26
- Continuous fuzzing by way of Google's OSS-Fuzz HOT 1
- Tests fail on pypy
- #egg=kiwisolver See assertion error when installing kiwisolver HOT 4
- about duplicate constraints HOT 3
- Add Python API to get all constraints HOT 14
- Is it possible to get the absolute value of an expression? HOT 10
- Is it possible to tell the Solver to prefer smaller or larger solutions? HOT 3
- Missing type hint for `Constraint.violated()` HOT 1
- Python 3.12 manylinux wheels HOT 2
- PyInstaller executable with matplotlib cannot find _cext DLL HOT 6
- `top_level.txt` include a non existing module `src`
- DLL load failed while importing _cext HOT 2
- How do we define an "objective function" and maximize or minimize it? HOT 1
- On Windows 10 LTSC, import kiwisolver (and/or import matplotlib) fails with DLL _cext even after installing VS runtime (solution incl) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwi.