Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
restricted mode???
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robin Becker  
View profile  
 More options Nov 4, 9:49 pm
Newsgroups: comp.lang.python
From: Robin Becker <ro...@reportlab.com>
Date: Wed, 04 Nov 2009 10:49:00 +0000
Subject: restricted mode???
A reportlab user running via mod_python+django (Python 2.5.2 and mod_python
3.3.1) reports a strange intermittent error involving failure to read files
which are known to be present.

After some debugging efforts we got this clearer error message

      File "/usr/lib/python2.5/site-packages/reportlab/lib/utils.py", line 810,
in dump
         f = open(self.fn,'wb')

     IOError: file() constructor not accessible in restricted mode

this is not the  original error, but part of our efforts to debug; however, the
original error was during an attempt to read a file so presumably open was not
available there.

Googling the error indicates something to do with restricted
environments/mod_python+threads.

I thought that restricted mode died ages ago.

Any ideas what could be causing this?
--
Robin Becker


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin v. Löwis  
View profile  
 More options Nov 5, 9:47 am
Newsgroups: comp.lang.python
From: "Martin v. Löwis" <mar...@v.loewis.de>
Date: Wed, 04 Nov 2009 23:47:55 +0100
Local: Thurs, Nov 5 2009 9:47 am
Subject: Re: restricted mode???

> I thought that restricted mode died ages ago.

> Any ideas what could be causing this?

Restricted mode is still available, and activated whenever
a frame's builtins directory is different from the interpreter's;
see PyFrame_IsRestricted.

Regards,
Martin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Becker  
View profile  
 More options Nov 5, 8:50 pm
Newsgroups: gmane.comp.python.general, comp.lang.python
From: Robin Becker <ro...@reportlab.com>
Date: Thu, 05 Nov 2009 09:50:42 +0000
Local: Thurs, Nov 5 2009 8:50 pm
Subject: Re: restricted mode???
Martin v. Löwis wrote:
>> I thought that restricted mode died ages ago.

>> Any ideas what could be causing this?

> Restricted mode is still available, and activated whenever
> a frame's builtins directory is different from the interpreter's;
> see PyFrame_IsRestricted.

> Regards,
> Martin

thanks very much, I saw some references to mod_python & threading related to
this, but nothing very obvious.
--
Robin Becker

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Becker  
View profile  
 More options Nov 5, 8:50 pm
Newsgroups: comp.lang.python
From: Robin Becker <ro...@reportlab.com>
Date: Thu, 05 Nov 2009 09:50:42 +0000
Local: Thurs, Nov 5 2009 8:50 pm
Subject: Re: restricted mode???
Martin v. Löwis wrote:
>> I thought that restricted mode died ages ago.

>> Any ideas what could be causing this?

> Restricted mode is still available, and activated whenever
> a frame's builtins directory is different from the interpreter's;
> see PyFrame_IsRestricted.

> Regards,
> Martin

thanks very much, I saw some references to mod_python & threading related to
this, but nothing very obvious.
--
Robin Becker

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google