norvig / paip-lisp

Lisp code for the textbook "Paradigms of Artificial Intelligence Programming"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lock on package COMMON-LISP violated on SBCL when trying to run auxfns.lisp

zhouxiz9 opened this issue · comments

The error message:

Unhandled SYMBOL-PACKAGE-LOCKED-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING {10005605B3}>:
  Lock on package COMMON-LISP violated when proclaiming SYMBOL as a function
  while in package COMMON-LISP-USER.

Environment:
Compiler: SBCL 1.4.5
Operating System: OS X 10.11.6

Current workaround:

#+sbcl
(dolist (pkg '(common-lisp common-lisp-user))
    (sb-ext:unlock-package pkg))

Add above code to the eval-when at the beginning of the file.

@mar444 would you confirm it fixed?

@snmsts It's fixed!