Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Traceback on first run

See original GitHub issue

Ubuntu 14.04, Python 2.7.3 (inside an activated virtualenv) pgcli==0.10.0 (installed inside activated virtualenv)

I get the following…

665 18:30:11 [~/code/ottoman] J:0 venv λ customcart ▼ pgcli ottoman
Traceback (most recent call last):
  File "/home/vagrant/code/ottoman/venv/bin/pgcli", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/home/vagrant/code/ottoman/venv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/", line 2603, in <module>
  File "/home/vagrant/code/ottoman/venv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/", line 666, in require
  File "/home/vagrant/code/ottoman/venv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/", line 565, in resolve
pkg_resources.DistributionNotFound: Click
668 18:31:29 [~/code/ottoman] J:0 venv λ customcart ▼ psql ottoman
psql (9.3.5)
Type "help" for help.

ottoman=# \q

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

thiagophxcommented, Jan 7, 2015

Hi @amjith the changes you made definitely fixed the problem with click dependency. However, the same issue is now happening to pygments, I believe it’s the exact same problem, so I tried to do what @macobo said, I tried to change dependency name in, but it didn’t work.

I’m pretty sure I’m doing something wrong, because I’m not really sure what the steps are to make this change.

Here’s what I did:

Can you tell me what are the steps I need to go through in order to make this change? Then, I’ll be able to make sure that all dependencies are working fine.


After changing from pygments to Pygments and run python install, it worked. 👍


amjithcommented, May 31, 2015

Cleaning out old issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding the Python Traceback
Python prints a traceback when an exception is raised in your code. The traceback output can be a bit overwhelming if you're seeing...
Read more >
traceback — Print or retrieve a stack traceback — Python 3.11 ...
Source code: Lib/ This module provides a standard interface to extract, format and print stack traces of Python programs.
Read more >
How to read a traceback in Python
Tracebacks are supposed to be read from the bottom upward: the very last line in a traceback is the first line that you're...
Read more >
How to catch and print the full exception traceback without ...
First, do not use print s for logging, there is a stable, proven and well-thought out stdlib module to do that: logging ....
Read more >
Understanding Traceback in Python - Machine Learning Mastery
When an exception occurs in a Python program, often a traceback will be printed. Knowing how to read the traceback can help you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found