Hi all. I previously sent a message about trying to source the plucker
format script for sitescooper (subject: format conversion programs for
unix). Well, I've managed to get pretty far with this, but I need some
help. All I want to do is get the plucker distiller working.

Details: NetBSD 1.6.1_STABLE alpha
         command-line only, _no_ X available
         Python 2.0.1
         knowledge of python = 0.00000001%

I managed to d/l & extract the files from the plucker 1.4 POSIX
package:

    $ wget http://downloads.plkr.org/1.4/plucker-1.4-1.i386.rpm
    $ rpm2cpio plucker-1.4-1.i386.rpm | cpio -dim

I needed to extract them instead of installing 'cause i don't heave
root on the box, so i just put the stuff in my home directory. I'll
delete what I don't need later. Now the fun begins! By changing these
lines in the {mypath}/bin/plucker-setup script ({mypath} being ~/pkg):

  CONFIGDIR=3Dos.path.join("/usr/share/plucker","config")
  PALMDIR=3Dos.path.join("/usr/share/plucker", "palm")

to

  CONFIGDIR=3Dos.path.join(os.environ["HOME"],"pkg/share/plucker/config")
  PALMDIR=3Dos.path.join(os.environ["HOME"],"pkg/share/plucker/palm")

the setup script was able to at least happily make & populate a
~/.plucker directory (FWIW). I know I could have just assigned my
entire local path, but I like to keep an eye towards at least _some_
portability.  Then setting & exporting the PYTHONPATH variable allowed
plucker-build (a symlink I set up to Spider.py):

    ln - s {mypath}/lib/python/site-packages/PyPlucker/Spider.py \
           {mypath}/bin/plucker-build

to pick up the PyPlucker modules.

Now here's the (hopefully last) problem. I still get some errors when
running it. I've included the relevant output from my sitescooper log
(I've added the -v switch to the shebang line of Spider.pl):

<--------------------------------------------------------->
    [...SNIP...]
Running: plucker-build  -p"/arpa/ag/g/grog/html/scoops/CBC_News" -s scoop 
# /usr/pkg/lib/python2.0/site.pyc matches /usr/pkg/lib/python2.0/site.py
import site # precompiled from /usr/pkg/lib/python2.0/site.pyc
# /usr/pkg/lib/python2.0/os.pyc matches /usr/pkg/lib/python2.0/os.py
    [...SNIP...]
import PyPlucker.ExclusionList # precompiled from
    /arpa/ag/g/grog/pkg/lib/python/site-packages/PyPlucker/ExclusionList.pyc
Pluckerdir is '/arpa/ag/g/grog/html/scoops/CBC_News'...
Traceback (most recent call last):
  File "/arpa/ag/g/grog/pkg/bin/plucker-build", line 1622, in ?
    sys.exit(realmain(None))
  File "/arpa/ag/g/grog/pkg/bin/plucker-build", line 1607, in realmain
    retval = main (config, exclusion_lists)
  File "/arpa/ag/g/grog/pkg/bin/plucker-build", line 1058, in main
    deprecated( "db_file", "doc_file" )
NameError: There is no variable named 'deprecated'
# clear __builtin__._
# clear sys.path
    [...SNIP...]
<--------------------------------------------------------->

I can see where the deprecated function is defined. So why isn't it
being recognized? As for the other errors, I'm not even sure where to
start looking.

Thanks in advance for your help.

-- 
GROG!  www         NetBSD - the Berkeley redemption.  -- Julian
thks  (O-O)        Assange
--oOO--(_)--OOo--  
(GnuPG 1.2.3: http://grog.sixbit.org/public_key_list)

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to