I am having trouble getting cells running under macosx Lispworks 4.4.6
CL-USER 3 > (in-package #:asdf)
#<The ASDF package, 181/256 internal, 64/64 external>
ASDF 4 > *asdf-revision*
(1 79)
ASDF 5 > (asdf:oos 'asdf:load-op :cells)
Error:
; Loading /Applications/LispWorks Personal
4.4.6/Library/lib/4-4-0-0/load-on-demand/ccl/xp-fancyformat.nfasl on
demand...
component "cells" not found
1 (abort) Return to level 0.
2 Return to top loop level 0.
Type :b for backtrace, :c <option number> to proceed, or :? for other
options
ASDF 6 : 1 > :top
ASDF 7 > (require :cells)
Error: Unknown module :CELLS.
1 (abort) Return to level 0.
2 Return to top loop level 0.
how do I get this thing running?
[by email and to list]
Nelson Marcelino wrote:
> I am having trouble getting cells running under macosx Lispworks 4.4.6
>
> CL-USER 3 > (in-package #:asdf)
> #<The ASDF package, 181/256 internal, 64/64 external>
>
> ASDF 4 > *asdf-revision*
> (1 79)
>
> ASDF 5 > (asdf:oos 'asdf:load-op :cells)
>
> Error:
> ; Loading /Applications/LispWorks Personal
> 4.4.6/Library/lib/4-4-0-0/load-on-demand/ccl/xp-fancyformat.nfasl on
> demand...
> component "cells" not found
> 1 (abort) Return to level 0.
> 2 Return to top loop level 0.
>
> Type :b for backtrace, :c <option number> to proceed, or :? for other
> options
>
> ASDF 6 : 1 > :top
>
> ASDF 7 > (require :cells)
>
> Error: Unknown module :CELLS.
> 1 (abort) Return to level 0.
> 2 Return to top loop level 0.
>
> how do I get this thing running?
>
Did you (push <path-to-cells-directory> asdf:*central-registry*)?
--
Kenny
Why Lisp? http://wiki.alu.org/RtL_Highlight_Film
"I've wrestled with reality for 35 years, Doctor, and I'm happy to state
I finally won out over it."
Elwood P. Dowd, "Harvey", 1950
ASDF 9 > (push "~/lisp/cells_2.0" asdf:*central-registry*)
("~/lisp/cells_2.0" *DEFAULT-PATHNAME-DEFAULTS*)
ASDF 11 : 1 > (asdf:oos 'asdf:load-op :cells)
Error: component "cells" not found
1 (abort) Return to level 1.
2 Return to debug level 1.
3 Return to level 0.
4 Return to top loop level 0.
Type :b for backtrace, :c <option number> to proceed, or :? for other
options
In article <························@g47g2000cwa.googlegroups.com>,
+---------------
| ASDF 9 > (push "~/lisp/cells_2.0" asdf:*central-registry*)
| ("~/lisp/cells_2.0" *DEFAULT-PATHNAME-DEFAULTS*)
| ASDF 11 : 1 > (asdf:oos 'asdf:load-op :cells)
| Error: component "cells" not found ...
+---------------
Are you sure that ASDF under Lispworks understands "~/" in
pathname strings? Try (TRUENAME "~/lisp/cells_2.0") and see
what that gives you, and PUSH *that* instead. And if TRUENAME
fails, try (TRUENAME "home:lisp/cells_2.0") [or whatever logical
device Lispworks uses for "$HOME"].
If that fails, try a fully-specified absolute namestring; then
[as Kenny suggested] a pathname...
-Rob
-----
Rob Warnock <····@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607
Nelson Marcelino wrote:
> ASDF 9 > (push "~/lisp/cells_2.0" asdf:*central-registry*)
> ("~/lisp/cells_2.0" *DEFAULT-PATHNAME-DEFAULTS*)
>
> ASDF 11 : 1 > (asdf:oos 'asdf:load-op :cells)
>
> Error: component "cells" not found
> 1 (abort) Return to level 1.
> 2 Return to debug level 1.
> 3 Return to level 0.
> 4 Return to top loop level 0.
>
> Type :b for backtrace, :c <option number> to proceed, or :? for other
> options
>
I have solved oddities like this by pushing a pathname pointing to the
same place, where a perfectly good string path failed.
The bigger picture is that this error is generated only if ASDF cannot
find cells.asd in some directory pointed to by some entry in the registry.
fwiw, I have been massively frustrated in the past by this, and iirc it
was using make-pathname that finally got me over the hump. Not that it
should be necessary, but if you want to get on with your life it is
worth a try.
--
Kenny
Why Lisp? http://wiki.alu.org/RtL_Highlight_Film
"I've wrestled with reality for 35 years, Doctor, and I'm happy to state
I finally won out over it."
Elwood P. Dowd, "Harvey", 1950
On 2005-11-04 19:09:36 -0500, "Nelson Marcelino" <·········@gmail.com> said:
> ASDF 9 > (push "~/lisp/cells_2.0" asdf:*central-registry*)
> ("~/lisp/cells_2.0" *DEFAULT-PATHNAME-DEFAULTS*)
>
> ASDF 11 : 1 > (asdf:oos 'asdf:load-op :cells)
>
> Error: component "cells" not found
> 1 (abort) Return to level 1.
> 2 Return to debug level 1.
> 3 Return to level 0.
> 4 Return to top loop level 0.
>
> Type :b for backtrace, :c <option number> to proceed, or :? for other
> options
What's getting Nelson here is the lack of a trailing / believe it or
not - I just tested this both ways and it only works with a trailing
slash.
So Nelson, do this:
(pushnew "~/lisp/cells_2.0/" asdf:*central-registry* :test #'equal)
^^^
you really need this trailing slash!
then loading cells should be fine:
(asdf:operate 'asdf:load-op :cells)
I would strongly recommend using asdf-install to download and configure
asdf systems - it automates everything and you don't get hung up on
silly details like this one:
<http://www.cliki.net/asdf-install>
and especially recommend Edi Weitz's lifesaving tutorial on getting
started setting up asdf-install and using it:
<http://weitz.de/asdf-install/>
regards
P.S.
Rob, it appears that lispworks does understand ~
CL-USER 11 > (truename "~/Documents/")
#P"/Users/raffaelc/Documents/"
just in case anyone was wondering.
Raffael Cavallaro <················@pas-d'espam-s'il-vous-plait-mac.com> wrote:
+---------------
| P.S. Rob, it appears that lispworks does understand ~
| CL-USER 11 > (truename "~/Documents/")
| #P"/Users/raffaelc/Documents/"
+---------------
Oh, o.k. CMUCL doesn't, which is why I brought that up:
cmu> (truename "home:tmp/foo")
#p"/u/rpw3/tmp/foo"
cmu> (truename "~/tmp/foo")
File-error in function TRUENAME: The file "~/tmp/foo" does not exist.
[Condition of type KERNEL:SIMPLE-FILE-ERROR]
Restarts:
0: [ABORT] Return to Top-Level.
...
-Rob
-----
Rob Warnock <····@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607
On 2005-11-05 05:22:27 -0500, ····@rpw3.org (Rob Warnock) said:
> Oh, o.k. CMUCL doesn't, which is why I brought that up:
I know, I've been burned by this in the past with sbcl, so I now use
fully qualified paths by habit.
regards
Nelson Marcelino wrote:
> ASDF 9 > (push "~/lisp/cells_2.0" asdf:*central-registry*)
> ("~/lisp/cells_2.0" *DEFAULT-PATHNAME-DEFAULTS*)
[...]
The lack of a trailing slash has been noted already elsewhere
in this thread. However, to understand why it's needed, I
heartily recommend chapters 14 and 15 in Peter Seibel's
excellent Practical Common Lisp.
-Mike
Nelson Marcelino wrote:
> Raffael's suggestion solved my problem. Below is sample run from
> internal-combustion.lisp.
> I am not sure, at this point, what this thing does or if it is even
> working correctly. I will
> proceed further with my investigation. Thanks to everyone for the tips.
>
> CELLS 19 > (cv-test-engine)
> ok: (MAKE-INSTANCE (QUOTE NON-MODEL))
> ok: (MAKE-BE (QUOTE TRUE-MODEL))
> ok: (MAKE-BE (QUOTE INDIRECT-MODEL))
[snip]
internal-combustion is just one of several regression tests. If it
finishes without leaving you in a backtrace (looks like it did) you have
a working version of Cells.
The errors you do see in the output are tests that user errors (misuse
of Cells) correctly produce run-time errors. These tests are conducted
within handlers and backtrace if no error is emitted by Cells internals.
The regression does not otherwise "do anything", but it does exercise
the edges as well as the basic Cells functionality, and I ended up
commenting the code extensively to explain each subtest. As such it
indirectly documents Cells pretty thoroughly.
For more doc, you might try the Cells-Gtk site where Peter Denno is
bravely trying to fill the Cells doc gap.
--
Kenny
Why Lisp? http://wiki.alu.org/RtL_Highlight_Film
"I've wrestled with reality for 35 years, Doctor, and I'm happy to state
I finally won out over it."
Elwood P. Dowd, "Harvey", 1950