Traceback (most recent call last):
File "C:\eclipse\plugins
\org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py", line 1145,
in <module>
debugger.run(setup['file'], None, None)
File "C:\eclipse\plugins
\org.python.pydev.debug_1.6.3.2010100513\pysrc\pydevd.py", line 916,
in run
execfile(file, globals, locals) #execute the script
File "C:\web2py\web2py.py", line 23, in <module>
gluon.widget.start(cron=True)
File "C:\web2py\gluon\widget.py", line 785, in start
newcron.hardcron(options.folder).start()
File "C:\web2py\gluon\newcron.py", line 50, in __init__
crondance(self.path, 'hard', startup=True)
File "C:\web2py\gluon\newcron.py", line 234, in crondance
cronmaster = token.acquire(startup=startup)
File "C:\web2py\gluon\newcron.py", line 118, in acquire
portalocker.unlock(self.master)
File "C:\web2py\gluon\portalocker.py", line 78, in unlock
msvcrt.locking(file.fileno(), mode,
os.path.getsize(file.filename))
AttributeError: 'file' object has no attribute 'filename'
On Nov 25, 9:31 am, mdipierro <[email protected]> wrote:
> can you please try again.
>
> On Nov 24, 11:04 pm, Anthony <[email protected]> wrote:
>
> > Is the test supposed to be done without the win32 extensions installed
> > (I have them installed)?
>
> > Anyway, I tried the test. Before updating trunk, it behaves as you say
> > -- I opened two windows in quick succession -- the first took 10
> > seconds to load, and then the second took an additional 10 seconds to
> > load after the first one finished.
>
> > I then updated trunk, and now can't start web2py -- getting the
> > following traceback:
>
> > Traceback (most recent call last):
> > File "web2py.py", line 23, in <module> gluon.widget.start(cron=True)
> > File "C:\Users\Anthony\Programming\temp\gluon\widget.py", line 785,
> > in start newcron.hardcron(options.folder).start()
> > File "C:\Users\Anthony\Programming\temp\gluon\newcron.py", line 50,
> > in __init__ crondance(self.path, 'hard', startup=True)
> > File "C:\Users\Anthony\Programming\temp\gluon\newcron.py", line 234,
> > in crondance cronmaster = token.acquire(startup=startup)
> > File "C:\Users\Anthony\Programming\temp\gluon\newcron.py", line 118,
> > in acquire portalocker.unlock(self.master)
> > File "C:\Users\Anthony\Programming\temp\gluon\portalocker.py", line
> > 76, in unlock file.fseek(0)
> > AttributeError: 'file' object has no attribute 'fseek'
>
> > Anthony
>
> > On Nov 24, 11:26 pm, mdipierro <[email protected]> wrote:
>
> > > I made a change that on windows will provide locking without need for
> > > MH win32 extensions.
>
> > > Can you help me test it.
>
> > > Make a log action like
>
> > > def index():
> > > import time
> > > time.sleep(10)
> > > return dict()
>
> > > call it twice (on windows) from different browser windows. Will the
> > > second window lock until the former is done? should be locked because
> > > session is locked with file-locking.
>
> > > test before upgrade to trunk and after.
>
> > > Massimo
>
>