Re: Digest for bpython@googlegroups.com - 2 updates in 1 topic

8 views
Skip to first unread message

Payam

unread,
Jan 4, 2021, 11:09:16 PMJan 4
to bpy...@googlegroups.com
I solved this problem by updating my pip to the latest version:
pip install --upgrade pip

then

python -m pip install bpython

upon successful installation, you get a message regarding where the bpython is installed. You need to add this path to your shell.
Then it works.

Thanks
Payam

On Mon, Jan 4, 2021 at 9:14 PM <bpy...@googlegroups.com> wrote:
Payam <paya...@gmail.com>: Jan 03 06:19PM -0800

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 <sebast...@ramacher.at>: Jan 04 05:03PM +0100

Hi Payam
 
On 2021-01-03 18:19:24, Payam wrote:
> 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
 
 
--
Sebastian Ramacher
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to bpython+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages