Installing bpython in Linux under Windows 10 temrminal

10 views
Skip to first unread message

Payam

unread,
Jan 4, 2021, 10:39:59 AMJan 4
to bpython

Hi folks
I've been trying to install bpython under Windows 10 Terminal linux (Ubuntu), and unfortunately either through pip or ap-get, I still get the same error when I run bpython.
Please help me to solve this problem.

Thanks
Payam

c/Users/Payam
bpython
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 574, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 892, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 783, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (bpython 0.20.1 (/home/payam49er/.local/lib/python3.9/site-packag
es), Requirement.parse('bpython==0.17.1'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/bpython", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3089, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3101, in _initialize_mas
ter_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 576, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 589, in _build_from_requ
irements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'bpython==0.17.1' distribution was not found and is requ
ired by the application

Sebastian Ramacher

unread,
Jan 4, 2021, 11:03:37 AMJan 4
to bpython
Hi Payam

On 2021-01-03 18:19:24, Payam wrote:
>
> Hi folks
> I've been trying to install bpython under Windows 10 Terminal linux
> (Ubuntu), and unfortunately either through pip or ap-get, I still get the
> same error when I run bpython.
> Please help me to solve this problem.
>
> Thanks
> Payam
>
> c/Users/Payam
> ➜ bpython
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 574,
> in _build_master
> ws.require(__requires__)
> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 892,
> in require
> needed = self.resolve(parse_requirements(requirements))
> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 783,
> in resolve
> raise VersionConflict(dist, req).with_context(dependent_req)
> pkg_resources.VersionConflict: (bpython 0.20.1
> (/home/payam49er/.local/lib/python3.9/site-packag
> es), Requirement.parse('bpython==0.17.1'))

You seem to have incompatible versions of bpython installed. In this
case, the bpython binary tries to execture bpython version 0.17.1,
bpython version 0.20.1 is found. Do you have some old version still
installed? In general though, mixing pip and apt-get is not a good idea
and causes issues like that.

Best
> --
> You received this message because you are subscribed to the Google Groups "bpython" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bpython+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bpython/5a4e5266-a575-43d2-be55-1c850bc3f5fan%40googlegroups.com.


--
Sebastian Ramacher
Reply all
Reply to author
Forward
0 new messages