* Unbound variable: quote
@ 2010-09-23 16:19 Joel James Adamson
2010-09-24 15:20 ` Andy Wingo
0 siblings, 1 reply; 4+ messages in thread
From: Joel James Adamson @ 2010-09-23 16:19 UTC (permalink / raw)
To: guile-user
[-- Attachment #1: Type: text/plain, Size: 2223 bytes --]
Hello,
I'm trying to load a file at the REPL that loads some modules from a
subdirectory then defines a function. At reading my use-modules
statements, I get the following error:
guile> %load-path
("/home/joel/Public/src/age_dep/sim/trunk" "/usr/share/guile/site" "/usr/share/guile/1.8" "/usr/share/guile")
guile> (load "age_dep.scm")
Backtrace:
In unknown file:
...
?: 20 (letrec ((load-file #)) (dynamic-wind (lambda () #) (lambda () #) ...) ...)
?: 21* [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
?: 22* [#<procedure #f ()>]
?: 23* (let* ((file #)) (cond (# => #) (# => #)))
?: 24 [#<procedure #f #> "/home/joel/Public/src/age_dep/sim/trunk/age-dep-scm/age-dep-interface.scm"]
?: 25 [with-fluid* #<fluid 7> #f #<procedure #f ()>]
?: 26* [#<procedure #f ()>]
?: 27* [load-file #<primitive-procedure primitive-load> ...]
?: 28* [save-module-excursion #<procedure #f ()>]
?: 29 (let (# #) (dynamic-wind # thunk #))
?: 30 [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>]
?: 31* [#<procedure #f ()>]
?: 32* [primitive-load "/home/joel/Public/src/age_dep/sim/trunk/age-dep-scm/age-dep-interface.scm"]
In /home/joel/Public/src/age_dep/sim/trunk/age-dep-scm/age-dep-interface.scm:
36: 33* (use-modules (ice-9 popen))
36: 34 (eval-case (# # *unspecified*) (else #))
36: 35 (begin (process-use-modules (list (list #))) *unspecified*)
In unknown file:
?: 36* [process-use-modules ...
?: 37* [list ...
?: 38* [list ...
?: 39* (quote (ice-9 popen))
<unnamed port>: In expression (quote (ice-9 popen)):
<unnamed port>: Unbound variable: quote
ABORT: (unbound-variable)
However, at the REPL I can load the popen module just fine (with a
warning):
guile> (use-modules (ice-9 popen))
guile> (use-modules (age-dep-scm age-dep-interface))
WARNING: (guile-user): `quote' imported from both (ice-9 null) and (age-dep-scm age-dep-interface)
Why would `quote' be redefined? What's going on here and how can I fix it?
Thanks,
Joel
--
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill
FSF Member #8164
http://www.unc.edu/~adamsonj
[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Unbound variable: quote
2010-09-23 16:19 Unbound variable: quote Joel James Adamson
@ 2010-09-24 15:20 ` Andy Wingo
2010-09-24 17:16 ` Joel James Adamson
0 siblings, 1 reply; 4+ messages in thread
From: Andy Wingo @ 2010-09-24 15:20 UTC (permalink / raw)
To: Joel James Adamson; +Cc: guile-user
On Thu 23 Sep 2010 18:19, Joel James Adamson <adamsonj@email.unc.edu> writes:
> Why would `quote' be redefined? What's going on here and how can I fix it?
Perhaps the module that you are calling use-modules in has no binding
for `quote'.
This problem is fixed in 1.9, FWIW.
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Unbound variable: quote
2010-09-24 15:20 ` Andy Wingo
@ 2010-09-24 17:16 ` Joel James Adamson
2010-09-25 13:55 ` Andy Wingo
0 siblings, 1 reply; 4+ messages in thread
From: Joel James Adamson @ 2010-09-24 17:16 UTC (permalink / raw)
To: Andy Wingo; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
Andy Wingo <wingo@pobox.com> writes:
> On Thu 23 Sep 2010 18:19, Joel James Adamson <adamsonj@email.unc.edu> writes:
>
>> Why would `quote' be redefined? What's going on here and how can I fix it?
>
> Perhaps the module that you are calling use-modules in has no binding
> for `quote'.
Is there anything I can do about that? Would I have to redefine quote
in my top-level script?
> This problem is fixed in 1.9, FWIW.
Thanks for letting me know: unfortunately despite its reputation Fedora
is not quite "bleeding edge" enough for me ;)
Joel
--
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill
FSF Member #8164
http://www.unc.edu/~adamsonj
[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Unbound variable: quote
2010-09-24 17:16 ` Joel James Adamson
@ 2010-09-25 13:55 ` Andy Wingo
0 siblings, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2010-09-25 13:55 UTC (permalink / raw)
To: Joel James Adamson; +Cc: guile-user
On Fri 24 Sep 2010 19:16, Joel James Adamson <adamsonj@email.unc.edu> writes:
> Andy Wingo <wingo@pobox.com> writes:
>
>> On Thu 23 Sep 2010 18:19, Joel James Adamson <adamsonj@email.unc.edu> writes:
>>
>>> Why would `quote' be redefined? What's going on here and how can I fix it?
>>
>> Perhaps the module that you are calling use-modules in has no binding
>> for `quote'.
>
> Is there anything I can do about that? Would I have to redefine quote
> in my top-level script?
No, this usually happens because you make a #:pure module, while not
defining imported modules within the define-module #:use-module clauses,
instead using the use-modules toplevel syntax.
Hope that helps,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-25 13:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 16:19 Unbound variable: quote Joel James Adamson
2010-09-24 15:20 ` Andy Wingo
2010-09-24 17:16 ` Joel James Adamson
2010-09-25 13:55 ` Andy Wingo
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).