Git-Host / gaeframework

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

instalation of gaeframework with virtualenv python2.5 #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
creating virtualenv with python2.5 and no sitepackages.
installing gaeframework with easy_install

What is the expected output?
installation passes

What do you see instead?
"SyntaxError: invalid syntax" in setup.py line 35:
with open('README') as file:

What version of the product are you using? On what operating system?
Ubuntu 10.10
virtualenv 1.6.3
gaeframework 2.0.3
python2.5

Please provide any additional information below.
I simply added
from __future__ import with_statement
at top of file 
then i packed framework and installed it from local file
and I got next 'with' keyword error in gae SDK gen_protorpc.py same fix.

Original issue reported on code.google.com by Engr...@gmail.com on 19 Jul 2011 at 9:50

GoogleCodeExporter commented 9 years ago
Thanks for a bug report!

Please, try to use next:
from __future__ import with_statement as with

Please feedback after you are tried this fix.

Original comment by anton.danilchenko on 21 Jul 2011 at 12:02

GoogleCodeExporter commented 9 years ago

Original comment by anton.danilchenko on 21 Jul 2011 at 12:04

GoogleCodeExporter commented 9 years ago
As I said in additional information I applied that statement:

from __future__ import with_statement

It was enough to fix both with problems during installation. I'm not good with 
patch command. otherwise I would provide patch. Sorry.

Original comment by Engr...@gmail.com on 21 Jul 2011 at 2:09

GoogleCodeExporter commented 9 years ago
Please, provide me instruction how to install python2.5 to virtualenv.

I have used Python2.5 nakedsnakes from ubuntu repository. But how to install 
this python version to virtual environment?

Thanks.

Original comment by anton.danilchenko on 22 Jul 2011 at 9:53

GoogleCodeExporter commented 9 years ago
here are steps I used to install virtualenv
http://blog.borys.info/2011/08/gae-with-virtualenv-osx-ubuntu-1010.html

and attached .bash_profile with virtualenvwrapper settings

Original comment by Engr...@gmail.com on 4 Aug 2011 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in ver 2.0.7.

Original comment by anton.danilchenko on 22 Aug 2011 at 3:15