bpython: distribution don't supported (won't run)

I installed bpython from official opensuse repo today. I’ve got message distribution not supported in konsole and apps exits.
I attached traceback.

Traceback (most recent call last):
File “/usr/bin/bpython”, line 6, in <module>
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3250, in <module>
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3234, in _call_aside
f(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3263, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 583, in _build_master
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 900, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘requests’ distribution was not found and is required by bpython

What went wrong? I thought somebody checks app running, when adding to repo.

bpython expects python2 AFAICS. And TW’s default is python3. So, you may be missing the python2 packages

I’m not OpenSUSE and Python export, but your clarification does not make sense :wink: .
Firstly, if I hadn’t python2 and bpython request it, it probably won’t run or something is messed up with symbolic links. Does python2 be a link to python3? Probably not. I think python was previously symbolic link to python2 and now it was just symbolic link to python3.

Could virtualenv be helpful? I hear about this tool, but had never used it.

So did you install bpython, python2-bpython or python3-bpython? Is the respective python[2,3]-requests package installed?

I have installed bpython pacakge. I don’t known there’s need to install additional package. Take in mind, to install bpython I use discover (Plasma’s 5 software center), so (in my opinion) this position shouldn’t even be displayed in software center.

Today I install python3-bpython. Plasma menu still don’t ran bpython. Only terminal window was displayed, traceback printed and window dissapears. But bpython-3.7 command (ran in terminal) seems to work.