Hi Massimo,
Here is the error I got this time:
C:\Users\Andre\Documents\web2py>web2py
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.89.5 (2010-11-21 16:03:13)
Database drivers available: SQLite3, PostgreSQL
Starting hardcron...
Traceback (most recent call last):
File "C:\Users\Andre\Documents\web2py\web2py.py", line 23, in
<module>
gluon.widget.start(cron=True)
File "C:\Users\Andre\Documents\web2py\gluon\widget.py", line 785, in
start
newcron.hardcron(options.folder).start()
File "C:\Users\Andre\Documents\web2py\gluon\newcron.py", line 50, in
__init__
crondance(self.path, 'hard', startup=True)
File "C:\Users\Andre\Documents\web2py\gluon\newcron.py", line 234,
in crondanc
e
cronmaster = token.acquire(startup=startup)
File "C:\Users\Andre\Documents\web2py\gluon\newcron.py", line 118,
in acquire
portalocker.unlock(self.master)
File "C:\Users\Andre\Documents\web2py\gluon\portalocker.py", line
78, in unloc
k
msvcrt.locking(file.fileno(), mode,
os.path.getsize(file.filename))
AttributeError: 'file' object has no attribute 'filename'
On 25 nov, 16:31, 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
>
>