unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* use-module not finding module in guile-1.9.5
@ 2009-12-06 21:09 Linas Vepstas
  2009-12-07  9:39 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Linas Vepstas @ 2009-12-06 21:09 UTC (permalink / raw)
  To: Guile Development, Guile User

Hi,

I'm experiencing trouble loading a module in guile-1.9.5

I maintain the guile-dbi module at http://home.gna.org/guile-dbi/
and am having trouble getting guile-1.9.5 to find the module:

$ /usr/local/bin/guile
Guile Scheme interpreter 0.5 on Guile 1.9.5
Copyright (C) 2001-2008 Free Software Foundation, Inc.

Enter `,help' for help.
scheme@(guile-user)> (use-modules (dbi dbi))

Backtrace:
In system/repl/common.scm:
  85:  0* [repl-eval # #]
In system/base/compile.scm:
 239:  1  [compile (use-modules (dbi dbi)) #:key ...]
In system/base/compile.scm:
 185:  2  [lp # # # ...]
In ice-9/boot-9.scm:
1775:  3  [save-module-excursion #<program b31fa0 at
language/scheme/compile-tree-il.scm:29:3 ()>]
In unknown file:
   ?:  4* [dynamic-wind #<program b31f20 at ice-9/boot-9.scm:1774:18 ()> ...]
In language/scheme/compile-tree-il.scm:
  32:  5* [#<program b31fa0 at language/scheme/compile-tree-il.scm:29:3 ()>]
In ice-9/psyntax-pp.scm:
11057:  6  [#<program 9aad40 at ice-9/psyntax-pp.scm:11040:8 (#{\x\\\
1648}# . #{\rest\\\ 1649}#)> # ...]
In unknown file:
   ?:  7* [with-fluid* #<fluid 10> c ...]
In ice-9/psyntax-pp.scm:
6736:  8* [#{\chi-top-sequence\\\ 162}# (# *unspecified*) () (#) ...]
In ice-9/psyntax-pp.scm:
6720:  9  [#{\dobody\\\ 866}# ((process-use-modules (list #))
*unspecified*) () ...]
In ice-9/psyntax-pp.scm:
3311: 10  [#{\chi-top\\\ 166}# (process-use-modules (list (list #))) () ...]
In ice-9/psyntax-pp.scm:
7854: 11  [#{\top-level-eval-hook\\\ 90}# # #]
In unknown file:
   ?: 12* [primitive-eval ("noexpand" (process-use-modules (list #)))]
   ?: 13* [process-use-modules (((dbi dbi)))]
In ice-9/boot-9.scm:
2992: 14* [process-use-modules (((dbi dbi)))]
In unknown file:
   ?: 15* [map #<program 9d8b80 at ice-9/boot-9.scm:2991:25 (mif-args)> ((#))]
In ice-9/boot-9.scm:
2993: 16* [#<program 9d8b80 at ice-9/boot-9.scm:2991:25 (mif-args)> ((dbi dbi))]
In ice-9/boot-9.scm:
2144: 17  [resolve-interface (dbi dbi)]

ERROR: In procedure resolve-interface:
ERROR: no code for module (dbi dbi)
scheme@(guile-user)>


The basic dbi.scm is located in /usr/local/share/guile/site/dbi

Copying it to /usr/share/guile/site/dbi does not help.

The module is found, and works, with guile1.8.6
The total contents of dbi.scm is

(define-module (dbi dbi))

(load-extension "libguile-dbi" "init_dbi")

; exported primitives

(export dbi-open
        dbi-close
        dbi-query
        dbi-get_row
        dbi-get_status)



--linas




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: use-module not finding module in guile-1.9.5
  2009-12-06 21:09 use-module not finding module in guile-1.9.5 Linas Vepstas
@ 2009-12-07  9:39 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2009-12-07  9:39 UTC (permalink / raw)
  To: guile-user; +Cc: guile-devel

Hi Linas,

It could be that (dbi dbi) is found but that the ‘load-extension’ in
there fails, leading to this (arguably suboptimal) error message.

Can you first check whether ‘(search-path %load-path "dbi/dbi.scm")’
yields the correct answer?

Thanks,
Ludo’.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-07  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-06 21:09 use-module not finding module in guile-1.9.5 Linas Vepstas
2009-12-07  9:39 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).