From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id D3CC1384607B for ; Sat, 16 Jan 2021 23:18:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D3CC1384607B Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1l0upi-00030n-DR for cygwin@cygwin.com; Sun, 17 Jan 2021 00:18:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: Oleksandr Gavenko Subject: pylint: ImportError: No module named pkg_resources Date: Sun, 17 Jan 2021 01:18:14 +0200 Organization: Oleksandr Gavenko , http://defun.work/ Message-ID: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (cygwin) Cancel-Lock: sha1:o1HVtljP7wXQbUUrsXmkDpkB2J0= X-Spam-Status: No, score=3.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_OTHER_BAD_TLD, NML_ADSP_CUSTOM_MED, PDS_OTHER_BAD_TLD, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2021 23:18:17 -0000 After installing pylint: setup.exe -p pylint I expected I can use the package: pylint /dev/null Traceback (most recent call last): File "/usr/bin/pylint", line 5, in from pkg_resources import load_entry_point ImportError: No module named pkg_resources I tried to add package: python-setuptools as suggested by: https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources and now it works. I believe that x86_64/setup.bz2 is broken: depends2: python, python-logilab-astng, python-logilab-common It doesn't mention python-setuptools. Or it might be that /usr/bin/pylint should be rewritten to avoid dependency to setuptools. -- http://defun.work/