Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
problems with chapter 7
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xiaoma  
View profile  
 More options Nov 9 2010, 4:41 am
From: xiaoma <wei.xia...@gmail.com>
Date: Tue, 9 Nov 2010 01:41:52 -0800 (PST)
Local: Tues, Nov 9 2010 4:41 am
Subject: problems with chapter 7
Hi, there.  I've been working through LoL for the past couple of days
and it's been a great read!  It's a bit dense and it's harder to get
through than I'd expected, but I've managed okay up to ch7.

Now, I'm stuck, though.  When inputting
(graph->png "wizard.dot" *nodes* *edges*)
into clisp I get the following error:
*** - Win32 error 2 (ERROR_FILE_NOT_FOUND): The system cannot find the
file specified.

This error is surprising since it should be a new file.  My output
looks okay for all the smaller functions up to graph->dot, and I've
tried copying and pasting the code from http://landoflisp.com/graph-util.lisp
for each function I've used, but the results are the same.

Any idea what could be causing the error?  Also is there any easier
way to import code into clisp than copy and pasting?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brisance  
View profile  
 More options Nov 9 2010, 5:51 am
From: Brisance <cru...@gmail.com>
Date: Tue, 9 Nov 2010 02:51:35 -0800 (PST)
Local: Tues, Nov 9 2010 5:51 am
Subject: Re: problems with chapter 7
It seems that CLISP was unable to find the "wizard.dot" file. Was it
created? If it was, are you in the right path? Make sure you also ran
the node->dot and edges->dot functions.

You can do all your text editing in your favorite text editor such
emacs and vim. Ater saving the file, just run "clisp -repl <filename>"
with the correct path, of course.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xiaoma  
View profile  
 More options Nov 9 2010, 6:47 am
From: xiaoma <wei.xia...@gmail.com>
Date: Tue, 9 Nov 2010 03:47:05 -0800 (PST)
Local: Tues, Nov 9 2010 6:47 am
Subject: Re: problems with chapter 7

On Nov 9, 6:51 pm, Brisance <cru...@gmail.com> wrote:

> It seems that CLISP was unable to find the "wizard.dot" file. Was it
> created? If it was, are you in the right path? Make sure you also ran
> the node->dot and edges->dot functions.

I thought it was supposed to *create* a wizard.dot file.  Otherwise,
what's the point of writing a program at all instead of entering the
graph information manually?

> You can do all your text editing in your favorite text editor such
> emacs and vim. Ater saving the file, just run "clisp -repl <filename>"
> with the correct path, of course.

Thanks, this is going to speed up debugging a ton!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Conrad  
View profile  
 More options Nov 9 2010, 7:50 am
From: Conrad <drc...@gmail.com>
Date: Tue, 9 Nov 2010 04:50:32 -0800 (PST)
Local: Tues, Nov 9 2010 7:50 am
Subject: Re: problems with chapter 7
yes, it should create the dot file- I will check this evening and see
what is going on.

On Nov 9, 6:47 am, xiaoma <wei.xia...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xiaoma  
View profile  
 More options Nov 10 2010, 2:18 pm
From: xiaoma <wei.xia...@gmail.com>
Date: Wed, 10 Nov 2010 11:18:42 -0800 (PST)
Local: Wed, Nov 10 2010 2:18 pm
Subject: Re: problems with chapter 7
I've figured out a little bit more about what's going on.  Some of the
problem might be with paths.  I put everything into a c:\lisp
directory.  Then after loading the file into clisp with
(load "c:/lisp/graph-util.lisp)

and ignoring the warnings about redefining functions, and running
(graph->png "c:/lisp/wizard" *nodes* *edges*)

it properly generated a wizard.dot file!  I still got the same error
as before though... I guess that happened when trying to create the
png file with neato.  Neato is in my path, so I think the problem is
in the dot->png function

...
(ext:shell (concatenate 'string "dot -Tpng -O "fname)))

I can guess what ext:shell does, but since the string "neato" doesn't
show up anywhere in the code listing, I don't see how it could be
getting called by the lisp program.

On Nov 9, 8:50 pm, Conrad <drc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Conrad  
View profile  
 More options Nov 14 2010, 2:49 pm
From: Conrad <drc...@gmail.com>
Date: Sun, 14 Nov 2010 11:49:49 -0800 (PST)
Local: Sun, Nov 14 2010 2:49 pm
Subject: Re: problems with chapter 7
Hi xiaoma- The program "dot" should be in you path as well. The
program "dot" and "neato" generate two different types of layouts (see
http://www.graphviz.org/)

I would also try running "clisp" directly from the directory
containing the lisp files.

Please let me know if these ideas help.

-Conrad

On Nov 10, 2:18 pm, xiaoma <wei.xia...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xiaoma  
View profile  
 More options Dec 1 2010, 4:49 am
From: xiaoma <wei.xia...@gmail.com>
Date: Wed, 1 Dec 2010 01:49:18 -0800 (PST)
Local: Wed, Dec 1 2010 4:49 am
Subject: Re: problems with chapter 7

> I would also try running "clisp" directly from the directory
> containing the lisp files.

> Please let me know if these ideas help.

Yes!  That did the trick. Thanks.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pstnotpd  
View profile  
 More options Dec 1 2010, 6:01 am
From: pstnotpd <p...@ziggo.nl>
Date: Wed, 1 Dec 2010 03:01:41 -0800 (PST)
Local: Wed, Dec 1 2010 6:01 am
Subject: Re: problems with chapter 7
I ran into the same problem on SBCL on linux.
Managed to solve it by adding the default directory to the
concatenated string which calls dot in the function dot->png

...
(shell (concatenate 'string "dot -Tpng -O " (directory-namestring
*DEFAULT-PATHNAME-DEFAULTS*) fname ".dot")))
...
this should pick up the dot file from where it put it in the first
place.

On Dec 1, 10:49 am, xiaoma <wei.xia...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
greg r  
View profile  
 More options Dec 8 2010, 10:00 pm
From: greg r <gsra...@bellsouth.net>
Date: Wed, 8 Dec 2010 19:00:10 -0800 (PST)
Local: Wed, Dec 8 2010 10:00 pm
Subject: Re: problems with chapter 7
 (ext:shell (concatenate 'string "dot -Tpng -O "fname)))

Is this the "system call" which is mentioned on page 115?

Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
De-hua Yin  
View profile  
 More options Aug 13 2012, 11:57 am
From: De-hua Yin <yuganzhongd...@gmail.com>
Date: Mon, 13 Aug 2012 08:57:31 -0700 (PDT)
Local: Mon, Aug 13 2012 11:57 am
Subject: Re: problems with chapter 7

   The problem is the same with me. I ran it at lispbox-0.7-clisp-2.37.
    But, next day!  I try it again, it's OK!
    Restart your computer, then try it again!  maybe you can get it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »