<div dir="ltr">Pierre,<div><br></div><div>I don't know whether this is a problem with your sbcl installation, but it certainly does not look like a Drakma problem to me.</div><div><br></div><div style>First, I would make sure that I'm using the latest quicklisp, using (ql:update-client) and (ql:update-all-dists). If that didn't help, I'd upgrade to the latest SBCL release. If that did not help either, I'd ask again :)</div>
<div style><br></div><div style>Cheers,</div><div style>Hans</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 23, 2013 at 8:49 PM, Patrick May <span dir="ltr"><<a href="mailto:patrick.may@mac.com" target="_blank">patrick.may@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span style="white-space:pre-wrap"> </span>Thanks for the quick response. I removed ~/.cache/common-lisp, started SBCL and tried to load Drakma. I got this error:<div>
<br></div><div><div>* (ql:quickload "drakma")</div><div>To load "drakma":</div><div> Load 1 ASDF system:</div><div> drakma</div><div>; Loading "drakma"</div><div>[package trivial-gray-streams]....................</div>
<div>[package flexi-streams]...........................</div><div>..................................................</div><div>..................................................</div><div>[package cffi-utils]..............................</div>
<div>[package cffi-features]...........................</div><div>[package cffi-sys]...</div><div>debugger invoked on a SB-EXT:PACKAGE-LOCKED-ERROR:</div><div> Lock on package SB-ALIEN violated when interning SHARED-OBJECT-FILE while in</div>
<div> package CFFI-SYS.</div><div>See also:</div><div> The SBCL Manual, Node "Package Locks"</div><div><br></div><div>Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.</div><div><br></div><div>
restarts (invokable by number or by possibly-abbreviated name):</div>
<div> 0: [CONTINUE ] Ignore the package lock.</div><div> 1: [IGNORE-ALL ] Ignore all package locks in the context of this operation.</div><div> 2: [UNLOCK-PACKAGE] Unlock the package.</div><div> 3: [RETRY ] Retry</div>
<div> compiling #<CL-SOURCE-FILE "cffi" "src" "cffi-sbcl">.</div><div> 4: [ACCEPT ] Continue, treating</div><div> compiling #<CL-SOURCE-FILE "cffi" "src" "cffi-sbcl"> as</div>
<div> having been successful.</div><div> 5: [ABORT ] Give up on "drakma"</div><div> 6: Exit debugger, returning to top level.</div><div><br></div><div>(SB-EXT:PACKAGE-LOCK-VIOLATION</div>
<div> #<PACKAGE "SB-ALIEN"></div><div> :SYMBOL</div><div> NIL</div><div> :FORMAT-CONTROL</div><div> "interning ~A"</div><div> :FORMAT-ARGUMENTS</div><div> ("SHARED-OBJECT-FILE"))</div>
<div>
0] </div><div><br></div><div>Is this a problem with my SBCL installation?</div><div><br></div><div>Thanks,</div><div><br></div><div>Patrick</div><div><div class="h5"><div><br></div><div><br></div><div><div>On Mar 23, 2013, at 1:13 PM, Hans Hübner <<a href="mailto:hans.huebner@gmail.com" target="_blank">hans.huebner@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">I have just tried this<div><br></div><div>(drakma:HTTP-REQUEST "<a href="http://ichart.yahoo.com/table.csv?s=IBM&a=0&b=01&c=2012&d=11&e=31&f=2012&g=d&ignore=.csv" target="_blank">http://ichart.yahoo.com/table.csv?s=IBM&a=0&b=01&c=2012&d=11&e=31&f=2012&g=d&ignore=.csv</a>")<br>
</div><div><br></div><div>with Drakma from current Quicklisp and it works. I guess that you have .fasl files of old versions somewhere. Try removing ~/.cache/common-lisp/ and maybe fetch Quicklisp again.</div><div>
<br></div><div>-Hans</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 23, 2013 at 3:03 PM, Patrick May <span dir="ltr"><<a href="mailto:patrick.may@mac.com" target="_blank">patrick.may@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I'm trying to get Drakma working with SBCL. I've loaded it with quicklisp but when I try to connect to a website in Slime, I get this error:<br>
<br>
The function DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS is undefined.<br>
[Condition of type UNDEFINED-FUNCTION]<br>
<br>
Any idea what could be causing this? I've attached the backtrace in case that helps.<br>
<br>
Thanks,<br>
<br>
Patrick<br>
<br>
Backtrace:<br>
0: ("undefined function")<br>
1: (HTTP-REQUEST #<PURI:URI <a href="http://ichart.yahoo.com/table.csv?s=IBM&a=0&b=01&c=2012&d=11&e=31&f=2012&g=d&ignore=.csv" target="_blank">http://ichart.yahoo.com/table.csv?s=IBM&a=0&b=01&c=2012&d=11&e=31&f=2012&g=d&ignore=.csv</a>>)<br>
2: (GET-YAHOO-SYMBOL-DATA "IBM" "2012-01-01" "2012-12-31")<br>
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (GET-YAHOO-SYMBOL-DATA "IBM" "2012-01-01" "2012-12-31") #<NULL-LEXENV>)<br>
4: (EVAL (GET-YAHOO-SYMBOL-DATA "IBM" "2012-01-01" "2012-12-31"))<br>
5: ((LAMBDA () :IN SWANK:EVAL-AND-GRAB-OUTPUT))<br>
6: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME evaluation request." #<CLOSURE (LAMBDA # :IN SWANK:EVAL-AND-GRAB-OUTPUT) {13BBF7E5}>)<br>
7: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA # :IN SWANK:EVAL-AND-GRAB-OUTPUT) {13BBF7CD}>)<br>
8: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:EVAL-AND-GRAB-OUTPUT "(get-yahoo-symbol-data \"IBM\" \"2012-01-01\" \"2012-12-31\")\n") #<NULL-LEXENV>)<br>
9: (EVAL (SWANK:EVAL-AND-GRAB-OUTPUT "(get-yahoo-symbol-data \"IBM\" \"2012-01-01\" \"2012-12-31\")\n"))<br>
10: (SWANK:EVAL-FOR-EMACS (SWANK:EVAL-AND-GRAB-OUTPUT "(get-yahoo-symbol-data \"IBM\" \"2012-01-01\" \"2012-12-31\")\n") ":comp-invest" 17)<br>
11: (SWANK::PROCESS-REQUESTS T)<br>
12: (SWANK::CALL-WITH-BINDINGS ..)<br>
13: (SWANK::REPL-INPUT-STREAM-READ #<SWANK::SINGLETHREADED-CONNECTION {12971A59}> #<SB-SYS:FD-STREAM for "standard input" {11A91B11}>)<br>
14: ((LAMBDA () :IN SB-GRAY:STREAM-READ-CHAR))<br>
15: ((SB-PCL::FAST-METHOD SB-GRAY:STREAM-READ-CHAR (SWANK-BACKEND::SLIME-INPUT-STREAM)) #<unavailable argument> #<unavailable argument> #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}>)<br>
16: (READ-CHAR #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T #:EOF-OBJECT #<unused argument>)<br>
17: (SB-IMPL::%READ-PRESERVING-WHITESPACE #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T NIL T)<br>
18: (SB-IMPL::%READ-PRESERVING-WHITESPACE #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T NIL NIL)<br>
19: (READ #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T NIL NIL)<br>
20: (SWANK::SIMPLE-REPL)<br>
21: ((LAMBDA () :IN SWANK::SIMPLE-SERVE-REQUESTS))<br>
22: ((LAMBDA () :IN SWANK::SIMPLE-SERVE-REQUESTS))<br>
23: ((LAMBDA (SWANK-BACKEND::HANDLER FUNCTION) :IN "/Users/Patrick/.emlib/slime/swank-backend.lisp") ..)<br>
24: (SWANK-BACKEND::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA # :IN SWANK::SIMPLE-SERVE-REQUESTS) {12971ACD}>)<br>
25: ((FLET SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/Patrick/.emlib/slime/swank-sbcl.lisp") #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA # :IN SWANK::SIMPLE-SERVE-REQUESTS) {12971ACD}>)<br>
26: (SWANK::SIMPLE-SERVE-REQUESTS #<SWANK::SINGLETHREADED-CONNECTION {12971A59}>)<br>
27: (SWANK::ACCEPT-CONNECTIONS #<SB-BSD-SOCKETS:INET-SOCKET fd: -1 {129680D1}> NIL NIL)<br>
28: ((LABELS SWANK::SERVE-LOOP :IN SWANK::SETUP-SERVER))<br>
29: (SWANK::SETUP-SERVER 0 #<CLOSURE (LAMBDA # :IN SWANK:START-SERVER) {128E5F1D}> NIL NIL NIL)<br>
30: (SB-INT:SIMPLE-EVAL-IN-LEXENV (FUNCALL (READ-FROM-STRING "swank:start-server") "/var/folders/b0/br9v722s5nq0j4m677ncd98c0000gn/T/slime.32805") #<NULL-LEXENV>)<br>
31: (SB-INT:SIMPLE-EVAL-IN-LEXENV ..)<br>
32: (EVAL ..)<br>
33: (SB-EXT:INTERACTIVE-EVAL ..)<br>
34: (SB-IMPL::REPL-FUN NIL)<br>
35: ((LAMBDA () :IN SB-IMPL::TOPLEVEL-REPL))<br>
36: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (LAMBDA # :IN SB-IMPL::TOPLEVEL-REPL) {13363095}>)<br>
37: (SB-IMPL::TOPLEVEL-REPL NIL)<br>
38: (SB-IMPL::TOPLEVEL-INIT)<br>
39: ((FLET #:WITHOUT-INTERRUPTS-BODY-222031 :IN SB-EXT:SAVE-LISP-AND-DIE))<br>
40: ((LABELS SB-IMPL::RESTART-LISP :IN SB-EXT:SAVE-LISP-AND-DIE))<br>
<br>
<br>
_______________________________________________<br>
drakma-devel mailing list<br>
<a href="mailto:drakma-devel@common-lisp.net" target="_blank">drakma-devel@common-lisp.net</a><br>
<a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel</a><br>
</blockquote></div><br></div>
_______________________________________________<br>drakma-devel mailing list<br><a href="mailto:drakma-devel@common-lisp.net" target="_blank">drakma-devel@common-lisp.net</a><br><a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
drakma-devel mailing list<br>
<a href="mailto:drakma-devel@common-lisp.net">drakma-devel@common-lisp.net</a><br>
<a href="http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel" target="_blank">http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel</a><br>
<br></blockquote></div><br></div>