Re: [web2py] Re: Apache(Debian) unsupported pickle protocol: 3
It Worked...gotta clear the databases directory. Many Thanks...great work you all doing here El lun., 18 de feb. de 2019 a la(s) 21:20, Massimo Di Pierro ( massimo.dipie...@gmail.com) escribió: > Can you try delete your sessions? You have have pre-existing sessions > created with a different protocol. > > On Monday, 18 February 2019 10:47:20 UTC-8, Alain Márquez Pérez wrote: >> >> hello everyone dont know if this is a bug, deployed this app in >> Apache(Debian), but developing in Rocket (Windows) and works fine >> >> Ticket ID >> >> 192.168.10.20.2019-02-15.14-43-36.8f3f2563-ef80-413b-99bc-a80d3bef76b0 >> unsupported pickle protocol: 3 >> Versión >> web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02 >> Python Python 2.7.9: /usr/bin/python (prefix: /usr) >> Rastreo >> >> 1. >> 2. >> 3. >> 4. >> 5. >> 6. >> 7. >> 8. >> 9. >> 10. >> 11. >> 12. >> 13. >> 14. >> 15. >> 16. >> 17. >> 18. >> 19. >> 20. >> 21. >> 22. >> 23. >> 24. >> 25. >> >> >> >> Traceback (most recent call last): >> File "/home/www-data/web2py/gluon/restricted.py", line 219, in >> restricted >> exec(ccode, environment) >> File >> "/home/www-data/web2py/applications/Insurfact_Agents/models/db.py", line >> 96, in >> auth.define_tables(username=False, signature=False) >> File "/home/www-data/web2py/gluon/tools.py", line 2091, in define_tables >> super(Auth, self).define_tables(username, signature, migrate, >> fake_migrate)._table_signature_list >> File "/home/www-data/web2py/gluon/authapi.py", line 350, in >> define_tables >> format='%(first_name)s %(last_name)s (%(id)s)')) >> File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line >> 590, in define_table >> table = self.lazy_define_table(tablename, *fields, **kwargs) >> File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line >> 624, in lazy_define_table >> polymodel=polymodel) >> File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", >> line 798, in create_table >> return self.migrator.create_table(*args, **kwargs) >> File "/home/www-data/web2py/gluon/packages/dal/pydal/migrator.py", line >> 296, in create_table >> sql_fields_old = pickle.load(tfile) >> File "/usr/lib/python2.7/pickle.py", line 1378, in load >> return Unpickler(file).load() >> File "/usr/lib/python2.7/pickle.py", line 858, in load >> dispatch[key](self) >> File "/usr/lib/python2.7/pickle.py", line 886, in load_proto >> raise ValueError, "unsupported pickle protocol: %d" % proto >> ValueError: unsupported pickle protocol: 3 >> >> >> but tried to deploy an app in apache, got this error >> as you see the lines in model.db is related to the creations of Auth >> objects, >> i would apprecieate any help... >> Thanks in advance >> > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/iYpNBEdmZIE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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.
[web2py] Apache(Debian) unsupported pickle protocol: 3
hello everyone dont know if this is a bug, deployed this app in Apache(Debian), but developing in Rocket (Windows) and works fine Ticket ID 192.168.10.20.2019-02-15.14-43-36.8f3f2563-ef80-413b-99bc-a80d3bef76b0 unsupported pickle protocol: 3 Versión web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02 Python Python 2.7.9: /usr/bin/python (prefix: /usr) Rastreo 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/home/www-data/web2py/applications/Insurfact_Agents/models/db.py", line 96, in auth.define_tables(username=False, signature=False) File "/home/www-data/web2py/gluon/tools.py", line 2091, in define_tables super(Auth, self).define_tables(username, signature, migrate, fake_migrate)._table_signature_list File "/home/www-data/web2py/gluon/authapi.py", line 350, in define_tables format='%(first_name)s %(last_name)s (%(id)s)')) File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 590, in define_table table = self.lazy_define_table(tablename, *fields, **kwargs) File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 624, in lazy_define_table polymodel=polymodel) File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 798, in create_table return self.migrator.create_table(*args, **kwargs) File "/home/www-data/web2py/gluon/packages/dal/pydal/migrator.py", line 296, in create_table sql_fields_old = pickle.load(tfile) File "/usr/lib/python2.7/pickle.py", line 1378, in load return Unpickler(file).load() File "/usr/lib/python2.7/pickle.py", line 858, in load dispatch[key](self) File "/usr/lib/python2.7/pickle.py", line 886, in load_proto raise ValueError, "unsupported pickle protocol: %d" % proto ValueError: unsupported pickle protocol: 3 but tried to deploy an app in apache, got this error as you see the lines in model.db is related to the creations of Auth objects, i would apprecieate any help... Thanks in advance -- 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.
[web2py] SQLFORM grid customization HELPPP
Hello everyone, the SQLFORM.grid customization is very wide(i think is using the ui = ), i need some help with the edit,view Views, by the way im not using the native web2py bootstrap, im using mdbootstrap, i know my problem is related to this, but cant find any info about the grid customization in the views this is my grid... grid = SQLFORM.grid(db1.sometable, _class="table table-striped", create=False, searchable=False, csv=False, formname="text-center border border-light p-5", user_signature=False, ui=dict(widget='', header='', content='', default='', cornerall='', cornertop='', cornerbottom='', button='btn btn-info btn-dark-green p-2 waves-effect waves-light', buttontext='buttontext button', buttonadd='icon plus icon-plus glyphicon glyphicon-plus', buttonback='icon leftarrow icon-arrow-left glyphicon glyphicon-arrow-left', buttonexport='icon downarrow icon-download glyphicon glyphicon-download', buttondelete='fa fa-remove mt-0', buttonedit='fa fa-pencil mt-0', buttontable='icon rightarrow icon-arrow-right glyphicon glyphicon-arrow-right', buttonview='fa fa-info-circle mt-0', ), formstyle='', ) thanks in advance... waiting for your kind help -- 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.