[web2py] Re: long load time for scipy package
I believe the session problem is solved. I cannot completely exclude problems with retrieving sessions created with early/different web2py versions. On Thursday, 1 November 2012 12:03:19 UTC-5, lucas wrote: > > On Thursday, November 1, 2012 8:43:12 AM UTC-4, Massimo Di Pierro wrote: >> >> Unless you enabled track_changes(True) this should not be the case. The >> package should only be loaded once. Where did you put the package? >> > > hey massimo, > > i didn't have track_changes(True) anywhere, but your last question got me > thinking because i had the scipy package and code embedded within the > default/main controller. so i created a new module and put that import and > respective code under that new module. then i put a new import in the > default/main module and i think it is better. i will have to test it more > rigorously. if i have problems, i will let you know. > > btw, did you fix that pickle.load problem that threw back the > unrecoverable error when my users were trying to login because it seemed to > have disappeared when i upgraded web2py to 2.2.1? if so that is great that > was totally haunting me so badly. now that is real professor talk. > > thanx massimo, have a great weekend. lucas > --
[web2py] Re: long load time for scipy package
On Thursday, November 1, 2012 8:43:12 AM UTC-4, Massimo Di Pierro wrote: > > Unless you enabled track_changes(True) this should not be the case. The > package should only be loaded once. Where did you put the package? > hey massimo, i didn't have track_changes(True) anywhere, but your last question got me thinking because i had the scipy package and code embedded within the default/main controller. so i created a new module and put that import and respective code under that new module. then i put a new import in the default/main module and i think it is better. i will have to test it more rigorously. if i have problems, i will let you know. btw, did you fix that pickle.load problem that threw back the unrecoverable error when my users were trying to login because it seemed to have disappeared when i upgraded web2py to 2.2.1? if so that is great that was totally haunting me so badly. now that is real professor talk. thanx massimo, have a great weekend. lucas --
[web2py] Re: long load time for scipy package
Unless you enabled track_changes(True) this should not be the case. The package should only be loaded once. Where did you put the package? On Thursday, 1 November 2012 06:32:28 UTC-5, lucas wrote: > > hello one and all, > > i am trying to load the scipy package into one of my apps under web2py > 2.2.1 on centos 6.3. when i load it, like via "from scipy import > optimize", under pure python command line, it loads very quickly. however, > when i try to load it under a web2py controller it takes a huge amount of > time. web2py seems to need to load a new instance with each session > because when a new user tries to access the site, it takes that long again, > even after web2py has been running and the library is loaded. most times > something times out before it is loaded and the whole thing comes crashing > down. however, once it is loaded it all runs very smooth and very fast, > even the scipy functionality. > > any suggestions to make scipy load much quicker under web2py? > > thanx in advance, lucas > --