Le sam. 27 avr. 2019 à 19:46, Johannes Castner <jac2...@gmail.com> a écrit :

> It doesn't seem as though guile-readline can be installed separately; it
> seems to be assumed to come with guile? This is how I currently install
> guile (well, in a Docker way, where RUN, WORKDIR are used instead):
>
> mkdir -p Sources
> cd Sources
> wget https://ftp.gnu.org/gnu/guile/guile-2.2.4.tar.xz
> tar xvf guile-2.2.4.tar.xz
> cd guile-2.2.4
> ./configure
> make -j4
> make install
> cd ..
>

Check inside config.log you should see things like:

configure:54418: checking how to link with libreadline
configure:54891: result: -lreadline

config.log is generated by ./configure.

Maybe `libreadline-dev` is not installed?


>
> Is there something wrong or missing in this approach?
>
> Johannes
>
> On Friday, April 26, 2019 at 11:13:09 PM UTC+1, Amirouche Boubekki wrote:
>>
>>
>>
>> On Friday, April 26, 2019 at 12:05:46 PM UTC+2, Johannes Castner wrote:
>>>
>>> Dear group,
>>>
>>> If you could help me with this bug, I'd be greatly appreciative.  I have
>>> a few scheme files, called `load_all.scm`, `math.scm`,  `statements.scm`,
>>> `collectiwise.scm` that I want to import while working with the python
>>> scheme wrapper.  Two months ago, this worked perfectly but now it seems,
>>> from the error message that I'm getting that some files are missing in that
>>> module?
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "python/scheme_router.py", line 24, in <module>
>>>     """)
>>>   File "scheme_wrapper.pyx", line 44, in
>>> opencog.scheme_wrapper.scheme_eval
>>> RuntimeError: Python-Scheme Wrapper: Failed to execute '
>>>                         (load "load_all.scm")
>>>                         (add-to-load-path "collectiwise")
>>>                         (load "math.scm")
>>>                         (load "statements.scm")
>>>                         (load "collectiwise.scm")
>>>                         '
>>> Backtrace:
>>>           19 (apply-smob/1 #<catch-closure 2d241e0>)
>>>           18 (apply-smob/1 #<catch-closure 2d24060>)
>>> In ice-9/boot-9.scm:
>>>    2312:4 17 (save-module-excursion _)
>>> In ice-9/eval-string.scm:
>>>      38:6 16 (read-and-eval #<input: string 2d158c0> #:lang _)
>>> In ice-9/boot-9.scm:
>>>    2312:4 15 (save-module-excursion _)
>>>   3832:10 14 (_)
>>>    1693:5 13 (%start-stack load-stack _)
>>>    1695:9 12 (_)
>>> In unknown file:
>>>           11 (primitive-load "/root/collectiwise/load_all.scm")
>>> In ice-9/eval.scm:
>>>    721:20 10 (primitive-eval (use-modules (ice-9 readline)))
>>> In ice-9/psyntax.scm:
>>>   1235:36  9 (expand-top-sequence ((use-modules (ice-9 readline))) _
>>> \u2026)
>>>   1182:24  8 (parse _ (("placeholder" placeholder)) ((top) #(# #
>>> \u2026)) \u2026)
>>>    285:10  7 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval)
>>> \u2026)
>>> In ice-9/boot-9.scm:
>>>   3377:20  6 (process-use-modules _)
>>>    222:17  5 (map1 (((ice-9 readline))))
>>>   3378:31  4 (_ ((ice-9 readline)))
>>>    2803:6  3 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _
>>> \u2026)
>>> In unknown file:
>>>            2 (scm-error misc-error #f "~A ~S" ("no code for modu\u2026"
>>> \u2026) \u2026)
>>> In ice-9/boot-9.scm:
>>>    751:25  1 (dispatch-exception 0 misc-error (#f "~A ~S" ("no\u2026"
>>> \u2026) \u2026))
>>> In unknown file:
>>>            0 (apply-smob/1 #<catch-closure 2d24020> misc-error #f
>>> "\u2026" \u2026)
>>>
>>> ERROR: In procedure apply-smob/1:
>>> *no code for module (ice-9 readline)*
>>> ABORT: misc-error
>>>  (/root/atomspace/opencog/cython/opencog/PyScheme.cc:63)
>>>
>>
>>
>> You don't have readline or guile-readline.
>>
>> Which OS do you use? Which version of guile
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to opencog@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/CAL7_Mo9etRueE6Gf5%3Dn760GbtWNs%3DBd_TM%3D69ChSb246yBKSCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to