Error upon upgrading PyAMF via easy_install

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error upon upgrading PyAMF via easy_install

ChrisWolf
I just upgraded PyAMF and saw the following output.  

$ sudo easy_install -U pyamf
Searching for pyamf
Reading http://pypi.python.org/simple/pyamf/
Reading http://pyamf.org
Reading http://download.pyamf.org/releases/
Reading http://download.pyamf.org
Best match: PyAMF 0.5.1
Downloading http://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.5.1.tar.gz#md5=1814a81e61cc8be00c2006a40018cce3
Processing PyAMF-0.5.1.tar.gz
Running PyAMF-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YLBQLL/PyAMF-0.5.1/egg-dist-tmp-ikEc8a
  File "build/bdist.macosx-10.3-fat/egg/pyamf/adapters/_google_appengine_ext_db.py", line 157
    sa[self.KEY_ATTR] = str(obj.key()) if obj.is_saved() else None
                                        ^
SyntaxError: invalid syntax
Removing PyAMF 0.4.2 from easy-install.pth file
Adding PyAMF 0.5.1 to easy-install.pth file

Installed /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
Processing dependencies for pyamf
Finished processing dependencies for pyamf

$ python
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin


I guess my primary concern is whether the easy_install.pth file got corrupted.
It now contains:

import sys; sys.__plen = len(sys.path)
./SQLObject-0.10dev_r3184-py2.4.egg
./FormEncode-0.9-py2.4.egg
./python_dateutil-1.4.1-py2.4.egg
./setuptools-0.6c9-py2.4.egg
./vobject-0.8.1c-py2.4.egg
./fpconst-0.7.2-py2.4.egg
./uuid-1.30-py2.4.egg
./elementtree-1.2.7_20070827_preview-py2.4.egg
./PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)


I assume I can manually delete the PyAMF-0.4.2 egg, which did not get removed
from site-packages.

Thanks and regards,

Chris Wolf


_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error upon upgrading PyAMF via easy_install

Nick Joyce
On 17 Mar 2010, at 17:15, Chris Wolf wrote:

> I just upgraded PyAMF and saw the following output.  
>
> $ sudo easy_install -U pyamf
> Searching for pyamf
> Reading http://pypi.python.org/simple/pyamf/
> Reading http://pyamf.org
> Reading http://download.pyamf.org/releases/
> Reading http://download.pyamf.org
> Best match: PyAMF 0.5.1
> Downloading http://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.5.1.tar.gz#md5=1814a81e61cc8be00c2006a40018cce3
> Processing PyAMF-0.5.1.tar.gz
> Running PyAMF-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YLBQLL/PyAMF-0.5.1/egg-dist-tmp-ikEc8a
>  File "build/bdist.macosx-10.3-fat/egg/pyamf/adapters/_google_appengine_ext_db.py", line 157
>    sa[self.KEY_ATTR] = str(obj.key()) if obj.is_saved() else None
>                                        ^
> SyntaxError: invalid syntax
> Removing PyAMF 0.4.2 from easy-install.pth file
> Adding PyAMF 0.5.1 to easy-install.pth file
>
> Installed /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
> Processing dependencies for pyamf
> Finished processing dependencies for pyamf
>
> $ python
> Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>
>
> I guess my primary concern is whether the easy_install.pth file got corrupted.
> It now contains:
>
> import sys; sys.__plen = len(sys.path)
> ./SQLObject-0.10dev_r3184-py2.4.egg
> ./FormEncode-0.9-py2.4.egg
> ./python_dateutil-1.4.1-py2.4.egg
> ./setuptools-0.6c9-py2.4.egg
> ./vobject-0.8.1c-py2.4.egg
> ./fpconst-0.7.2-py2.4.egg
> ./uuid-1.30-py2.4.egg
> ./elementtree-1.2.7_20070827_preview-py2.4.egg
> ./PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
> import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
>
>
> I assume I can manually delete the PyAMF-0.4.2 egg, which did not get removed
> from site-packages.

Yes, you can, there are no dependancies between the two.

I assume that file is loaded when compiling pyc's or somesuch and because you're on py2.4, it complains .. I'll make a ticket for it.

Thanks for reporting!

