Re: [racket-users] Failed to load module in drracket

2019-08-28 Thread Stephen De Gabrielle
Hi
I’ve logged this as
https://github.com/racket/drracket/issues/302

It’s not well logged - simply a placeholder - but it does reference this
thread on gg should someone be interested.

S

On Wed, 28 Aug 2019 at 23:16, Robby Findler 
wrote:

> I think the best path forward probably involves changing DrRacket so
> that, on a case-by-case basis, people can opt-in to loading specific
> external libraries automatically. I've not yet tried to implement
> that, but if someone wants to, the right starting place is the code
> that currently disallows the access, which is here:
>
>
> https://github.com/racket/drracket/blob/5a71d4580d9799a88707eb269879da0635ae97ad/drracket/drracket/private/expanding-place.rkt#L512
>
> There would be changes required to identify that a shared library load
> was denied, convey that back to the main place where DrRacket runs,
> then add some way to offer people to allow it, which would then set a
> preference somehow and the other place could consult that preference
> to see what is allowed. Something like that.
>
> I like this idea and hope to get to it eventually, but I can't do it right
> now.
>
> Robby
>
>
> On Sat, Aug 24, 2019 at 10:12 PM Hong Yang  wrote:
> >
> > Hi Robby
> >
> > Thanks for your explain, is ther any way I can enforce to load the
> module? or let me know which code did this?
> >
> > Best reagrds
> > Walter
>
> --
> 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 racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CAL3TdOOW7w8g7db6HjWh0yCBN5WaD5Js0Px7nW%2BUt28miswU5A%40mail.gmail.com
> .
>
-- 


-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAGHj7-J-6VNG8noxaGrecv1_mX5z9zB7fAEdK-WMmoxQF%2BxNLw%40mail.gmail.com.


Re: [racket-users] Failed to load module in drracket

2019-08-28 Thread Robby Findler
I think the best path forward probably involves changing DrRacket so
that, on a case-by-case basis, people can opt-in to loading specific
external libraries automatically. I've not yet tried to implement
that, but if someone wants to, the right starting place is the code
that currently disallows the access, which is here:

https://github.com/racket/drracket/blob/5a71d4580d9799a88707eb269879da0635ae97ad/drracket/drracket/private/expanding-place.rkt#L512

There would be changes required to identify that a shared library load
was denied, convey that back to the main place where DrRacket runs,
then add some way to offer people to allow it, which would then set a
preference somehow and the other place could consult that preference
to see what is allowed. Something like that.

I like this idea and hope to get to it eventually, but I can't do it right now.

Robby


On Sat, Aug 24, 2019 at 10:12 PM Hong Yang  wrote:
>
> Hi Robby
>
> Thanks for your explain, is ther any way I can enforce to load the module? or 
> let me know which code did this?
>
> Best reagrds
> Walter

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOOW7w8g7db6HjWh0yCBN5WaD5Js0Px7nW%2BUt28miswU5A%40mail.gmail.com.


Re: [racket-users] Failed to load module in drracket

2019-08-24 Thread Hong Yang
Hi Robby

Thanks for your explain, is ther any way I can enforce to load the module?
or let me know which code did this?

Best reagrds
Walter

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAATsUuUbWUr9k%3Dny%2BbEZM5ckMWS%3D_NrBzkTJK%2B05HWO6mbADPA%40mail.gmail.com.


Re: [racket-users] Failed to load module in drracket

2019-08-24 Thread Robby Findler
DrRacket expands your program in a mode that is relatively constrained, not
allowing it certain access to the file system or allowing it to run
executables or make network connections or lots of other things. This is
because it starts running code (on your behalf) as soon as it opens the
file in the editor and it would be bad if you accidentally opened nefarious
code and it got to run right away without you looking at it.

Robby

On Sat, Aug 24, 2019 at 10:14 AM Hong Yang  wrote:

