Traceback on first run
See original GitHub issueUbuntu 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/pkg_resources.py", line 2603, in <module>
File "/home/vagrant/code/ottoman/venv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require
File "/home/vagrant/code/ottoman/venv/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", 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:
- Created 9 years ago
- Comments:24 (11 by maintainers)
Top 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/traceback.py 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @amjith the changes you made definitely fixed the problem with
click
dependency. However, the same issue is now happening topygments
, I believe it’s the exact same problem, so I tried to do what @macobo said, I tried to change dependency name insetup.py
, 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:
setup.py
in my local cloned repositoryCan 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.
UPDATE
After changing
setup.py
frompygments
toPygments
and runpython setup.py install
, it worked. 👍Thanks.
Cleaning out old issues.