Nick
_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error upon upgrading PyAMF via easy_install

David Wolever-4
In reply to this post by ChrisWolf
Hey Chris,
This is because you're using Python 2.4, but the inline 'if' statement  
only exists in Python 2.5 and up.

I don't know if this is a bug in PyAMF or if PyAMF specifically  
targets Python 2.5 and up. Someone who knows more will be able to tell  
you, though.

On 17-Mar-10, at 1:15 PM, Chris Wolf wrote:

> I just upgraded PyAMF and saw the following output.
>
> $ sudo easy_install -U pyamf
> Searching for pyamf
> Reading http://pypi.python.org/simple/pyamf/
> Reading http://pyamf.org
> Reading http://download.pyamf.org/releases/
> Reading http://download.pyamf.org
> Best match: PyAMF 0.5.1
> Downloading http://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.5.1.tar.gz#md5 
> =1814a81e61cc8be00c2006a40018cce3
> Processing PyAMF-0.5.1.tar.gz
> Running PyAMF-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/
> easy_install-YLBQLL/PyAMF-0.5.1/egg-dist-tmp-ikEc8a
>  File "build/bdist.macosx-10.3-fat/egg/pyamf/adapters/
> _google_appengine_ext_db.py", line 157
>    sa[self.KEY_ATTR] = str(obj.key()) if obj.is_saved() else None
>                                        ^
> SyntaxError: invalid syntax
> Removing PyAMF 0.4.2 from easy-install.pth file
> Adding PyAMF 0.5.1 to easy-install.pth file
>
> Installed /Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
> Processing dependencies for pyamf
> Finished processing dependencies for pyamf
>
> $ python
> Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>
>
> I guess my primary concern is whether the easy_install.pth file got  
> corrupted.
> It now contains:
>
> import sys; sys.__plen = len(sys.path)
> ./SQLObject-0.10dev_r3184-py2.4.egg
> ./FormEncode-0.9-py2.4.egg
> ./python_dateutil-1.4.1-py2.4.egg
> ./setuptools-0.6c9-py2.4.egg
> ./vobject-0.8.1c-py2.4.egg
> ./fpconst-0.7.2-py2.4.egg
> ./uuid-1.30-py2.4.egg
> ./elementtree-1.2.7_20070827_preview-py2.4.egg
> ./PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
> import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:];  
> p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert =  
> p+len(new)
>
>
> I assume I can manually delete the PyAMF-0.4.2 egg, which did not  
> get removed
> from site-packages.
>
> Thanks and regards,
>
> Chris Wolf
>
>
> _______________________________________________
> PyAMF users mailing list - [hidden email]
> http://lists.pyamf.org/mailman/listinfo/users
>

_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error upon upgrading PyAMF via easy_install

ChrisWolf
In reply to this post by Nick Joyce

>> I assume I can manually delete the PyAMF-0.4.2 egg, which did not get removed
>> from site-packages.
>
> Yes, you can, there are no dependancies between the two.
>
> I assume that file is loaded when compiling pyc's or somesuch and because you're on py2.4, it complains .. I'll make a ticket for it.
>
> Thanks for reporting!
>
> Nick

thanks Nick.

  -Chris
_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error upon upgrading PyAMF via easy_install

ChrisWolf
In reply to this post by David Wolever-4


On 3/17/10 1:57 PM, David Wolever wrote:

> Hey Chris,
> This is because you're using Python 2.4, but the inline 'if' statement
> only exists in Python 2.5 and up.
>
> I don't know if this is a bug in PyAMF or if PyAMF specifically targets
> Python 2.5 and up. Someone who knows more will be able to tell you, though.
>
> On 17-Mar-10, at 1:15 PM, Chris Wolf wrote:
>
>> I just upgraded PyAMF and saw the following output.
>>
>> $ sudo easy_install -U pyamf
>> Searching for pyamf
>> Reading http://pypi.python.org/simple/pyamf/
>> Reading http://pyamf.org
>> Reading http://download.pyamf.org/releases/
>> Reading http://download.pyamf.org
>> Best match: PyAMF 0.5.1
>> Downloading
>> http://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.5.1.tar.gz#md5=1814a81e61cc8be00c2006a40018cce3
>>
>> Processing PyAMF-0.5.1.tar.gz
>> Running PyAMF-0.5.1/setup.py -q bdist_egg --dist-dir
>> /tmp/easy_install-YLBQLL/PyAMF-0.5.1/egg-dist-tmp-ikEc8a
>>  File
>> "build/bdist.macosx-10.3-fat/egg/pyamf/adapters/_google_appengine_ext_db.py",
>> line 157
>>    sa[self.KEY_ATTR] = str(obj.key()) if obj.is_saved() else None
>>                                        ^
>> SyntaxError: invalid syntax

