Re: [gentoo-user] How to appoint python version for a package
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 filed about this: https://bugs.gentoo.org/show_bug.cgi?id=470962 https://bugs.gentoo.org/show_bug.cgi?id=489198 -- 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
Re: [gentoo-user] How to appoint python version for a package
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 put: app-editors/retext python_targets_python3_3 If can't, tell me why python3.2 case problem below ^^^ Did you intend to write 3.2 instead of 3.3 here? return u'[%s-%s]' % (unichr(a), unichr(b)) ^ SyntaxError: invalid syntax Can you attach the complete build.log? PS: Note that I'm the maintainer of app-editors/retext. -- 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
Re: [gentoo-user] How to appoint python version for a package
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) style for Unicode literals. Python 3.3 adds the syntax back, so the program will work in Python 3.3 but not 3.2. You definitely should report this to upstream; it won't take much time to fix bugs of this sort. :)
Re: [gentoo-user] How to appoint python version for a package
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. Sorry for the noise~
Re: [gentoo-user] How to appoint python version for a package
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
Re: [gentoo-user] How to appoint python version for a package
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 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
Re: [gentoo-user] How to appoint python version for a package
@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 ** {+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
Re: [gentoo-user] How to appoint python version for a package
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 :)