1 |
Thank you all |
2 |
|
3 |
my retext version and package use |
4 |
|
5 |
[I] app-editors/retext |
6 |
Available versions: (~)4.0.1 (~)4.0.1-r1 4.0.1-r2 (~)4.1.0 (~)4.1.1 |
7 |
**9999 {+spell LINGUAS="ca cs cy da de es et eu fr it ja pl pt pt_BR ru sk |
8 |
uk zh_CN zh_TW" PYTHON_TARGETS="python2_7 python3_2 python3_3"} |
9 |
Installed versions: 4.1.1(07:49:05 AM 04/03/2014)(-spell |
10 |
LINGUAS="zh_CN -ca -cs -cy -da -de -es -et -eu -fr -it -ja -pl -pt -pt_BR |
11 |
-ru -sk -uk -zh_TW" PYTHON_TARGETS="python3_2 -python3_3") |
12 |
|
13 |
run retext |
14 |
|
15 |
retext |
16 |
Traceback (most recent call last): |
17 |
File "/usr/lib/python-exec/python3.2/retext", line 64, in <module> |
18 |
main() |
19 |
File "/usr/lib/python-exec/python3.2/retext", line 54, in main |
20 |
window = ReTextWindow() |
21 |
File "/usr/lib64/python3.2/site-packages/ReText/window.py", line 332, in |
22 |
__init__ |
23 |
self.tabWidget.addTab(self.createTab(""), self.tr('New document')) |
24 |
File "/usr/lib64/python3.2/site-packages/ReText/window.py", line 432, in |
25 |
createTab |
26 |
self.markups.append(self.getMarkup(fileName)) |
27 |
File "/usr/lib64/python3.2/site-packages/ReText/window.py", line 478, in |
28 |
getMarkup |
29 |
return markupClass(filename=fileName) |
30 |
File "/usr/lib64/python3.2/site-packages/markups/markdown.py", line 121, |
31 |
in __init__ |
32 |
self.md = markdown.Markdown(self.extensions, output_format='html4') |
33 |
File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line 139, |
34 |
in __init__ |
35 |
configs=kwargs.get('extension_configs', {})) |
36 |
File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line 166, |
37 |
in registerExtensions |
38 |
ext.extendMarkdown(self, globals()) |
39 |
File "/usr/lib64/python3.2/site-packages/markdown/extensions/extra.py", |
40 |
line 48, in extendMarkdown |
41 |
md.registerExtensions(extensions, self.config) |
42 |
File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line 164, |
43 |
in registerExtensions |
44 |
ext = self.build_extension(ext, configs.get(ext, [])) |
45 |
File "/usr/lib64/python3.2/site-packages/markdown/__init__.py", line 198, |
46 |
in build_extension |
47 |
module = __import__(module_name, {}, {}, |
48 |
[module_name.rpartition('.')[0]]) |
49 |
File |
50 |
"/usr/lib64/python3.2/site-packages/markdown/extensions/fenced_code.py", |
51 |
line 80, in <module> |
52 |
from .codehilite import CodeHilite, CodeHiliteExtension |
53 |
File |
54 |
"/usr/lib64/python3.2/site-packages/markdown/extensions/codehilite.py", |
55 |
line 27, in <module> |
56 |
from pygments import highlight |
57 |
File "/usr/lib64/python3.2/site-packages/pygments/__init__.py", line 37, |
58 |
in <module> |
59 |
from pygments.util import StringIO, BytesIO |
60 |
File "/usr/lib64/python3.2/site-packages/pygments/util.py", line 224 |
61 |
return u'[%s-%s]' % (unichr(a), unichr(b)) |
62 |
^ |
63 |
SyntaxError: invalid syntax |
64 |
|
65 |
Is that mean retext-4.1.1 don't support python3_2 actually? |
66 |
|
67 |
|
68 |
2014-04-02 23:23 GMT+08:00 Tom Wijsman <TomWij@g.o>: |
69 |
|
70 |
> On Wed, 2 Apr 2014 20:29:41 +0800 |
71 |
> Wang Xuerui <idontknw.wang@×××××.com> wrote: |
72 |
> |
73 |
> > 2014-04-02 20:26 GMT+08:00 Wang Xuerui <idontknw.wang@×××××.com>: |
74 |
> > > 2014-04-02 19:56 GMT+08:00 林守磊 <linxiulei@×××××.com>: |
75 |
> > >> return u'[%s-%s]' % (unichr(a), unichr(b)) |
76 |
> > > [snip] |
77 |
> > > so the program will work in Python 3.3 but not 3.2 |
78 |
> > |
79 |
> > Oops, there is also unichr. Seems the program is Python 2.x only, in |
80 |
> > which case you can try using package.env (google it) to override the |
81 |
> > PYTHON_TARGETS variable (or really, any variable in the build |
82 |
> > environment). Reporting to upstream is also welcomed, though. |
83 |
> |
84 |
> Or he can provide the build log such that I can reproduce and fix it. |
85 |
> |
86 |
> -- |
87 |
> With kind regards, |
88 |
> |
89 |
> Tom Wijsman (TomWij) |
90 |
> Gentoo Developer |
91 |
> |
92 |
> E-mail address : TomWij@g.o |
93 |
> GPG Public Key : 6D34E57D |
94 |
> GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D |
95 |
> |
96 |
> |