[Edu-sig] HTConsole

Andre Roberge andre.roberge at gmail.com
Thu Apr 27 04:09:39 CEST 2006


On 4/26/06, Ian Bicking <ianb at colorstudy.com> wrote:
> Thinking about some of these discussions, I decided to explore building
> a Python console app, available as a web page.  No sandboxing; it's
> intended to be run on localhost.
>
> It's still pretty rough and doesn't have a ton of neat features.  The
> file management is pretty weak, and doctesting is just stubbed out.
>
> Anyway, you can get it with:
>
>    easy_install HTConsole

I'd really like to get it to work so as to try, but I haven't been
able to.  Here's what I did, followed by the (complete) error message.

=============
For those (like me) who don't have easy_install, you apparently find it at:
http://peak.telecommunity.com/DevCenter/EasyInstall

If the default location is not on your path, you need to change
directory to where it is found.  (that's the case for me).  Then,
doing as Ian suggested:

C:\Python24\Scripts>easy_install HTConsole
Searching for HTConsole
Reading http://www.python.org/pypi/HTConsole/
Best match: HTConsole 0.1
Downloading http://cheeseshop.python.org/packages/2.4/H/HTConsole/HTConsole-0.1-
py2.4.egg#md5=99c85b1876a359f2e10c23df6bd63eb1
Processing HTConsole-0.1-py2.4.egg
creating c:\python24\lib\site-packages\HTConsole-0.1-py2.4.egg
Extracting HTConsole-0.1-py2.4.egg to c:\python24\lib\site-packages
Adding HTConsole 0.1 to easy-install.pth file
Installing htconsole-script.py script to C:\Python24\Scripts
Installing htconsole.exe script to C:\Python24\Scripts

Installed c:\python24\lib\site-packages\htconsole-0.1-py2.4.egg
Processing dependencies for HTConsole
Searching for Paste
Reading http://www.python.org/pypi/Paste/
Reading http://pythonpaste.org
Best match: Paste 0.9
Downloading http://cheeseshop.python.org/packages/2.4/P/Paste/Paste-0.9-py2.4.eg
g#md5=0cc8f68bb84b5f4efb587cb1bfc5a4a9
Processing Paste-0.9-py2.4.egg
creating c:\python24\lib\site-packages\Paste-0.9-py2.4.egg
Extracting Paste-0.9-py2.4.egg to c:\python24\lib\site-packages
Adding Paste 0.9 to easy-install.pth file

Installed c:\python24\lib\site-packages\paste-0.9-py2.4.egg
Searching for WebHelpers
Reading http://www.python.org/pypi/WebHelpers/
Reading http://pylonshq.com/WebHelpers/
Best match: WebHelpers 0.1
Downloading http://cheeseshop.python.org/packages/2.4/W/WebHelpers/WebHelpers-0.
1-py2.4.egg#md5=6c945cc1169f5dc440f1a00352b0796a
Processing WebHelpers-0.1-py2.4.egg
creating c:\python24\lib\site-packages\WebHelpers-0.1-py2.4.egg
Extracting WebHelpers-0.1-py2.4.egg to c:\python24\lib\site-packages
Adding WebHelpers 0.1 to easy-install.pth file

Installed c:\python24\lib\site-packages\webhelpers-0.1-py2.4.egg
Searching for RuleDispatch
Reading http://www.python.org/pypi/RuleDispatch/
Couldn't find index page for 'RuleDispatch' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://www.python.org/pypi/
No local packages or download links found for RuleDispatch
error: Could not find suitable distribution for Requirement.parse('RuleDispatch'
)

#############################
Ok, I got an error message.  Still, let's try, keeping my fingers crossed ;-)

>
> Then run "htconsole" and a web page should pop up for your interactive
> pleasure.  The ideal is to make Python objects live and editable through
> the web page.  For instance, if you define a function it will be listed
> with its body in the web page, and you can edit the function in place.

C:\Python24\Scripts>htconsole
Traceback (most recent call last):
  File "C:\Python24\Scripts\htconsole-script.py", line 5, in ?
    from pkg_resources import load_entry_point
  File "c:\python24\lib\site-packages\setuptools-0.6a11-py2.4.egg\pkg_resources.
py", line 2438, in ?
    working_set.require(__requires__)
  File "c:\python24\lib\site-packages\setuptools-0.6a11-py2.4.egg\pkg_resources.
py", line 585, in require
    needed = self.resolve(parse_requirements(requirements))
  File "c:\python24\lib\site-packages\setuptools-0.6a11-py2.4.egg\pkg_resources.
py", line 483, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: RuleDispatch


##################
Any idea?

André

> [snip]
>
> Ian Bicking  |  ianb at colorstudy.com  |  http://blog.ianbicking.org


More information about the Edu-sig mailing list