This is a shortcoming in the current 2htdp/image. It is on my list. Robby
On Friday, October 22, 2010, Todd O'Bryan <toddobr...@gmail.com> wrote: > I should mention, this is using the latest nightly build and I got the > error when I did > > (read-assignment-file "/path/to/valid/racket/file.rkt") > > Todd > > On Fri, Oct 22, 2010 at 10:57 AM, Todd O'Bryan <toddobr...@gmail.com> wrote: >> I'm trying to read a student program (which might include images or >> not) as text, just so I can look at it. >> >> I tried this: >> >> #lang racket >> (require wxme) >> >> (define/contract (read-assignment-file path) >> (-> (or/c string? path-string?) bytes?) >> (let* ([the-path (if (path-string? path) >> path >> (string->path path))] >> [file-port (open-input-file the-path)] >> [port (if (is-wxme-stream? file-port) >> (wxme-port->text-port file-port #t) >> file-port)] >> [contents (port->string port)]) >> contents)) >> >> And got this error: >> >> read-bytes: cannot load snip-class reader: #"(lib \"image-core.ss\" >> \"mrlib\")" >> >> Am I close to doing the right thing? Do I need to require something else? >> >> Todd >> > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users