Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] How to appoint python version for a package Wang Xuerui <idontknw.wang@×××××.com>
Re: [gentoo-user] How to appoint python version for a package Tom Wijsman <TomWij@g.o>