Thanks Anand. I can confirm that it is now working on ES-4 U8.
I did hit a snag while installing though. The application.py module
uses a conditional assignment in the Reload class while setting the
SUFFIX attribute. Conditional assignments aren't available in Python <
2.5. Attempting to install web.py-0.36 produces the following
sudo python setup.py install
Traceback (most recent call last):
File "setup.py", line 6, in ?
from web import __version__
File "/home/areid/web.py-0.36/web/__init__.py", line 27, in ?
from application import *
File "/home/areid/web.py-0.36/web/application.py", line 639
SUFFIX = '$py.class' if sys.platform.startswith('java') else '.pyc'
^
SyntaxError: invalid syntax
Here's the diff I used to fix application.py which let me proceed
--- application.py.orig 2011-07-06 12:45:54.000000000 +0000
+++ application.py 2011-07-06 12:46:38.000000000 +0000
@@ -636,8 +636,12 @@
if so, reloads them.
"""
- SUFFIX = '$py.class' if sys.platform.startswith('java') else '.pyc'
"""File suffix of compiled modules."""
+ if sys.platform.startswith('java'):
+ SUFFIX = '$py.class'
+ else:
+ SUFFIX = 'pyc'
+
def __init__(self):
self.mtimes = {}
On Mon, Jul 4, 2011 at 6:21 AM, Anand Chitipothu <[email protected]> wrote:
> 2011/6/16 atomic0x <[email protected]>:
>> Well the servers we're using here aren't going to be upgraded anytime
>> soon, but I have successfully run web.py on EL6 as well. The other
>> option I was considering was creating a python 2.6 package to deploy
>> to the servers, but If this is something broken in web.py I'd rather
>> wait to see if it can be fixed before going down that road.
>
> Fixed in web.py 0.36.
>
> Anand
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>
>
Cheers,
atomic0x
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.