Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Error when Installing Software with Pip

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
larry77
Posts: 580
Joined: 2006-09-24 17:59
Has thanked: 5 times
Been thanked: 1 time

Error when Installing Software with Pip

#1 Post by larry77 »

Dear All,

I run debian stable and if I try to install the parser csvkit (which translates an excel file to a csv file) with

Code: Select all

$ sudo pip install csvkit
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
    return func(self, options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 297, in run
    session = self.get_default_session(options)
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py", line 78, in get_default_session
    self._session = self.enter_context(self._build_session(options))
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py", line 88, in _build_session
    session = PipSession(
  File "/usr/lib/python3/dist-packages/pip/_internal/network/session.py", line 248, in __init__
    self.headers["User-Agent"] = user_agent()
  File "/usr/lib/python3/dist-packages/pip/_internal/network/session.py", line 131, in user_agent
    zip(["name", "version", "id"], distro.linux_distribution()),
  File "/usr/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl/distro.py", line 125, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl/distro.py", line 681, in linux_distribution
    self.version(),
  File "/usr/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl/distro.py", line 741, in version
    self.lsb_release_attr('release'),
  File "/usr/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl/distro.py", line 903, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl/distro.py", line 556, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl/distro.py", line 1014, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Does anybody understand what is going on and what I can do?
Thanks a lot!

Post Reply