insecure string pickle

987 views
Skip to first unread message

Dmitry Ermolaev

unread,
Feb 2, 2015, 11:43:41 PM2/2/15
to web...@googlegroups.com

Error ticket for "admin"

Ticket ID

127.0.0.1.2015-02-03.07-40-32.4dc31e25-5b8c-4c78-b525-2a58b4ff7015

<type 'exceptions.ValueError'> insecure string pickle

Версия

web2py™Version 2.9.12-stable+timestamp.2015.01.17.06.11.03
PythonPython 2.7.6: C:\Python27\python.exe (prefix: C:\Python27)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
Traceback (most recent call last):
File "C:\web2py-m\gluon\restricted.py", line 224, in restricted
exec ccode in environment
File "C:/web2py-m/applications/admin\compiled\controllers.default.errors.py", line 1945, in <module>
File "C:\web2py-m\gluon\globals.py", line 393, in <lambda>
self._caller = lambda f: f()
File "C:/web2py-m/applications/admin\compiled\controllers.default.errors.py", line 1554, in errors
File "C:\Python27\lib\pickle.py", line 1378, in load
return Unpickler(file).load()
File "C:\Python27\lib\pickle.py", line 858, in load
dispatch[key](self)
File "C:\Python27\lib\pickle.py", line 966, in load_string
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

Error snapshot help

<type 'exceptions.ValueError'>(insecure string pickle)

inspect attributes

Frames

In file: C:\web2py-m\applications\admin\compiled\controllers.default.errors.pyc

1.
<code object <module> at 072EADA0, file "C:/web2py-m/applications/admin\compiled\controllers.default.errors.py", line 3>

Leonel Câmara

unread,
Feb 3, 2015, 5:59:16 AM2/3/15
to web...@googlegroups.com
Did you compile the admin app on the same computer this is running in now?

Wabbajack

unread,
Sep 6, 2017, 12:56:37 AM9/6/17
to web2py-users
Hi I also go this Error...

I am running Win7 computer
I used web2py 2.9.11 when i created an app before
with database and etc.

Now i have new applications running 2.14.6 with no problem also...

But when i copied the old application created on my previous web2py<2.9.11>
into web2py<2.14.6> to pack it all up in one running web2py

then i got this error specific to applications created on 2.9.11

I thought it is back compatible with the newer releases...

Thanks,
Jak

Kiran Subbaraman

unread,
Sep 6, 2017, 3:11:36 AM9/6/17
to web...@googlegroups.com
You should clear out the following files - sessions / errors / cache content - from your 2.9.11 based application
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/
--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wabbajack

unread,
Sep 6, 2017, 3:23:50 AM9/6/17
to web2py-users
Hi Kiran,

Yes the folders cache, sessions, and error have no file inside...
Is there any other way to clear this folders?
I just manually delete all files in each folder..
and also i have tried restarting the web2py itself

Still the error exist

Thanks,
Jak

Kiran Subbaraman

unread,
Sep 6, 2017, 3:37:09 AM9/6/17
to web...@googlegroups.com
Didn't notice it earlier, but the error seems to have been raised from a 2.9.12 web2py system. So, just to confirm, you have copied your 2.9.11 app, into a 2.14.6 web2py environment. And trying to run it from in there.
Also, looks like you had pre-compiled the 2.9.11 app. It is a good idea to remove all the *.pyc files from in there. And then copy it into your 2.14.6 environment.

If you were to use the admin interface, then there is a "Clean up App" ( I don't remember the specific name) option there, which you could use, before you start running the app.
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/

Wabbajack

unread,
Sep 6, 2017, 3:56:57 AM9/6/17
to web2py-users
Hi Kiran,

Yes exactly i have copied a 2.9.11 app into a 2.14.6 web2py environment and try to run it...
Also right now i tried removing *.pyc files... anyways i dont have much .pyc file... for now i have only deleted __init__.pyc  only from web2py files

Also i have Clean on the admin interface...
Sstill having the issue...

Thanks,
Jak

Kiran Subbaraman

unread,
Sep 6, 2017, 4:01:57 AM9/6/17
to web...@googlegroups.com
Hello Jak,
Not sure what could be causing the issue, then. Will get back to you if I have any useful suggestions.
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/

Dave S

unread,
Sep 6, 2017, 1:17:41 PM9/6/17
to web2py-users


On Wednesday, September 6, 2017 at 12:23:50 AM UTC-7, Wabbajack wrote:
Hi Kiran,

Yes the folders cache, sessions, and error have no file inside...
Is there any other way to clear this folders?
I just manually delete all files in each folder..
and also i have tried restarting the web2py itself

Still the error exist

Thanks,
Jak

You probably noticed that the sessions directory has subfolders, and you made sure these are empty, as well.
(I would do a rm -r myapp/sessions ... or use a gui to do the same, such as the Files application on Linux,
or my favorite ... Beyond Compare.)

/dps

Wabbajack

unread,
Sep 8, 2017, 3:01:51 AM9/8/17
to web2py-users
Hi Dave,

I have tried cleaning it in web2py web interface and
also i have checked using os gui that all files ,folders or subfolders are erased...

For now session,errors and cache folders are all clean as suggested... but still error exist.. :(

Thanks,
Jak

Leonel Câmara

unread,
Sep 8, 2017, 6:24:05 AM9/8/17
to web2py-users
Your problem is caused by the table files. Do a fake migrate.

Mirek Zvolský

unread,
Dec 11, 2017, 5:42:33 AM12/11/17
to web2py-users
I just confirm that this works.
1. (Backup and) delele database/*.table files
2. Into db=DAL(..) command add db=DAL(..., fake_migrate_all=True), then run once: app/appadmin/ or some other page
3. Remove fake_migrate_all=..



Dne pátek 8. září 2017 12:24:05 UTC+2 Leonel Câmara napsal(a):
Reply all
Reply to author
Forward
0 new messages