Thank you Matthew, that did resolve the problem, though I was unable to 
ever determine why I could not display a plot from plot/pict. It seems that 
it was somehow related to (sandbox-output 'string) which could never be 
coerced display a bitmap, pict, etc. Ultimately I just used 
(make-base-eval) instead and skipped the sandbox.

Deren

On Sunday, August 16, 2020 at 8:06:49 AM UTC-4 Matthew Flatt wrote:

> Sandboxed filesystem and unsafety access is too strict for many
> purposes. For documentation, I recommend using a trusted sandbox by
> wrapping the sanebox creation with
> `call-with-trusted-sandbox-configuration`.
>
> Matthew
>
> At Sun, 16 Aug 2020 00:45:46 -0700 (PDT), Deren Dohoda wrote:
> > Hi Racketeers,
> > 
> > I'm going in absolute circles trying to understand what I might be doing 
> > wrong. I can use the command line scribble to generate html, which works 
> > fine except a problem showing #<pict> instead of an actual plot/pict 
> image. 
> > And for that matter the package installs fine using a local install. But 
> > trying to run the scribble file in DrRacket always gives me errors like 
> > "cannot read racket-prefs.rkt" or other errors like "cannot reference an 
> > identifier without a definition" and sometimes it will give me errors 
> like 
> > I have used (protect-out ...) somewhere but I am definitely not as I 
> didn't 
> > even learn about this kind of provide until I saw this error.
> > 
> > Does anyone using Windows have experience getting rid of this message or 
> > have an idea what I might be doing wrong? I have a feeling that this 
> > message isn't actually the problem and it's something to do with sandbox 
> > somehow.
> > 
> > @(define this-eval (parameterize ((sandbox-output 'string)
> > (sandbox-error-output 'string)
> > (sandbox-memory-limit 100))
> > (make-evaluator 'racket/base #:requires '("main.rkt" 
> > "fit.rkt" plot/pict)
> > (print-as-expression #f) 
> > )))
> > 
> > Thanks,
> > Deren
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/6852ab0a-ceb4-4799-b842-657582755747n%40googlegroups.com.

Reply via email to