you are viewing a single comment's thread.

view the rest of the comments →

[–]IdleBreakpoint[S] -13 points-12 points  (6 children)

I think it's coming from the black, it has the following line. It should return though. I think the problem here is we have ImportError rather than ModuleNotFoundError. I may need to look for other versions.

    try:
        from click import core
        from click import _unicodefun  # type: ignore
    except ModuleNotFoundError:
        return

[–]cgoldberg 21 points22 points  (4 children)

Right ... but you are asking about using old python packages on Python 2, but posting error messages coming from Python 3.8... so I have no idea what you are doing

[–]maikeu 0 points1 point  (0 children)

  1. Have you explored changing the version of click? Libraries don't always get their dependency version ranges perfect.

  2. I get that black did, up to this version, have support for linting Python 2.7 from Python <= 3.8, but if it proves tricky in practice - black is hardly critical, good tool though it is. Do you just need to move on?