Pattern Miner and missing libTestPatternMinerAgent.so

119 views
Skip to first unread message

vishnup...@gmail.com

unread,
Aug 30, 2016, 4:13:43 PM8/30/16
to opencog

Hello all,

I tried running pattern Miner. I did the following:
  1. installed Boost
  2. installed cpprest
  3. started cogserver
  4. Loaded,  `opencog> loadmodule opencog/learning/PatternMiner/libTestPatternMinerAgent.so`
But it displayed :
`opencog> loadmodule opencog/learning/PatternMiner/libTestPatternMinerAgent.so
 Unable to load module "opencog/learning/PatternMiner/libTestPatternMinerAgent.so". Check the server logs for details.`

I also checked for the libTestPatternMinerAgent shared object file. But there is no such .so file inside Pattern Miner folder.
How can i solve this?

Thanks in advance.

Regards,
Vishnu.
 



Ben Goertzel

unread,
Aug 30, 2016, 4:38:42 PM8/30/16
to opencog
Did you try the steps here?

http://wiki.opencog.org/wikihome/index.php/Pattern_miner#Steps_to_run_a_non-distributed_pattern_miner_test
> --
> 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 opencog+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> 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/5ffc3757-eaca-4434-87c7-0cbda6e67d64%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Ben Goertzel, PhD
http://goertzel.org

Super-benevolent super-intelligence is the thought the Global Brain is
currently struggling to form...

vishnup...@gmail.com

unread,
Aug 30, 2016, 4:47:20 PM8/30/16
to opencog

Yes Ben. 



Ben Goertzel

unread,
Aug 30, 2016, 4:54:31 PM8/30/16
to opencog
I remember Nil met a vaguely similar problem here, due to some missing
linkage...

https://groups.google.com/forum/#!msg/opencog/7A0WDFrTKhk/UNakwr9GAQAJ

On Tue, Aug 30, 2016 at 11:47 PM, <vishnup...@gmail.com> wrote:
>
> Yes Ben.
>
>>
>>
> --
> 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 opencog+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> 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/e49d87f5-565d-4e94-9e28-ef3380b254b2%40googlegroups.com.

vishnup...@gmail.com

unread,
Aug 30, 2016, 5:44:19 PM8/30/16
to opencog
Thanks for the reply Ben. 

 Yeah I checked the post. But I could not understand about the linkage problem. 

