Gauravwagh / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
Other
0 stars 0 forks source link

Fails to install on centos with easy_install and python 2.4.3 #316

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. easy_install django-grappelli
2.
3.

Gives:
[root@tricostar-lbla ~]# easy_install django-grappelli
Searching for django-grappelli
Reading http://pypi.python.org/simple/django-grappelli/
Reading http://code.google.com/p/django-grappelli/
Best match: django-grappelli 2.2
Downloading 
http://pypi.python.org/packages/source/d/django-grappelli/django-grappelli-2.2.t
ar.gz#md5=4a05a04c716cab742f1dc6600cde96ce
Processing django-grappelli-2.2.tar.gz
Running django-grappelli-2.2/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-ggKXBJ/django-grappelli-2.2/egg-dist-tmp-BGsxud
warning: no files found matching 'grappelli/LICENSE'
warning: no files found matching '*.mo' under directory 'grappelli/locale'
warning: no files found matching '*.po' under directory 'grappelli/locale'
warning: no files found matching '*.json' under directory 
'grappelli/models/fixtures'
  File "build/bdist.linux-x86_64/egg/grappelli/middleware.py", line 7
    class JavaScript404Patch():
                             ^
SyntaxError: invalid syntax
  File "build/bdist.linux-x86_64/egg/grappelli/actions.py", line 117
    csvrow = [f.encode('utf-8') if isinstance(f, unicode) else f for f in [csv_resolve_field(row, f) for f in fields]]
                                 ^
SyntaxError: invalid syntax
  File "/usr/lib/python2.4/site-packages/django_grappelli-2.2-py2.4.egg/grappelli/middleware.py", line 7
    class JavaScript404Patch():
                             ^
SyntaxError: invalid syntax
  File "/usr/lib/python2.4/site-packages/django_grappelli-2.2-py2.4.egg/grappelli/actions.py", line 117
    csvrow = [f.encode('utf-8') if isinstance(f, unicode) else f for f in [csv_resolve_field(row, f) for f in fields]]
                                 ^
SyntaxError: invalid syntax
Adding django-grappelli 2.2 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/django_grappelli-2.2-py2.4.egg
Processing dependencies for django-grappelli
Finished processing dependencies for django-grappelli
[root@tricostar-lbla ~]# 

What is the expected output? What do you see instead?

However if I try on my ubuntu box with Python 2.5.2 all is well:

root@CT162:~/lbla# easy_install django-grappelli
install_dir /usr/lib/python2.5/site-packages/
Searching for django-grappelli
Reading http://pypi.python.org/simple/django-grappelli/
Reading http://code.google.com/p/django-grappelli/
Best match: django-grappelli 2.2
Downloading 
http://pypi.python.org/packages/source/d/django-grappelli/django-grappelli-2.2.t
ar.gz#md5=4a05a04c716cab742f1dc6600cde96ce
Processing django-grappelli-2.2.tar.gz
Running django-grappelli-2.2/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-FK_6_E/django-grappelli-2.2/egg-dist-tmp-2BkFSS
warning: no files found matching 'grappelli/LICENSE'
warning: no files found matching '*.mo' under directory 'grappelli/locale'
warning: no files found matching '*.po' under directory 'grappelli/locale'
warning: no files found matching '*.json' under directory 
'grappelli/models/fixtures'
Adding django-grappelli 2.2 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/django_grappelli-2.2-py2.5.egg
Processing dependencies for django-grappelli
Finished processing dependencies for django-grappelli

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by phoebebr...@gmail.com on 13 Dec 2010 at 1:29

GoogleCodeExporter commented 9 years ago
should work now. please reopen if the problem still exists.

Original comment by sehmaschine on 23 Dec 2010 at 11:31