Skip to content

Commit 43b6443

Browse files
committed
Ah hah! It was the crazy opencog config file!
It was the root cause of all of the failed module loads!
1 parent 92ae1e0 commit 43b6443

File tree

3 files changed

+9
-45
lines changed

3 files changed

+9
-45
lines changed

scripts/opencog.conf

+1-41
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,8 @@ ANSI_ENABLED = true
6868
# Cogserver in OSX will automatically change .so extension to .dylib
6969
# if .so exists.
7070
MODULES = opencog/modules/libbuiltinreqs.so,
71-
opencog/modules/libnlp-types.so,
72-
# opencog/learning/pln/libPLNTypes.so,
73-
# opencog/dynamics/attention/libattention-types.so,
74-
opencog/modules/libPersistModule.so,
75-
opencog/modules/libQueryModule.so,
7671
opencog/modules/libscheme-shell.so,
77-
opencog/modules/libPythonModule.so,
78-
opencog/modules/libpy-shell.so,
79-
opencog/modules/libLGDictModule.so,
80-
opencog/modules/libSuRealModule.so,
81-
# opencog/dynamics/attention/libattention.so,
82-
opencog/modules/libRuleEngineModule.so
72+
opencog/modules/libpy-shell.so
8373

8474
# Optional modules, not enabled by default
8575
# opencog/modules/benchmark/libbenchmark.so,
@@ -88,36 +78,6 @@ MODULES = opencog/modules/libbuiltinreqs.so,
8878
# opencog/learning/dimensionalembedding/libdimensionalembedding.so
8979
# opencog/viterbi/libviterbi.so
9080

91-
# Load order of the SCM modules:
92-
# First, the user-defined config file.
93-
# Next, all the atom type definition files.
94-
# Next, the system-wide utilities.
95-
# Finally, any code specific to various subsystems.
96-
# All this mostly in alphabetical order; however, it would be best
97-
# to have a load order where things got defined before they got used.
98-
SCM_PRELOAD = scm/config.scm,
99-
scm/core_types.scm,
100-
scm/spacetime/spacetime_types.scm,
101-
scm/nlp/types/nlp_types.scm,
102-
scm/dynamics/attention/attention_types.scm,
103-
scm/utilities.scm,
104-
scm/apply.scm,
105-
scm/file-utils.scm,
106-
# scm/repl-shell.scm,
107-
scm/av-tv.scm,
108-
scm/nlp/scm/type-definitions.scm,
109-
scm/nlp/scm/config.scm,
110-
scm/nlp/scm/file-utils.scm,
111-
scm/nlp/scm/nlp-utils.scm,
112-
scm/nlp/scm/disjunct-list.scm,
113-
scm/nlp/scm/processing-utils.scm,
114-
scm/nlp/relex2logic/utilities.scm,
115-
scm/nlp/relex2logic/rule-helpers.scm,
116-
scm/nlp/relex2logic/post-processing.scm,
117-
scm/nlp/lg-dict/utilities.scm,
118-
scm/nlp/sureal/surface-realization.scm
119-
# viterbi/viterbi_types.scm
120-
12181
# Uncomment if Python extensions are not stored in these locations,
12282
# or the binary and source directories:
12383
# /usr/local/share/opencog/python

src/btree-eva.scm

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,18 @@
5151
; Load the chat modules.
5252
;
5353
(use-modules (opencog nlp))
54-
(use-modules (opencog nlp chatbot-eva))
5554

5655
; XXX remove the below when we get a chance.
5756
; Must load the rulebase before running eva; see bug
5857
; https://github.com/opencog/opencog/issues/2021 for details
5958
; XXX fixme -- we should not need to load either relex2logic or
6059
; the rules right here, since the code in this module does not depend
6160
; directly on thes.
62-
(use-modules (opencog nlp relex2logic))
61+
; (use-modules (opencog nlp relex2logic))
6362
; (load-r2l-rulebase)
6463

64+
(use-modules (opencog nlp chatbot-eva))
65+
6566
; ---------------------------------------------------------
6667
; Run the hacky garbage collection loop.
6768
(run-behavior-tree-gc)

src/self-model.scm

+5-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@
3737
(use-modules (opencog) (opencog query) (opencog exec))
3838
(use-modules (opencog atom-types))
3939

40-
; XXX the below does not really belong here; where does it belong?
41-
(use-modules (opencog nlp chatbot-eva)) ; Needed for process-query
40+
; XXX the nlp chatbot-eva does not really belong here; where does it belong?
41+
; We need process-query, but this load-modules results in a circular
42+
; dependency.
43+
; (use-modules (opencog nlp chatbot-eva)) ; Needed for process-query
44+
4245

4346
; ------------------------------------------------------
4447
; State variables

0 commit comments

Comments
 (0)