Python Forum
latest astroid dependencies break mypy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
latest astroid dependencies break mypy
#1
with python 3.6.7 and Pipenv:
having astroid and mypy in your Pipfile
you'll get a
Error:
pipenv.exceptions.ResolutionFailure
in case you try to lock Pipenv using command

Quote:pipenv -v lock

Some details in regards to why that
Error:
pipenv.exceptions.ResolutionFailure
happens can be found by the command pipenv -v lock a bit longer up in the output:

astroid==2.2.0 requires lazy-object-proxy, six, typed-ast<1.3.0
mypy==0.670 requires mypy-extensions<0.5.0,>=0.4.0, typed-ast<1.4.0,>=1.3.1

obviously, this cannot be resolved.

I propose that astroid team tries to change the dependency to allow for newer typed-ast soon.

As a temporary solution, you can lock mypy to 0.660 in your Pipfile using:

mypy = "==0.660"
Reply
#2
python-forum.io does not maintain astroid.
this suggestion should be directed to authors, github site: https://github.com/PyCQA/astroid
Reply
#3
wilco asap. thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Knowledge on Python script's dependencies almahdi 1 1,218 Jun-02-2022, 02:28 AM
Last Post: Larz60+
  How to install the latest version of Python on RHEL 8? devlocalca 7 5,443 Feb-17-2020, 01:49 AM
Last Post: snippsat
  Any command to upgrade Python version 2.X to latest KarthiK 7 4,132 Feb-15-2020, 07:25 PM
Last Post: DeaD_EyE
  my latest function Skaperen 2 1,979 Jun-08-2019, 08:23 AM
Last Post: Skaperen
  Latest news on Tim Berners-Lee's Inrupt Larz60+ 2 2,540 Mar-07-2019, 11:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020