To build on this, it seems that 1.2 of plucker has yet to incorporate the
colors I sent to the list for TextParser.py... :(

I lost my code changes too...  Now I gotta re-work it...  Sigh.

My reason for complaining was this error:

Pluckerdir is '/export/store0/misc/PluckerOut'...
Using proxy '' with authentication for user ''...
---- 0 collected, 1 to do ----
Processing http://tdp-software.no-ip.com:8080/paintball.cgi...
  Retrieved ok.
Error:  Unknown error parsing document
http://tdp-software.no-ip.com:8080/paintball.cgi:
Traceback (most recent call last):
  File "/usr/local/lib/python2.2/site-packages/PyPlucker/Parser.py", line
27, in generic_parser
    parser = TextParser.StructuredHTMLParser (url, data, headers, config,
attributes)
  File "/usr/local/lib/python2.2/site-packages/PyPlucker/TextParser.py",
line 879, in __init__
    self.feed (text)
  File "/usr/local/lib/python2.2/sgmllib.py", line 95, in feed
    self.goahead(0)
  File "/usr/local/lib/python2.2/sgmllib.py", line 129, in goahead
    k = self.parse_starttag(i)
  File "/usr/local/lib/python2.2/sgmllib.py", line 290, in parse_starttag
    self.finish_starttag(tag, attrs)
  File "/usr/local/lib/python2.2/sgmllib.py", line 328, in finish_starttag
    self.handle_starttag(tag, method, attrs)
  File "/usr/local/lib/python2.2/site-packages/PyPlucker/TextParser.py",
line 969, in handle_starttag
    sgmllib.SGMLParser.handle_starttag(self, tag, method, attrs)
  File "/usr/local/lib/python2.2/sgmllib.py", line 364, in handle_starttag
    method(attrs)
  File "/usr/local/lib/python2.2/site-packages/PyPlucker/TextParser.py",
line 1377, in start_font
    self._doc.set_forecolor (rgb)
  File "/usr/local/lib/python2.2/site-packages/PyPlucker/TextParser.py",
line 492, in set_forecolor
    if string.atoi(rgb, 16) == 0xFFFFFF:
  File "/usr/local/lib/python2.2/string.py", line 217, in atoi
    return _int(s, base)
ValueError: invalid literal for int(): darkblue
  Parsing failed.
---- all 0 pages retrieved and parsed ----

Writing out collected data...
Writing document 'PaintBall Cousins' to file
/export/store0/misc/PluckerOut/PaintBallCousins.pdb
Traceback (most recent call last):
  File "/usr/local/bin/plucker-build", line 1496, in ?
    sys.exit(realmain())
  File "/usr/local/bin/plucker-build", line 1489, in realmain
    retval = main (config, exclusion_lists)
  File "/usr/local/bin/plucker-build", line 1025, in main
    mapping = writer.write (verbose=verbosity, alias_list=alias_list)
  File "/usr/local/lib/python2.2/site-packages/PyPlucker/Writer.py", line
518, in write
    result = Writer.write (self, verbose, alias_list=alias_list)
  File "/usr/local/lib/python2.2/site-packages/PyPlucker/Writer.py", line
337, in write
    raise RuntimeError("The collection process failed to generate a 'home'
document")
RuntimeError: The collection process failed to generate a 'home' document




Subject: Re: Color codes give errors...

tdp4 wrote:
> Here is a page that says they have the complete list...
>
> http://www.w3schools.com/html/html_colornames.asp
>
> --Wes
>
>
> ----Original Message-----
> On Thu, 16 May 2002 16:31:28 +0100,
> Robert O'Connor <[EMAIL PROTECTED]> wrote:
> :> ValueError: invalid literal for atoi(): darkblue
> :
> :
> :I don't remember darkblue being supported. The original
> :color table from color support had
> :these core named colors:
> :Black    000000
> :Silver   C0C0C0
> :Gray     808080
> :Maroon   800000
> :Red      FF0000
> :Purple   800080
> :Green    008000
> :Lime     00FF00
> :Olive    808000
> :Yellow   FFFF00
> :Navy     000080
> :Blue     0000FF
> :Teal     008080
> :Aqua     00FFFF
> :But I don't know if added more named colors when moved
> :to hash table lookup (and for some
> :reason can't get through to CVS today to check). Does
> :the parser still crash if you download
> :the page, and do a find and replace of "darkblue" to
> :"blue"? If so, then perhaps just a matter
> :of having ensuring a fallthrough case works in the
> :named color lookup.
> :
> :
> :Best wishes,
> :Robert
>
>



_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to