lucasdavila86 / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

failed installation of GoogleCL with message showing Error in Code #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
# What steps will reproduce the problem?
1.Install gdata-pyhton-client by 'pyhton setup.py install'
2.Then install googlecl by 'pyhton setup.py'

# What is the expected output? What do you see instead?
Successful installation of GooleCL

# What version of the product are you using? On what operating system?
Choose 'CentOS'; 'Linux 2.6.18-164.11.1.el5'; 'Python 2.4.3'; 
'gdata-pyhton-client 2.0.10'; 'googlecl-0.9.7' as your specifications

# Please provide any additional information below.
I got following as a part of entire error message
-----------------------------------------------------------------------
SyntaxError: ('future feature with_statement is not defined',)
byte-compiling /usr/lib/python2.4/site-packages/googlecl/service.py to 
service.pyc
  File "/usr/lib/python2.4/site-packages/googlecl/service.py", line 273
    req_str = ' AND '.join(['('+' OR '.join(a)+')' if isinstance(a, list) \
                                                    ^
SyntaxError: invalid syntax
running install_scripts
copying build/scripts-2.4/google -> /usr/bin
changing mode of /usr/bin/google to 755
-----------------------------------------------------------------------

Original issue reported on code.google.com by abhikuma...@gmail.com on 21 Jun 2010 at 9:14

GoogleCodeExporter commented 9 years ago
It looks like the code uses syntax for python >= 2.5 and your python version is 
2.4.

Original comment by bart...@gmail.com on 21 Jun 2010 at 9:26

GoogleCodeExporter commented 9 years ago
Had this problem also: python version at work is 2.4.4, which according to 
INSTALL.txt should work, but doesn't.

Original comment by spookypeanut on 22 Jun 2010 at 8:05

GoogleCodeExporter commented 9 years ago
As far as I can see in the latest INSTALL.txt GoogleCL requires Python 2.5 or 
2.6.
You can find latest INSTALL.txt here: 
http://code.google.com/p/googlecl/source/browse/trunk/INSTALL.txt

However, it shouldn't be too hard to make it working with 2.4. Gdata library 
works with python <= 2.2, so I don't see much reason to make googleCL so strict 
about python version.

Attached please find a patch for this particular issue for the trunk sources. 
If you find more - post it here and I'll try to fix them.

Original comment by bart...@gmail.com on 22 Jun 2010 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
While it should be possible to make GoogleCL compatible with python 2.4, it 
isn't something terribly important. I'm going to mark this WontFix.

Bartosh, if you'd like, you can make a new issue for Python2.4 support so that 
it gets a proper issue.

Original comment by tom.h.mi...@gmail.com on 12 Jul 2010 at 10:27

GoogleCodeExporter commented 9 years ago
Well, nobody seems to be interested. So, I'd rather do something more useful :)

Original comment by bart...@gmail.com on 13 Jul 2010 at 8:03