Git Product home page Git Product logo

Comments (3)

uranusjr avatar uranusjr commented on June 15, 2024 1

I found the problem; the example resolver does not handle name normalisation correctly. Django is one of the projects published under an unnormalised name. The resolver is stuck at keep asking for matches for Django, but the provider keeps giving it django.

I will commit a fix for this, but first let me see why the resolver got stuck here (it should probably realise it’s stucked right when it tries the same package for the second time, instead of chasing its tail until running out of time.

from resolvelib.

uranusjr avatar uranusjr commented on June 15, 2024 1

(Actually I think the Django django situation is the other way around, but whatever.)

from resolvelib.

uranusjr avatar uranusjr commented on June 15, 2024

The current pip master (which uses revision fbc8bb2; the resolver code is the same between the two) can successfully install:

$ python src/pip install --unstable-feature=resolver django
Collecting Django==3.0.4
  Downloading Django-3.0.4-py3-none-any.whl (7.5 MB)
     |████████████████████████████████| 7.5 MB 1.6 MB/s
Collecting sqlparse==0.3.1
  Downloading sqlparse-0.3.1-py2.py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 2.5 MB/s
Collecting asgiref==3.2.7
  Downloading asgiref-3.2.7-py2.py3-none-any.whl (19 kB)
Collecting pytz==2019.3
  Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)
Installing collected packages: sqlparse, pytz, asgiref, Django
Successfully installed Django-3.0.4 asgiref-3.2.7 pytz-2019.3 sqlparse-0.3.1

Which leads me to think this is a bug in the example provider implementation, not the resolver. The resolver should likely have produced a better exception though.

I’ll look into this. Thanks for the report.

from resolvelib.

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.