> me too of to maillist..:(
>
> Hong Yang  于 2019年8月24日周六 下午11:04写道:
>
>> Hi Robby
>>
>> The error message just apear after I type (require fluxus/fluxus) in the
>> drracket. The mentioned so is an extension of racket for fluxus.
>>
>> Thanks
>> Walter
>>
>> Robby Findler  于 2019年8月23日周五 下午7:43写道:
>>
>>> (Sorry, accidentally dropped the list CC.)
>>>
>>> On Fri, Aug 23, 2019 at 6:42 AM Robby Findler 
>>> wrote:
>>>
 Is this an error you see when you click "run" or does it appear along
 the very bottom of the window on its own?

 Robby

 On Fri, Aug 23, 2019 at 5:23 AM Walter Yang  wrote:

> I'm trying to load a module in drracket:
>
> #lang racket
>
> (require fluxus/fluxus)
>
> I got the following error message:
>
>   default-load-extension-handler: forbidden (execute) access to
> /usr/share/racket/collects/fluxus/compiled/native/x86_64-linux/3m/fluxus-engine_ss.so
>
> But it's OK load in command line racket:
>
> $ racket
> Welcome to Racket v7.4.
> > (require fluxus/fluxus)
> >
>
> Any comments?
>
> Thanks
> Walter
>
> --
> 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 racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/a76162ca-ee89-4d62-be51-e6a81d6adfd3%40googlegroups.com
> 
> .
>
 --
> 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 racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CAATsUuUVM91pMAOM9a9n3WJ4NZb0JjMeFk_CwrbyLBNtfL7gUg%40mail.gmail.com
> 
> .
>

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdONovg0inJvDG-1x-%2BObTm%3DwkFAsiNXm0m-pWn3TUCWoGQ%40mail.gmail.com.


Re: [racket-users] Failed to load module in drracket

2019-08-24 Thread Hong Yang
me too of to maillist..:(

Hong Yang  于 2019年8月24日周六 下午11:04写道:

> Hi Robby
>
> The error message just apear after I type (require fluxus/fluxus) in the
> drracket. The mentioned so is an extension of racket for fluxus.
>
> Thanks
> Walter
>
> Robby Findler  于 2019年8月23日周五 下午7:43写道:
>
>> (Sorry, accidentally dropped the list CC.)
>>
>> On Fri, Aug 23, 2019 at 6:42 AM Robby Findler 
>> wrote:
>>
>>> Is this an error you see when you click "run" or does it appear along
>>> the very bottom of the window on its own?
>>>
>>> Robby
>>>
>>> On Fri, Aug 23, 2019 at 5:23 AM Walter Yang  wrote:
>>>
 I'm trying to load a module in drracket:

 #lang racket

 (require fluxus/fluxus)

 I got the following error message:

   default-load-extension-handler: forbidden (execute) access to
 /usr/share/racket/collects/fluxus/compiled/native/x86_64-linux/3m/fluxus-engine_ss.so

 But it's OK load in command line racket:

 $ racket
 Welcome to Racket v7.4.
 > (require fluxus/fluxus)
 >

 Any comments?

 Thanks
 Walter

 --
 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 racket-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/racket-users/a76162ca-ee89-4d62-be51-e6a81d6adfd3%40googlegroups.com
 
 .

>>>

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAATsUuUVM91pMAOM9a9n3WJ4NZb0JjMeFk_CwrbyLBNtfL7gUg%40mail.gmail.com.


Re: [racket-users] Failed to load module in drracket

2019-08-23 Thread Robby Findler
(Sorry, accidentally dropped the list CC.)

On Fri, Aug 23, 2019 at 6:42 AM Robby Findler 
wrote:

> Is this an error you see when you click "run" or does it appear along the
> very bottom of the window on its own?
>
> Robby
>
> On Fri, Aug 23, 2019 at 5:23 AM Walter Yang  wrote:
>
>> I'm trying to load a module in drracket:
>>
>> #lang racket
>>
>> (require fluxus/fluxus)
>>
>> I got the following error message:
>>
>>   default-load-extension-handler: forbidden (execute) access to
>> /usr/share/racket/collects/fluxus/compiled/native/x86_64-linux/3m/fluxus-engine_ss.so
>>
>> But it's OK load in command line racket:
>>
>> $ racket
>> Welcome to Racket v7.4.
>> > (require fluxus/fluxus)
>> >
>>
>> Any comments?
>>
>> Thanks
>> Walter
>>
>> --
>> 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 racket-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/racket-users/a76162ca-ee89-4d62-be51-e6a81d6adfd3%40googlegroups.com
>> 
>> .
>>
>

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOOiTp0t_2cTmhNF%3DqSTLK%3Dz%3DP7LVHyGvtymwnp01hkB2A%40mail.gmail.com.


[racket-users] Failed to load module in drracket

2019-08-23 Thread Walter Yang
I'm trying to load a module in drracket:

#lang racket

(require fluxus/fluxus)

I got the following error message:

  default-load-extension-handler: forbidden (execute) access to 
/usr/share/racket/collects/fluxus/compiled/native/x86_64-linux/3m/fluxus-engine_ss.so

But it's OK load in command line racket:

$ racket 
Welcome to Racket v7.4.
> (require fluxus/fluxus)
> 

Any comments?

Thanks
Walter

-- 
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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/a76162ca-ee89-4d62-be51-e6a81d6adfd3%40googlegroups.com.