Amara 1.2.0.2 - Python 2.6 and Ubunto 10.10

7 views
Skip to first unread message

werner

unread,
May 12, 2011, 5:14:07 AM5/12/11
to akara
The 4suite list I used in the past is rejecting my posts, but I would
like this to be preserved so I hope it is o.k. to post it here.

I am still using 1.2 as I just didn't find the time to look at all the
new stuff yet.

I have been using Amara 1 for ages on Windows and am currently in the
process of moving my development machine to Ubuntu.

10.10/Maverick comes with Python 2.6 by default so wanted to stick
with this.

"import amara" causes a deprecation error for "sets", made the
following changes to amara/bindery.py to get rid of the deprecation
warning, maybe it is useful for others.

Changed:

import sets

to:

# for Python 2.6+
import sys
if sys.version_info < (2, 6):
import sets


Changed:
RESERVED_NAMES = sets.ImmutableSet(RESERVED_NAMES)

to:
if sys.version_info < (2, 6):
RESERVED_NAMES = sets.ImmutableSet(RESERVED_NAMES)
else:
RESERVED_NAMES = frozenset(RESERVED_NAMES)

Maybe this is useful for others.

Werner

Uche Ogbuji

unread,
May 14, 2011, 10:28:13 AM5/14/11
to ak...@googlegroups.com
Thanks, Werner.  Yeah, it's been too much of a pain to manage mailman, and I suspect bitrot is behind the error you're getting.  It's probably easier for me to encourage people to discuss 4Suite and Amara 1.x on this group, which shouldn't affect traffic very much.

Thanks for your contribution.

--Uche


--
You received this message because you are subscribed to the Google Groups "akara" group.
To post to this group, send email to ak...@googlegroups.com.
To unsubscribe from this group, send email to akara+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akara?hl=en.




--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed @TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji
Reply all
Reply to author
Forward
0 new messages