[drakma-devel] Problem with SBCL, Drakma, and quicklisp
Patrick May
patrick.may at mac.com
Sat Mar 23 19:49:58 UTC 2013
Thanks for the quick response. I removed ~/.cache/common-lisp, started SBCL and tried to load Drakma. I got this error:
* (ql:quickload "drakma")
To load "drakma":
Load 1 ASDF system:
drakma
; Loading "drakma"
[package trivial-gray-streams]....................
[package flexi-streams]...........................
..................................................
..................................................
[package cffi-utils]..............................
[package cffi-features]...........................
[package cffi-sys]...
debugger invoked on a SB-EXT:PACKAGE-LOCKED-ERROR:
Lock on package SB-ALIEN violated when interning SHARED-OBJECT-FILE while in
package CFFI-SYS.
See also:
The SBCL Manual, Node "Package Locks"
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE ] Ignore the package lock.
1: [IGNORE-ALL ] Ignore all package locks in the context of this operation.
2: [UNLOCK-PACKAGE] Unlock the package.
3: [RETRY ] Retry
compiling #<CL-SOURCE-FILE "cffi" "src" "cffi-sbcl">.
4: [ACCEPT ] Continue, treating
compiling #<CL-SOURCE-FILE "cffi" "src" "cffi-sbcl"> as
having been successful.
5: [ABORT ] Give up on "drakma"
6: Exit debugger, returning to top level.
(SB-EXT:PACKAGE-LOCK-VIOLATION
#<PACKAGE "SB-ALIEN">
:SYMBOL
NIL
:FORMAT-CONTROL
"interning ~A"
:FORMAT-ARGUMENTS
("SHARED-OBJECT-FILE"))
0]
Is this a problem with my SBCL installation?
Thanks,
Patrick
On Mar 23, 2013, at 1:13 PM, Hans Hübner <hans.huebner at gmail.com> wrote:
> I have just tried this
>
> (drakma:HTTP-REQUEST "http://ichart.yahoo.com/table.csv?s=IBM&a=0&b=01&c=2012&d=11&e=31&f=2012&g=d&ignore=.csv")
>
> 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.
>
> -Hans
>
>
> On Sat, Mar 23, 2013 at 3:03 PM, Patrick May <patrick.may at mac.com> wrote:
> 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:
>
> The function DRAKMA::WITH-CHARACTER-STREAM-SEMANTICS is undefined.
> [Condition of type UNDEFINED-FUNCTION]
>
> Any idea what could be causing this? I've attached the backtrace in case that helps.
>
> Thanks,
>
> Patrick
>
> Backtrace:
> 0: ("undefined function")
> 1: (HTTP-REQUEST #<PURI:URI http://ichart.yahoo.com/table.csv?s=IBM&a=0&b=01&c=2012&d=11&e=31&f=2012&g=d&ignore=.csv>)
> 2: (GET-YAHOO-SYMBOL-DATA "IBM" "2012-01-01" "2012-12-31")
> 3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (GET-YAHOO-SYMBOL-DATA "IBM" "2012-01-01" "2012-12-31") #<NULL-LEXENV>)
> 4: (EVAL (GET-YAHOO-SYMBOL-DATA "IBM" "2012-01-01" "2012-12-31"))
> 5: ((LAMBDA () :IN SWANK:EVAL-AND-GRAB-OUTPUT))
> 6: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME evaluation request." #<CLOSURE (LAMBDA # :IN SWANK:EVAL-AND-GRAB-OUTPUT) {13BBF7E5}>)
> 7: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA # :IN SWANK:EVAL-AND-GRAB-OUTPUT) {13BBF7CD}>)
> 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>)
> 9: (EVAL (SWANK:EVAL-AND-GRAB-OUTPUT "(get-yahoo-symbol-data \"IBM\" \"2012-01-01\" \"2012-12-31\")\n"))
> 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)
> 11: (SWANK::PROCESS-REQUESTS T)
> 12: (SWANK::CALL-WITH-BINDINGS ..)
> 13: (SWANK::REPL-INPUT-STREAM-READ #<SWANK::SINGLETHREADED-CONNECTION {12971A59}> #<SB-SYS:FD-STREAM for "standard input" {11A91B11}>)
> 14: ((LAMBDA () :IN SB-GRAY:STREAM-READ-CHAR))
> 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}>)
> 16: (READ-CHAR #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T #:EOF-OBJECT #<unused argument>)
> 17: (SB-IMPL::%READ-PRESERVING-WHITESPACE #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T NIL T)
> 18: (SB-IMPL::%READ-PRESERVING-WHITESPACE #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T NIL NIL)
> 19: (READ #<SWANK-BACKEND::SLIME-INPUT-STREAM {12971BC9}> T NIL NIL)
> 20: (SWANK::SIMPLE-REPL)
> 21: ((LAMBDA () :IN SWANK::SIMPLE-SERVE-REQUESTS))
> 22: ((LAMBDA () :IN SWANK::SIMPLE-SERVE-REQUESTS))
> 23: ((LAMBDA (SWANK-BACKEND::HANDLER FUNCTION) :IN "/Users/Patrick/.emlib/slime/swank-backend.lisp") ..)
> 24: (SWANK-BACKEND::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA # :IN SWANK::SIMPLE-SERVE-REQUESTS) {12971ACD}>)
> 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}>)
> 26: (SWANK::SIMPLE-SERVE-REQUESTS #<SWANK::SINGLETHREADED-CONNECTION {12971A59}>)
> 27: (SWANK::ACCEPT-CONNECTIONS #<SB-BSD-SOCKETS:INET-SOCKET fd: -1 {129680D1}> NIL NIL)
> 28: ((LABELS SWANK::SERVE-LOOP :IN SWANK::SETUP-SERVER))
> 29: (SWANK::SETUP-SERVER 0 #<CLOSURE (LAMBDA # :IN SWANK:START-SERVER) {128E5F1D}> NIL NIL NIL)
> 30: (SB-INT:SIMPLE-EVAL-IN-LEXENV (FUNCALL (READ-FROM-STRING "swank:start-server") "/var/folders/b0/br9v722s5nq0j4m677ncd98c0000gn/T/slime.32805") #<NULL-LEXENV>)
> 31: (SB-INT:SIMPLE-EVAL-IN-LEXENV ..)
> 32: (EVAL ..)
> 33: (SB-EXT:INTERACTIVE-EVAL ..)
> 34: (SB-IMPL::REPL-FUN NIL)
> 35: ((LAMBDA () :IN SB-IMPL::TOPLEVEL-REPL))
> 36: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (LAMBDA # :IN SB-IMPL::TOPLEVEL-REPL) {13363095}>)
> 37: (SB-IMPL::TOPLEVEL-REPL NIL)
> 38: (SB-IMPL::TOPLEVEL-INIT)
> 39: ((FLET #:WITHOUT-INTERRUPTS-BODY-222031 :IN SB-EXT:SAVE-LISP-AND-DIE))
> 40: ((LABELS SB-IMPL::RESTART-LISP :IN SB-EXT:SAVE-LISP-AND-DIE))
>
>
> _______________________________________________
> drakma-devel mailing list
> drakma-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
>
> _______________________________________________
> drakma-devel mailing list
> drakma-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20130323/ac4a941c/attachment.html>
More information about the Drakma-devel
mailing list