beeware / cricket

A GUI tool for running Python test suites.
BSD 3-Clause "New" or "Revised" License
213 stars 68 forks source link

Missing dep in packaging? #2

Closed funkybob closed 11 years ago

funkybob commented 11 years ago

$ pip install cricket Downloading/unpacking cricket Downloading cricket-0.1.0.tar.gz Running setup.py egg_info for package cricket

Installing collected packages: cricket Running setup.py install for cricket

Successfully installed cricket Cleaning up...

$ python -m cricket.django Traceback (most recent call last): ... File ".../lib/python2.7/site-packages/cricket/widgets.py", line 1, in from idlelib.WidgetRedirector import WidgetRedirector ImportError: No module named idlelib.WidgetRedirector

freakboy3742 commented 11 years ago

I believe this is caused by Ubuntu's.... creative packaging of Python. idlelib is one of the support libraries for (surprise surprise) IDLE, which is part of the standard library, but apparently isn't part of the default python package under Ubuntul

It's certainly worth a note in the docs, and possibly even a try-catch block around the import that raises a more helpful warning about the problem.

freakboy3742 commented 11 years ago

Ticket #3 is a duplicate, and it came with a patch for the docs.

funkybob commented 11 years ago

I'm going to assume Ubuntu inherited the "creative packaging" from Debian... certainly, their solution appears to work.