Thank you for the answer, I did hope for an other answer but i'll go in the 
Google mode.
i'll keep you informed about the progress.

On Wednesday, July 23, 2014 9:45:45 PM UTC+2, Niphlod wrote:
>
> I seem to be the only "advocate" for ditching apache always and before 
> anything else (especially before going into production, where a 
> not-so-well-tuned apache (most-likely you're using everybody's else 
> defaults) still suffers a Slowloris attack). 
> Those kind of headaches are non-existent with other solutions (often more 
> performant without particular tuning). 
> Check with a simple google search for "mod_wsgi recompile" to see how many 
> people have been in your situation (mismatch between what mod_wsgi has been 
> originally compiled vs the current running python version) and their 
> solutions for various distributions. It's a pretty well documented "issue" 
> with a large number of cases.
>
> On Wednesday, July 23, 2014 1:07:38 PM UTC+2, Richard wrote:
>>
>> The issue does not occur on my local development machine. 
>> I did an upgrade on the remote host where the issue occurs using the 
>> web2py update feature. Then I upgraded from Python 2.6 to 2.7.8. All apps 
>> works fine but not the one where I add features to auth.
>>
>> How should resolve this in a manner that I have a solid basis for 
>> production? We are in a pre-production phase.
>>
>> On Wednesday, July 23, 2014 12:30:11 PM UTC+2, Niphlod wrote:
>>>
>>> I'd vote for the usual issue with apache and mod_wsgi not compiled 
>>> against the latest interpreter....
>>>
>>> On Wednesday, July 23, 2014 11:40:14 AM UTC+2, Richard wrote:
>>>>
>>>> Massimo,
>>>>
>>>> importing copy_reg from the console works fine :)
>>>>
>>>> Richard
>>>>
>>>> On Wednesday, July 23, 2014 11:20:06 AM UTC+2, Massimo Di Pierro wrote:
>>>>>
>>>>> I understand but can you open a web2py shell. from the console type:
>>>>>
>>>>>
>>>>> $ cd web2py
>>>>> $ python web2py.py -S welcome -P
>>>>> >>> import copy_reg
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Wednesday, 23 July 2014 04:03:48 UTC-5, Richard wrote:
>>>>>>
>>>>>> When I add the import copy_reg in db.py I get the error:
>>>>>>
>>>>>> <type 'exceptions.ImportError'> No module named copy_reg
>>>>>>
>>>>>> In the python/Python-2.7.8/Lib directory are 3 copy_reg files:
>>>>>> - copy_reg.py
>>>>>> - copy_reg.pyc
>>>>>> - copy_reg.pyo
>>>>>>
>>>>>> Maybe of any relevance: I run a shared Apache server with the 
>>>>>> following first line in cgihandler.py :  
>>>>>> #!/home4/mamplcom/python/Python-2.7.8/python
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tuesday, July 22, 2014 1:21:36 PM UTC+2, Massimo Di Pierro wrote:
>>>>>>>
>>>>>>> Copy reg is a python module. Can you import it from the normal 
>>>>>>> python shell?
>>>>>>>
>>>>>>> On Tuesday, 22 July 2014 06:05:06 UTC-5, Richard wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I have an issue with adjusting the auth tables resulting in a 
>>>>>>>> custom import and an error that copy_reg can not be imported.
>>>>>>>>
>>>>>>>> The error trace is:
>>>>>>>>
>>>>>>>> Traceback (most recent call last):
>>>>>>>>   File "/home4/mamplcom/public_html/cgi-bin/gluon/restricted.py", line 
>>>>>>>> 220, in restricted
>>>>>>>>     exec ccode in environment
>>>>>>>>   File 
>>>>>>>> "/home4/mamplcom/public_html/cgi-bin/applications/im/models/db.py" 
>>>>>>>> <https://www.mampl.com/admin/default/edit/im/models/db.py>, line 74, 
>>>>>>>> in <module>
>>>>>>>>     auth.define_tables(username=False, signature=False)
>>>>>>>>   File "/home4/mamplcom/public_html/cgi-bin/gluon/tools.py", line 
>>>>>>>> 1784, in define_tables
>>>>>>>>     format='%(first_name)s %(last_name)s (%(id)s)'))
>>>>>>>>   File "/home4/mamplcom/public_html/cgi-bin/gluon/dal.py", line 8226, 
>>>>>>>> in define_table
>>>>>>>>     table = self.lazy_define_table(tablename,*fields,**args)
>>>>>>>>   File "/home4/mamplcom/public_html/cgi-bin/gluon/dal.py", line 8263, 
>>>>>>>> in lazy_define_table
>>>>>>>>     polymodel=polymodel)
>>>>>>>>   File "/home4/mamplcom/public_html/cgi-bin/gluon/dal.py", line 1125, 
>>>>>>>> in create_table
>>>>>>>>     sql_fields_old = pickle.load(tfile)
>>>>>>>>   File "/home4/mamplcom/public_html/cgi-bin/gluon/custom_import.py", 
>>>>>>>> line 92, in custom_importer
>>>>>>>>     return base_importer(pname, globals, locals, fromlist, level)
>>>>>>>> ImportError: No module named copy_reg
>>>>>>>>
>>>>>>>> I can import copy_reg from the python prompt and adding the import 
>>>>>>>> copy reg from Dal.py (suggested in a thread by Massimo) has no effect.
>>>>>>>>
>>>>>>>> I use Python 2.7.8.
>>>>>>>>
>>>>>>>> Any clu would be helpfull.
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>
>>>>>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to