Re: [gentoo-user] How to appoint python version for a package

2014-04-03 Thread Tom Wijsman
On Thu, 3 Apr 2014 13:15:59 +0800 林守磊 linxiu...@gmail.com wrote: @all I found that is a bug from package pygments-1.6_p20140324, and I downgrade to 1.6-r1. problem solved ! @Tom that mean pygments-1.6_p20140324 do not support python3_2, thank you a lot Indeed. Bugs appear to have been

[gentoo-user] How to appoint python version for a package

2014-04-02 Thread 林守磊
Hi All I just want emerge retext and run it by python3.3, how to set PYTHON_TAGETS just for this package If can't, tell me why python3.2 case problem below return u'[%s-%s]' % (unichr(a), unichr(b)) ^ SyntaxError: invalid syntax Thank you

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Tom Wijsman
On Wed, 2 Apr 2014 19:56:44 +0800 林守磊 linxiu...@gmail.com wrote: I just want emerge retext Which version of retext are you trying to emerge? and run it by python3.3, Python 3.3 is supported in retext 4.0.1-r2 and 4.1.1. how to set PYTHON_TAGETS just for this package In package.use you can

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Wang Xuerui
2014-04-02 19:56 GMT+08:00 林守磊 linxiu...@gmail.com: tell me why python3.2 case problem below return u'[%s-%s]' % (unichr(a), unichr(b)) ^ SyntaxError: invalid syntax Well, it seems to be an upstream bug, as Python 3.2 does not recognize the old (Python 2.x)

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Wang Xuerui
2014-04-02 20:26 GMT+08:00 Wang Xuerui idontknw.w...@gmail.com: 2014-04-02 19:56 GMT+08:00 林守磊 linxiu...@gmail.com: return u'[%s-%s]' % (unichr(a), unichr(b)) [snip] so the program will work in Python 3.3 but not 3.2 Oops, there is also unichr. Seems the program is Python 2.x only, in

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Tom Wijsman
On Wed, 2 Apr 2014 20:29:41 +0800 Wang Xuerui idontknw.w...@gmail.com wrote: 2014-04-02 20:26 GMT+08:00 Wang Xuerui idontknw.w...@gmail.com: 2014-04-02 19:56 GMT+08:00 林守磊 linxiu...@gmail.com: return u'[%s-%s]' % (unichr(a), unichr(b)) [snip] so the program will work in Python 3.3

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread 林守磊
Thank you all my retext version and package use [I] app-editors/retext Available versions: (~)4.0.1 (~)4.0.1-r1 4.0.1-r2 (~)4.1.0 (~)4.1.1 ** {+spell LINGUAS=ca cs cy da de es et eu fr it ja pl pt pt_BR ru sk uk zh_CN zh_TW PYTHON_TARGETS=python2_7 python3_2 python3_3} Installed

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread 林守磊
@all I found that is a bug from package pygments-1.6_p20140324, and I downgrade to 1.6-r1. problem solved ! @Tom that mean pygments-1.6_p20140324 do not support python3_2, thank you a lot thank you all regards 2014-04-03 9:02 GMT+08:00 林守磊 linxiu...@gmail.com: Thank you all my retext

Re: [gentoo-user] How to appoint python version for a package

2014-04-02 Thread Wang Xuerui
2014-04-03 13:15 GMT+08:00 林守磊 linxiu...@gmail.com: @all I found that is a bug from package pygments-1.6_p20140324, and I downgrade to 1.6-r1. problem solved ! Oh, I overlooked the name of the offending file. Yes it's pygments that's at fault, not retext :)