Re: Prob with Windows install
Will Guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
It looks like the locking code isn't working, but I don't know what the
issue is.
However, if you stop using the logstats plugin, then this issue will go
away unless you're using another plugin that uses the locking methods in
tools.py.
Try removing logstats from the load_plugins list and see if your blog
works then.
/will
On Sun, 28 Jan 2007, Marcus Wendel wrote:
>
> Ok,thanks for the help.Ii downloaded the win32on plugin. The result is
> in a much larger error message. It goes like this:
>
> OverflowError Python 2.4.3: D:\Dokumente und Einstellungen\Apache\xampp\python24\python.exe
> Sun Jan 28 19:57:23 2007
>
>
> A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. D:\Dokumente und Einstellungen\Apache\xampp\htdocs\vhost1\cgi-bin\pyblosxom.cgi
> 78 p = PyBlosxom(cfg, env)
> 79
> 80 p.run()
> 81 response = p.getResponse()
> 82 response.sendHeaders(sys.stdout)
> p = <Pyblosxom.pyblosxom.PyBlosxom instance>, p.run = <bound method PyBlosxom.run of <Pyblosxom.pyblosxom.PyBlosxom instance>>
> D:\Dokumente und Einstellungen\Apache\xampp\htdocs\vhost1\html\Pyblosxom\pyblosxom.py in run(self=<Pyblosxom.pyblosxom.PyBlosxom instance>, static=False)
> 164
> 165 if not handled == 1:
> 166 blosxom_handler(self._request)
> 167
> 168 # do end callback
> global blosxom_handler = <function blosxom_handler>, self = <Pyblosxom.pyblosxom.PyBlosxom instance>, self._request = Request
> D:\Dokumente und Einstellungen\Apache\xampp\htdocs\vhost1\html\Pyblosxom\pyblosxom.py in blosxom_handler(request=Request)
> 828 # giving everyone a chance to transform the data. the request is
> 829 # modified in place.
> 830 tools.run_callback("prepare", {"request": request})
> 831
> 832 # now we pass the entry_list through the renderer
> global tools = <module 'Pyblosxom.tools' from 'D:/Dokumente und...he/xampp/htdocs/vhost1/html\Pyblosxom\tools.pyc'>, tools.run_callback = <function run_callback>, request = Request
> D:\Dokumente und Einstellungen\Apache\xampp\htdocs\vhost1\html\Pyblosxom\tools.py in run_callback(chain=[<function cb_prepare>, <function cb_prepare>, <function cb_prepare>, <function cb_prepare>, <function cb_prepare>, <function cb_prepare>, <function cb_prepare>], input={'request': Request}, mappingfunc=<function <lambda>>, donefunc=<function <lambda>>, defaultfunc=None)
> 549 for func in chain:
> 550 # we call the function with the input dict it returns an output.
> 551 output = func(input)
> 552
> 553 # we fun the output through our donefunc to see if we should stop
> output = None, func = <function cb_prepare>, input = {'request': Request}
> D:\Dokumente und Einstellungen\Apache\xampp\htdocs\vhost1\html\plugins\logstats.py in cb_prepare(args={'request': Request})
> 265 except:
> 266 f = open(datadir + "/logfile.dat", "w")
> 267 tools.lock(f, tools.LOCK_EX)
> 268
> 269 stats = PyblStats(config)
> global tools = <module 'Pyblosxom.tools' from 'D:/Dokumente und...he/xampp/htdocs/vhost1/html\Pyblosxom\tools.pyc'>, tools.lock = <function lock>, f = <open file 'D:/Dokumente und Einstellungen/Apach...htdocs/vhost1/html/Archiv/logfile.dat', mode 'w'>, tools.LOCK_EX = 2
> D:\Dokumente und Einstellungen\Apache\xampp\htdocs\vhost1\html\Pyblosxom\tools.py in lock(f=<open file 'D:/Dokumente und Einstellungen/Apach...htdocs/vhost1/html/Archiv/logfile.dat', mode 'w'>, flags=2)
> 910 def lock(f, flags):
> 911 hfile = win32file._get_osfhandle(f.fileno())
> 912 win32file.LockFileEx(hfile, flags, 0, 0xffff0000, __overlapped)
> 913
> 914 def unlock(f):
> global win32file = <module 'win32file' from 'D:\Dokumente und Einst...\python24\lib\site-packages\win32\win32file.pyd'>, win32file.LockFileEx = <built-in function LockFileEx>, hfile = 836, flags = 2, global __overlapped = <PyOVERLAPPED object>
>
>
> OverflowError: long int too large to convert to int
> args = ('long int too large to convert to int',)
>
> Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
> ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
> und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
> nur 44,85 inkl. DSL- und ISDN-Grundgebühr!
> http://www.arcor.de/rd/emf-dsl-2
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pyblosxom-users mailing list
pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users