I'm somewhat new to Python, so that's helpful to know, thanks.

  -Chris
_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error upon upgrading PyAMF via easy_install

Nick Joyce
In reply to this post by David Wolever-4
On 17 Mar 2010, at 17:57, David Wolever wrote:

> Hey Chris,
> This is because you're using Python 2.4, but the inline 'if' statement only exists in Python 2.5 and up.
>
> I don't know if this is a bug in PyAMF or if PyAMF specifically targets Python 2.5 and up. Someone who knows more will be able to tell you, though.

PyAMF supports 2.3-2.6 right now, with 3.x support earmarked for 1.0. i.e. we're working on it, mind you at our current release rate, that will be 2020 :-)

We don't have a 2.4 buildbot for the mac so this got missed. '_google_appengine_ext_db.py' is an adapter file for google appengine, which is Python 2.5.2 specific, hence the inline conditional.

>
> On 17-Mar-10, at 1:15 PM, Chris Wolf wrote:
>
>> I just upgraded PyAMF and saw the following output.
>>
>> $ sudo easy_install -U pyamf
>> Searching for pyamf
>> Reading http://pypi.python.org/simple/pyamf/
>> Reading http://pyamf.org
>> Reading http://download.pyamf.org/releases/
>> Reading http://download.pyamf.org
>> Best match: PyAMF 0.5.1
>> Downloading http://pypi.python.org/packages/source/P/PyAMF/PyAMF-0.5.1.tar.gz#md5=1814a81e61cc8be00c2006a40018cce3
>> Processing PyAMF-0.5.1.tar.gz
>> Running PyAMF-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YLBQLL/PyAMF-0.5.1/egg-dist-tmp-ikEc8a
>> File "build/bdist.macosx-10.3-fat/egg/pyamf/adapters/_google_appengine_ext_db.py", line 157
>>   sa[self.KEY_ATTR] = str(obj.key()) if obj.is_saved() else None
>>                                       ^
>> SyntaxError: invalid syntax
>> Removing PyAMF 0.4.2 from easy-install.pth file
>> Adding PyAMF 0.5.1 to easy-install.pth file
>>
>> Installed /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
>> Processing dependencies for pyamf
>> Finished processing dependencies for pyamf
>>
>> $ python
>> Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
>> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
>>
>>
>> I guess my primary concern is whether the easy_install.pth file got corrupted.
>> It now contains:
>>
>> import sys; sys.__plen = len(sys.path)
>> ./SQLObject-0.10dev_r3184-py2.4.egg
>> ./FormEncode-0.9-py2.4.egg
>> ./python_dateutil-1.4.1-py2.4.egg
>> ./setuptools-0.6c9-py2.4.egg
>> ./vobject-0.8.1c-py2.4.egg
>> ./fpconst-0.7.2-py2.4.egg
>> ./uuid-1.30-py2.4.egg
>> ./elementtree-1.2.7_20070827_preview-py2.4.egg
>> ./PyAMF-0.5.1-py2.4-macosx-10.3-fat.egg
>> import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
>>
>>
>> I assume I can manually delete the PyAMF-0.4.2 egg, which did not get removed
>> from site-packages.
>>
>> Thanks and regards,
>>
>> Chris Wolf
>>
>>
>> _______________________________________________
>> PyAMF users mailing list - [hidden email]
>> http://lists.pyamf.org/mailman/listinfo/users
>>
>
> _______________________________________________
> PyAMF users mailing list - [hidden email]
> http://lists.pyamf.org/mailman/listinfo/users

_______________________________________________
PyAMF users mailing list - [hidden email]
http://lists.pyamf.org/mailman/listinfo/users