* pylint: ImportError: No module named pkg_resources
@ 2021-01-16 23:18 Oleksandr Gavenko
2021-01-17 5:32 ` Marco Atzeri
0 siblings, 1 reply; 4+ messages in thread
From: Oleksandr Gavenko @ 2021-01-16 23:18 UTC (permalink / raw)
To: cygwin
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 <module>
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pylint: ImportError: No module named pkg_resources
2021-01-16 23:18 pylint: ImportError: No module named pkg_resources Oleksandr Gavenko
@ 2021-01-17 5:32 ` Marco Atzeri
2021-01-17 10:23 ` Oleksandr Gavenko
0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2021-01-17 5:32 UTC (permalink / raw)
To: cygwin
On 17.01.2021 00:18, Oleksandr Gavenko via Cygwin wrote:
> 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 <module>
> 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.
Noted. I will look on it as it was anyway built for python2
that is now EOL
So need to be rebuilt to work with python3
> 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.
>
This explain the status problem:
$ grep -e "pylint" -e "logilab" cygwin-pkg-maint
pylint ORPHANED (Jari Aalto)
python-logilab-astng ORPHANED (Jari Aalto)
python-logilab-common ORPHANED (Jari Aalto)
I guess one is also dead upstream (or was totally re-shaffled)
but I need to look again .
Thanks for the report
Marco
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pylint: ImportError: No module named pkg_resources
2021-01-17 5:32 ` Marco Atzeri
@ 2021-01-17 10:23 ` Oleksandr Gavenko
2021-01-17 21:36 ` Marco Atzeri
0 siblings, 1 reply; 4+ messages in thread
From: Oleksandr Gavenko @ 2021-01-17 10:23 UTC (permalink / raw)
To: cygwin
On 2021-01-17, Marco Atzeri via Cygwin wrote:
> This explain the status problem:
>
> $ grep -e "pylint" -e "logilab" cygwin-pkg-maint
> pylint ORPHANED (Jari Aalto)
> python-logilab-astng ORPHANED (Jari Aalto)
> python-logilab-common ORPHANED (Jari Aalto)
Oh, I see. BTW I noticed in the mentioned link:
> https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources
report on the problem as of Mar 21 '13 (with 5 upvotes for the solution).
So the problem is not recent.
================================================================
Only pylint is available in Cygwin. May be I haven't tried hard but I see no
anything corresponding to Debian's:
pycodestyle (or pep8)
python3-pyflakes
python3-mccabe
python3-pydocstyle
bandit
Still pylint was useful (I spotted shadowing built-in function "id" by global
variable).
I'll try to figure out how can I get them in venv, it is not that crucial to
have them bundled in Cygwin.
--
http://defun.work/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pylint: ImportError: No module named pkg_resources
2021-01-17 10:23 ` Oleksandr Gavenko
@ 2021-01-17 21:36 ` Marco Atzeri
0 siblings, 0 replies; 4+ messages in thread
From: Marco Atzeri @ 2021-01-17 21:36 UTC (permalink / raw)
To: cygwin
On 17.01.2021 11:23, Oleksandr Gavenko via Cygwin wrote:
> On 2021-01-17, Marco Atzeri via Cygwin wrote:
>
>
> Only pylint is available in Cygwin. May be I haven't tried hard but I see no
> anything corresponding to Debian's:
>
> pycodestyle (or pep8)
> python3-pyflakes
> python3-mccabe
> python3-pydocstyle
> bandit
>
> Still pylint was useful (I spotted shadowing built-in function "id" by global
> variable).
>
> I'll try to figure out how can I get them in venv, it is not that crucial to
> have them bundled in Cygwin.
>
I built python3{6,7,8}-pylint packages to replace the pylint one
It required for 3.8 the addition of :
python38-mccabe
python38-wrapt
python38-lazy-object-proxy
python38-isort
python38-astroid
I will upload as soon I finish some extra check
Regards
Marco
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-17 21:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-16 23:18 pylint: ImportError: No module named pkg_resources Oleksandr Gavenko
2021-01-17 5:32 ` Marco Atzeri
2021-01-17 10:23 ` Oleksandr Gavenko
2021-01-17 21:36 ` Marco Atzeri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).