My current situation is that I can move the software with no sqlite database to PA, fill the database, looks ok, not efficient though. Packing the app with no errors, no chache, but sqlite file, gives the import error. Zip instead of pack has the same result.
But distribution using zip/unzip without the database gives no error. In fact this will be the case in most cases in my current situation. Maybe something is wring in adding extra fields to auth. I do the following: auth.settings.extra_fields['auth_user']= [ Field('community', 'reference community', IS_IN_DB(db,'community.id', '%(com_name)s (%(id)s)'), label=T('Community')), Field('langu', 'reference langu', requires=IS_IN_DB(db,'langu.id','%(langu)s'))] auth.settings.extra_fields['auth_group']= [ Field('community', 'reference community', label=T('Community'), requires=IS_EMPTY_OR(IS_IN_DB(db,'community.id','%(com_name)s (%(id)s)'))) ] auth.define_tables(username=False, signature=False) Where this last line for the auth table creation raises the can not import copy_reg error. On Thursday, July 31, 2014 12:26:48 PM UTC+2, Leonel Câmara wrote: > > Frankly, I think it's borderline retarded to distribute python > applications without the source code. Firstly, pyc files are not portable, > secondly pyc files are trivial to reverse using something like > https://github.com/Mysterie/uncompyle2, and thirdly, your app may > actually stop working if your client upgrades Python unless you're also > bundling your own Python interpreter. > > Basically, if you don't want people to have access to your source code, > you shouldn't be using Python, or, if you really don't want to give the > source to the clients, you should be forcing your clients to use your own > hosting that you control. > > For these reasons, I don't think distributing as pycs should even be an > option. > > -- 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.