Hello,

I've been running django 0.96.3 installed from the tar file for over
half a year without problems, I'm using python 2.3.4 on CentOS 4.

I'm trying to upgrade to 1.0.2 from tar file and after running 'sudo
python setup.py install' I get about 20 byte-compiling errors, they
are all syntax errors regarding '@' or 'for'; here are the first and
last of those errors:

----------------------------------
byte-compiling /usr/lib/python2.3/site-packages/django/contrib/gis/
measure.py to measure.pyc
  File "/usr/lib/python2.3/site-packages/django/contrib/gis/
measure.py", line 69
    @classmethod
    ^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python2.3/site-packages/django/contrib/gis/
utils/ogrinspect.py to ogrinspect.pyc
  File "/usr/lib/python2.3/site-packages/django/contrib/gis/utils/
ogrinspect.py", line 117
    return '\n'.join(s for s in _ogrinspect(*args, **kwargs))
                         ^
SyntaxError: invalid syntax
-----------------------------------

I had the setuptools installed from the previous version
(setuptools-0.6c8-py2.3.egg)  and there's Internet connection in any
case.

If I use the new created /usr/lib/python2.3/site-packages/django
directory then I get these Apache errors (browser gets Internal
Error):

PythonHandler django.core.handlers.modpython: Traceback (most recent
call last)
PythonHandler django.core.handlers.modpython:   File "/usr/lib/
python2.3/site-packag
es/mod_python/apache.py", line 287, in HandlerDispatch\n    log=debug)
PythonHandler django.core.handlers.modpython:   File "/usr/lib/
python2.3/site-packag
es/mod_python/apache.py", line 457, in import_module\n    module =
imp.load_module(mname, f, p, d)
PythonHandler django.core.handlers.modpython:   File "/usr/lib/
python2.3/site-packag
es/django/core/handlers/modpython.py", line 7, in ?\n    from
django.core.urlresolvers import set_script_prefix
PythonHandler django.core.handlers.modpython: ImportError: cannot
import name set_sc
ript_prefix

Any ideas?

Thanks




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to