Here's the error message from the cogserver guile shell: ======== Backtrace: In ice-9/boot-9.scm: 157: 15 [catch #t #<catch-closure 272ac60> ...] In unknown file: ?: 14 [apply-smob/1 #<catch-closure 272ac60>] In ice-9/boot-9.scm: 157: 13 [catch #t #<catch-closure 272ab40> ...] In unknown file: ?: 12 [apply-smob/1 #<catch-closure 272ab40>] ?: 11 [call-with-input-string "(load \"/home/ruiting/hansonrobotics/opencog/opencog/build/lib/pair-count-en.scm\")\n" ...] In ice-9/boot-9.scm: 2320: 10 [save-module-excursion #<procedure 31e72d0 at ice-9/eval-string.scm:65:9 ()>] In ice-9/eval-string.scm: 44: 9 [read-and-eval #<input: string 320c1a0> #:lang ...] 37: 8 [lp #] In ice-9/boot-9.scm: 2320: 7 [save-module-excursion #<procedure 2598180 at ice-9/boot-9.scm:3961:3 ()>] 3966: 6 [#<procedure 2598180 at ice-9/boot-9.scm:3961:3 ()>] 1645: 5 [%start-stack load-stack ...] 1650: 4 [#<procedure 28c9bd0 ()>] In unknown file: ?: 3 [primitive-load "/home/ruiting/hansonrobotics/opencog/opencog/build/lib/pair-count-en.scm"] In opencog/nlp/relex-utils.scm: 473: 2 [use-relex-server "127.0.0.1" 4445] In ice-9/boot-9.scm: 102: 1 [#<procedure 2598280 at ice-9/boot-9.scm:97:6 (thrown-k . args)> unbound-variable ...] In unknown file: ?: 0 [apply-smob/1 #<catch-closure 272ab00> unbound-variable ...]
ERROR: In procedure apply-smob/1: ERROR: In procedure module-lookup: Unbound variable: exact-integer? ABORT: unbound-variable Ruiting Lian On Fri, May 12, 2017 at 6:58 PM, Ruiting Lian <[email protected]> wrote: > Hi Linas, > > On Thu, May 11, 2017 at 11:27 AM, Linas Vepstas <[email protected]> > wrote: > >> OK, yes, >> >> for part 1) I think the README file explains almost all but the newest >> and greatest steps in detail. I'll update it shortly to add the newest >> steps. If there's confusion, ask. I keep detailed notes mostly because I >> can't remember how to replicate any of this stuff, myself. > > > From the README file, > > > ********************************* > > 8) Chose the corresponding `learn-pairs-??.scm` file, copy it from > the `run` directory to your working directory. Review and edit > the configuration as necessary. It contains the database > credentials -- that's probably the only thing you need to change. > > 9) Start the various servers. Eventually, you can use the > `run-all-servers.sh` file in the `run` directory to do this; > it creates a byobu session with different servers in different > terminals, where you can keep an eye on them. However, the > first time through, it is better to do all this by hand. So: > > 9a) Start `run/relex-server-any.sh` in a terminal. > > 9b) Start the cogserver, in another terminal, as follows: > ``` > guile -l learn-pairs-??.scm > > > ********************************** > > > by "learn-pairs-??.scm", I guess you meant "pair-count-??.scm", because I > didn't find any file in the 'run' directory whose name starts with > "learn-pairs" > > So when I run "guile -l pair-count-en.scm", I got the following errors: > > ;;; ERROR: Syntax error: > ;;; opencog/nlp/learn/pseudo-csets.scm:309:8: definition in expression > context, where definitions are not allowed, in form (define n-tot > (get-stashed-count)) > ;;; WARNING: compilation of /home/ruiting/hansonrobotics/ > opencog/opencog/opencog/nlp/learn/run/pair-count-en.scm failed: > ;;; ERROR: Syntax error: > ;;; opencog/nlp/learn/pseudo-csets.scm:309:8: definition in expression > context, where definitions are not allowed, in form (define n-tot > (get-stashed-count)) > Backtrace: > 1 (primitive-load "/home/ruiting/hansonrobotics/opencog/o…") > 0 Exception thrown while printing backtrace: > ERROR: Wrong type (expecting output port): #<output: string 1593620> > > ERROR: In procedure opencog-extension: > ERROR: Wrong type (expecting output port): #<output: string 1593e70> > > Some deprecated features have been used. Set the environment > variable GUILE_WARN_DEPRECATED to "detailed" and rerun the > program to get more information. Set it to "no" to suppress > this message. > > Then I tried to load the pair-count-en.scm file from the guile shell after > starting the cogserver, and got the same error.. > > I have installed the guile 2.2.2 before trying this. > > Any idea how to fix it? Thanks a lot. > > > -- > Ruiting > > -- You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/opencog. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CANXBDVte%3D_kzUBfZaFmipVrrXzWdBwojYY1BHQ-mr5UbEp_3hw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
