Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DistributionNotFound #16

Open
trejoramiro opened this issue Nov 10, 2014 · 4 comments
Open

DistributionNotFound #16

trejoramiro opened this issue Nov 10, 2014 · 4 comments

Comments

@trejoramiro
Copy link

I ran >> bugjar in my terminal and received the message below. I thought I had successfully installed bugjar.

Need help making sense of this Traceback. Thanks **/

Traceback (most recent call last):
File "/usr/local/bin/bugjar", line 5, in
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in
working_set.require(requires)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Pygments>=1.5
ramirotrejosmbp:Project1 ramirotrejo$ bugjar main.py arg1 arg2
Traceback (most recent call last):
File "/usr/local/bin/bugjar", line 5, in
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in
working_set.require(requires)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Pygments>=1.5

@freakboy3742
Copy link
Member

How did you install bugjar? It looks like you're missing one of the dependencies (Pygments); if you installed "manually" - i.e., using python setup.py install, you'll need to satisfy the dependencies too (Pygments>=1.5 and tkreadonly>=0.5.2, plus argparse if you're using Python 2.6). These should have been installed automatically if you used pip install bugjar

@trejoramiro
Copy link
Author

Thanks! I downloaded the distribution package, Anaconda, which installed pygments.
That problem has been fixed.
However, now after running bugjar, I get a _tkinter.TclError: can't find package tile
What is tile?

Here's the Traceback:

Listening on 0.0.0.0:3742 for a bugjar client
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/bugjar", line 9, in
load_entry_point('bugjar==0.1.0', 'console_scripts', 'bugjar')()
File "/Library/Python/2.7/site-packages/bugjar/main.py", line 77, in local
jar_run(debugger)
File "/Library/Python/2.7/site-packages/bugjar/main.py", line 22, in jar_run
view = MainWindow(root, debugger)
File "/Library/Python/2.7/site-packages/bugjar/view.py", line 78, in init
self._setup_button_toolbar()
File "/Library/Python/2.7/site-packages/bugjar/view.py", line 140, in _setup_button_toolbar
self.toolbar = Frame(self.root)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/ttk.py", line 761, in init
Widget.init(self, master, "ttk::frame", kw)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/ttk.py", line 559, in init
_load_tile(master)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/ttk.py", line 47, in _load_tile
master.tk.eval('package require tile') # TclError may be raised here
_tkinter.TclError: can't find package tile

@freakboy3742
Copy link
Member

That's a good question - I've never heard of it. I'm guessing it's a Tk package that, for some reason, isn't installed on your system - but I've never had any Tk-specific problems on my system, so I don't know how you got this error, or how to resolve it.

I can see you're running OS/X - what version? Are you using the system Python, or one obtained from another source?

@xenic
Copy link

xenic commented Jan 6, 2016

I'm having a similar problem... any thoughts about what I should try next?:

macBookPro$ pip install bugjar --upgrade
Requirement already up-to-date: bugjar in /Library/Python/2.7/site-packages
Requirement already up-to-date: Pygments>=1.5 in /Library/Python/2.7/site-packages (from bugjar)
Requirement already up-to-date: tkreadonly in /Library/Python/2.7/site-packages (from bugjar)
Cleaning up...
macBookPro$ bugjar guess.py
Traceback (most recent call last):
File "/usr/local/bin/bugjar", line 5, in
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in
working_set.require(requires)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: tkreadonly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants