So, I have fixed few bugs in admin/default/design and have created a pull request, and finally I know the real error.
It has nothing with Web2py, but with tarfile.py. No idea why but one file inside plugin archive has date 01.01.1970 and this made problems for tarfile.py, as mentioned here: http://www.gossamer-threads.com/lists/python/bugs/986466 <type 'exceptions.OverflowError'> Python int too large to convert to C long Traceback (most recent call last): File "/home/mirek/mz/web2py_related/web2py_git/web2py/gluon/restricted.py", line 220, in restricted exec(ccode, environment) File "/home/mirek/mz/web2py_related/web2py_git/web2py/applications/admin/controllers/default.py", line 2002, in <module> File "/home/mirek/mz/web2py_related/web2py_git/web2py/gluon/globals.py", line 405, in <lambda> self._caller = lambda f: f() File "/home/mirek/mz/web2py_related/web2py_git/web2py/applications/admin/controllers/default.py", line 1085, in design request, filename): File "/home/mirek/mz/web2py_related/web2py_git/web2py/gluon/admin.py", line 313, in plugin_install w2p_unpack_plugin(upname, path) File "/home/mirek/mz/web2py_related/web2py_git/web2py/gluon/fileutils.py", line 331, in w2p_unpack_plugin w2p_unpack(filename, path, delete_tar) File "/home/mirek/mz/web2py_related/web2py_git/web2py/gluon/fileutils.py", line 294, in w2p_unpack untar(tarname, path) File "/home/mirek/mz/web2py_related/web2py_git/web2py/gluon/fileutils.py", line 237, in untar _extractall(file, dir) File "/home/mirek/mz/web2py_related/web2py_git/web2py/gluon/fileutils.py", line 212, in _extractall ret = tar.extractall(path, members) File "/usr/lib/python2.7/tarfile.py", line 2078, in extractall self.extract(tarinfo, path) File "/usr/lib/python2.7/tarfile.py", line 2115, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name)) File "/usr/lib/python2.7/tarfile.py", line 2208, in _extract_member self.utime(tarinfo, targetpath) File "/usr/lib/python2.7/tarfile.py", line 2329, in utime os.utime(targetpath, (tarinfo.mtime, tarinfo.mtime)) OverflowError: Python int too large to convert to C long Dne úterý 9. srpna 2016 14:40:03 UTC+2 Mirek Zvolský napsal(a): > > Yes, .w2p. > It is my plugin, I have packed it in one web2py app using admin (and in > ark I see all ~5 files inside), > In second app I am trying to install/unpack it. > > Plugin is in attachment. > > I have renamed all files to managegroups (without underscore) too, to see > if problem isn't the 2nd underscore character. But result is same: Just the > file models/plugin_manage[_]groups.py will unpack and then it fails. > > PS: > I have tested same with plugin.ckeditor.w2p - works well. > > > > > > > Dne sobota 6. srpna 2016 9:29:56 UTC+2 Massimo Di Pierro napsal(a): >> >> Why are you uploading it as a plugin? Is it *.plugin.*.w2p? Do you know >> it is a plugin and not an app? >> If it is an app you need to upload it from the form on the right of the >> main site page. >> >> On Thursday, 4 August 2016 06:23:35 UTC-5, Mirek Zvolský wrote: >>> >>> I have the .w2p file on disk. >>> I choose it in Admin interface, edit application, plugins, upload. >>> >>> Then only first file from the plugin is properly unpacked, >>> other files aren't. >>> Then the error will flash: "App does not exist or you are not authorized" >>> >>> I am trying to debug it and see that >>> redirect to admin/default/get_app is called twice: >>> - first with parameter = application name --> no problem >>> - second call is without parameter - which causes Error message and >>> redirect to admin main page. >>> >>> Is this a bug? >>> Or what can I do better? >>> >>> I have tested it with 2.14.5 and with today trunk versions. >>> Behavior is the same :( >>> >>> -- 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.