NIL---> "Anyway, if the pattern miner on that branch isn't better I obviously 
prefer to use the one on the master. Just haven't figured out what is 
the missing function corresponding to that symbol 
_ZN7opencog11OBJECT_NODEE, but I should soon."

   NIL---> "I feel the dumbest person on earth... That object is 
   opencog::OBJECT_NODE 
   !!! Now I just need to find the missing linkage. "

   Totally unable to figure it out :-(
Message has been deleted

vishnup...@gmail.com

unread,
Aug 31, 2016, 4:55:42 AM8/31/16
to opencog
For Nil, this was the problem. He got something like undefined symbol. 
[2016-06-29 05:43:14:123] [WARN] Unable to load module
"/home/nilg/OpenCog/opencog/build/opencog/learning/PatternMiner/libTestPatternMinerAgent.so": 
/home/nilg/OpenCog/opencog/build/opencog/learning/PatternMiner/libPatternMiner.so: 
undefined symbol: _ZN7opencog11OBJECT_NODEE 

but for me,
 opencog> loadmodule opencog/learning/PatternMiner/libTestPatternMinerAgent.so
 Unable to load module "opencog/learning/PatternMiner/libTestPatternMinerAgent.so". Check the server logs for details. 
 
there is no " libTestPatternMinerAgent.so".  I checked even server log, it is also saying "libTestPatternMineragent.so "- no such file or directory.
 

Linas Vepstas

unread,
Aug 31, 2016, 1:06:01 PM8/31/16
to opencog
On Tue, Aug 30, 2016 at 4:44 PM, <vishnup...@gmail.com> wrote:
Thanks for the reply Ben. 

 Yeah I checked the post. But I could not understand about the linkage problem. 

NIL---> "Anyway, if the pattern miner on that branch isn't better I obviously 
prefer to use the one on the master. Just haven't figured out what is 
the missing function corresponding to that symbol 
_ZN7opencog11OBJECT_NODEE, but I should soon."

   NIL---> "I feel the dumbest person on earth... That object is 
   opencog::OBJECT_NODE 
   !!! Now I just need to find the missing linkage. "

   Totally unable to figure it out :-(

Is this still an issue? 
 OBJECT_NODE is defined in spacetime/atom_types.script and the way to resolve the linkage issue is to link to libspacetime-types.so

However, I am confused, because .. oh never mind. the makefile for timeoctomap is wrong. I will fix in here in 10 minutes.

--linas



To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/785f8e87-5a15-421f-9ec5-6da3e2c249d9%40googlegroups.com.

Linas Vepstas

unread,
Aug 31, 2016, 1:22:28 PM8/31/16
to opencog, Nil Geisweiller
Here: this commit should fix this problem (and Nil's original problem)


--linas

vishnup...@gmail.com

unread,
Sep 1, 2016, 12:05:37 PM9/1/16
to opencog, ngei...@gmail.com, linasv...@gmail.com
 
After making modifications in the CmakeLists.txt  as per the commit,  From the build directory of opencog, i did 
     cmake ..
     make 
     sudo make install. 

Then started the cogserver 

vishnup...@gmail.com

unread,
Sep 1, 2016, 12:12:17 PM9/1/16
to opencog, ngei...@gmail.com, linasv...@gmail.com

Thanks Linas for the reply.

Sorry it was an incomplete post.
After making modifications in the CmakeLists.txt  as per the commit,  From the build directory of opencog, i did 
  1.      cmake ..
  2.      make 
  3.      sudo make install. 
  1.      started the cogserver on the port 17001
  2.      Then  loaded  opencog> loadmodule opencog/learning/PatternMiner/libTestPatternMinerAgent.so
  1.  Unable to load module "opencog/learning/PatternMiner/libTestPatternMinerAgent.so". Check the server logs for details

    Still libTestPatternMinerAgent.so is missing.  In the cogserver log, it says no such file or directory. 

    Am i missing anything?

    -Vishnu

    Linas Vepstas

    unread,
    Sep 1, 2016, 4:30:01 PM9/1/16
    to vishnupriya kumar, opencog, Nil Geisweiller
    you have to provide the full explicit path to the module, starting with the leading slash.  Clearly, whatever default paths that are being searched do not include the directory in which the thing lives, for you.

    --linas

    vishnup...@gmail.com

    unread,
    Sep 1, 2016, 5:28:38 PM9/1/16
    to opencog, vishnup...@gmail.com, ngei...@gmail.com, linasv...@gmail.com


     Thanks Linas !!  It is successful :-))

    --Vishnu


    Misgana Bayetta

    unread,
    Sep 2, 2016, 7:26:32 PM9/2/16
    to opencog
    Hi, try with absolute path and full log is found in /tmp/cogserver.log incase the loading fails.

    --
    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 opencog+unsubscribe@googlegroups.com.

    To post to this group, send email to ope...@googlegroups.com.
    Visit this group at https://groups.google.com/group/opencog.

    For more options, visit https://groups.google.com/d/optout.



    --
    Belachew Misgana Bayetta
    'For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened ' --Jesus
    'The future belongs to those who believe in the beauty of their dreams' --Eleanor Rusvelt

    vishnup...@gmail.com

    unread,
    Sep 3, 2016, 4:55:45 PM9/3/16
    to opencog


    Thanks Misgana!

    vishnup...@gmail.com

    unread,
    Sep 6, 2016, 9:46:15 AM9/6/16
    to opencog, vishnup...@gmail.com, ngei...@gmail.com, linasv...@gmail.com
    when i run non-distributed pattern miner test, the default test file is ugly_male_soda-drinker_corpus.scm.  How can i change the input file.  i.e. Where should i place my scm file or how can i invoke my scm file?


    vishnup...@gmail.com

    unread,
    Sep 7, 2016, 9:39:06 AM9/7/16
    to opencog, vishnup...@gmail.com, ngei...@gmail.com, linasv...@gmail.com
    it is a silly question! 

    Just in the opencog_patternminer.conf file changed the scm file, which i want to give as an input.
    Reply all
    Reply to author
    Forward
    0 new messages