Code Monkey home page Code Monkey logo

Comments (22)

TimoRoth avatar TimoRoth commented on August 20, 2024 1

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024 1

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024 1

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024 1

Should be fixed by 1.4.1

from kiwi.

Haiz14 avatar Haiz14 commented on August 20, 2024 1

Should be fixed by 1.4.1

It works now thks a lot.

from kiwi.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024

Thanks for the report. It may be related to the latest setuptools release. Can you post the exact comment you invoked ?

from kiwi.

aragilar avatar aragilar commented on August 20, 2024

pip install kiwisolver is how I tried to install it.

from kiwi.

aragilar avatar aragilar commented on August 20, 2024

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.

aragilar avatar aragilar commented on August 20, 2024

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.

aragilar avatar aragilar commented on August 20, 2024

Ah, and that's fixed by installing setuptools_scm[toml]>=3.4.3. So I think this is a setuptools regression.

from kiwi.

aragilar avatar aragilar commented on August 20, 2024

I've filed pypa/setuptools#3197 with the setuptools developers.

from kiwi.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024

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.

aragilar avatar aragilar commented on August 20, 2024

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024

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.

Haiz14 avatar Haiz14 commented on August 20, 2024

Is there something i can do to install kiwi ? Since kiwi required to install matplotlib

from kiwi.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024

Wheels should install just fine. I believe the issue only affects building from source.

from kiwi.

Haiz14 avatar Haiz14 commented on August 20, 2024

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024

You can clone the repo and put a bound setuptools<=60 in pyproject.toml. Only the latest version of setuptools broke things.

from kiwi.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024

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.

MatthieuDartiailh avatar MatthieuDartiailh commented on August 20, 2024

#131 is in so you should be able to build from the repo at least.

from kiwi.

Haiz14 avatar Haiz14 commented on August 20, 2024

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.

TimoRoth avatar TimoRoth commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.