@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 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 > **9999 {+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 versions: 4.1.1(07:49:05 AM 04/03/2014)(-spell > LINGUAS="zh_CN -ca -cs -cy -da -de -es -et -eu -fr -it -ja -pl -pt -pt_BR > -ru -sk -uk -zh_TW" PYTHON_TARGETS="python3_2 -python3_3") > > run retext > > retext > Traceback (most recent call last): > File "/usr/lib/python-exec/python3.2/retext", line 64, in <module> > main() > File "/usr/lib/python-exec/python3.2/retext", line 54, in main > window = ReTextWindow() > File "/usr/lib64/python3.2/site-packages/ReText/window.py", line 332, in > __init__ > self.tabWidget.addTab(self.createTab(""), self.tr('New document')) > File "/usr/lib64/python3.2/site-packages/ReText/window.py", line 432, in > createTab > self.markups.append(self.getMarkup(fileName)) > File "/usr/lib64/python3.2/site-packages/ReText/window.py", line 478, in > getMarkup > return markupClass(filename=fileName) > File "/usr/lib64/python3.2/site-packages/markups/markdown.py", line 121, > in __init__ > self.md = markdown.Markdown(self.extensions, output_format='html4') > File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line > 139, in __init__ > configs=kwargs.get('extension_configs', {})) > File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line > 166, in registerExtensions > ext.extendMarkdown(self, globals()) > File "/usr/lib64/python3.2/site-packages/markdown/extensions/extra.py", > line 48, in extendMarkdown > md.registerExtensions(extensions, self.config) > File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line > 164, in registerExtensions > ext = self.build_extension(ext, configs.get(ext, [])) > File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line > 198, in build_extension > module = __import__(module_name, {}, {}, > [module_name.rpartition('.')[0]]) > File > "/usr/lib64/python3.2/site-packages/markdown/extensions/fenced_code.py", > line 80, in <module> > from .codehilite import CodeHilite, CodeHiliteExtension > File > "/usr/lib64/python3.2/site-packages/markdown/extensions/codehilite.py", > line 27, in <module> > from pygments import highlight > File "/usr/lib64/python3.2/site-packages/pygments/__init__.py", line 37, > in <module> > from pygments.util import StringIO, BytesIO > File "/usr/lib64/python3.2/site-packages/pygments/util.py", line 224 > > return u'[%s-%s]' % (unichr(a), unichr(b)) > ^ > SyntaxError: invalid syntax > > Is that mean retext-4.1.1 don't support python3_2 actually? > > > 2014-04-02 23:23 GMT+08:00 Tom Wijsman <tom...@gentoo.org>: > > 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 but not 3.2 >> > >> > Oops, there is also unichr. Seems the program is Python 2.x only, in >> > which case you can try using package.env (google it) to override the >> > PYTHON_TARGETS variable (or really, any variable in the build >> > environment). Reporting to upstream is also welcomed, though. >> >> Or he can provide the build log such that I can reproduce and fix it. >> >> -- >> With kind regards, >> >> Tom Wijsman (TomWij) >> Gentoo Developer >> >> E-mail address : tom...@gentoo.org >> GPG Public Key : 6D34E57D >> GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D >> >> >