Comments (22)
This is breaking our entire CI environment. And thanks to build isolation, which always pulls in the latest setuptools version, I can't even fix it with a pin.
Is this an issue with setuptools, or with kiwisolver?
from kiwi.
Due to how pip manage isolated build environment you are still getting the latest setuptools (hence my recommandation to edit pyproject.toml).
#131 has been merged so main should now build cleanly. I will do a new release ASAP.
from kiwi.
Setuptools bug fixes does not disable auto discovery which causes the issue in kiwisolver. I will do my best to cut 1.4.1 today
from kiwi.
Should be fixed by 1.4.1
from kiwi.
Should be fixed by 1.4.1
It works now thks a lot.
from kiwi.
Thanks for the report. It may be related to the latest setuptools release. Can you post the exact comment you invoked ?
from kiwi.
pip install kiwisolver
is how I tried to install it.
from kiwi.
I'm not sure it's a setuptools issue, setuptools 49.6.0 also gives the same error (I tried some other setuptools releases, and I did upgrade setuptools initially when the install failed).
from kiwi.
Ah, it does look like a setuptools issue (partially), as if I use --no-build-isolation
with setuptools 60.10.0, then I do get a different error.
WARNING: Requested kiwisolver==1.4.0 from http://localhost:3141/root/pypi/%2Bf/750/8b01e211178a8/kiwisolver-1.4.0.tar.gz#sha256=7508b01e211178a85d21f1f87029846b77b2404a4c68cbd14748d4d4142fa3b8, but installing version 0.0.0
Discarding http://localhost:3141/root/pypi/%2Bf/750/8b01e211178a8/kiwisolver-1.4.0.tar.gz#sha256=7508b01e211178a85d21f1f87029846b77b2404a4c68cbd14748d4d4142fa3b8 (from http://localhost:3141/aragilar/dev/+simple/kiwisolver/) (requires-python:>=3.7): Requested kiwisolver==1.4.0 from http://localhost:3141/root/pypi/%2Bf/750/8b01e211178a8/kiwisolver-1.4.0.tar.gz#sha256=7508b01e211178a85d21f1f87029846b77b2404a4c68cbd14748d4d4142fa3b8 has inconsistent version: filename has '1.4.0', but metadata has '0.0.0'
ERROR: Could not find a version that satisfies the requirement kiwisolver==1.4.0 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0)
ERROR: No matching distribution found for kiwisolver==1.4.0
from kiwi.
Ah, and that's fixed by installing setuptools_scm[toml]>=3.4.3
. So I think this is a setuptools regression.
from kiwi.
I've filed pypa/setuptools#3197 with the setuptools developers.
from kiwi.
Based on your first error message setuptools may be confused by the fact that kiwi does not have any source to include since it is a single C extension. If you want to experiment you could try specifying it explicitly in setup.py .
from kiwi.
I suspect there's some underlying assumption in setuptools that there will be some python files to package (as far as I can see kiwisolver has none, as the tests aren't included). I wonder if having a dummy __init__.py
which imports everything from the shared library might make setuptools happy (and the tests could be installed also, if so desired).
from kiwi.
Actually it may take some extra work since I apparently messed up and the type annotations are not installed properly currently. So I will indeed need a package to hold both the extension and the annotations. It will take me some time to get to it. If this is something you would be interested in working into let me know.
from kiwi.
Is there something i can do to install kiwi ? Since kiwi required to install matplotlib
from kiwi.
Wheels should install just fine. I believe the issue only affects building from source.
from kiwi.
Yeah I am using termux an android emulator of bash. So there's no wheel for it. Seems like i gotta wait for it to be solved.
from kiwi.
You can clone the repo and put a bound setuptools<=60 in pyproject.toml. Only the latest version of setuptools broke things.
from kiwi.
Setuptools broke kiwi. However it also helped discover some issues related to the distribution of type hints. #131 will fix both. I will do my best to make a 1.4.1 release shortly.
from kiwi.
#131 is in so you should be able to build from the repo at least.
from kiwi.
You can clone the repo and put a bound setuptools<=60 in pyproject.toml. Only the latest version of setuptools broke things.
I installed an older version of setuptools. But I am still getting the error aragilar posted in the first post.
~/app $ pip list | grep setup
setuptools 59.8.0
~/app $ pip install --no-cache-dir kiwisolver
Error : https://pastebin.com/tJv40qAe
from kiwi.
setuptools also in the meantime released bugfix versions that should restore the ability to build 1.4.0.
But apparently it didn't work for kiwisolver?
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.