problem with twisted in current pypy master

Hello everyone I had got this error while installed twisted. I just built pypy from master, made virtual enviroment and pip install twisted. Traceback (most recent call last): File "app_main.py", line 51, in run_toplevel File "app_main.py", line 547, in run_it File "<string>", line 1, in <module> File "/home/e-max/.virtualenvs/pypy/build/twisted/setup.py", line 82, in <module> main(sys.argv[1:]) File "/home/e-max/.virtualenvs/pypy/build/twisted/setup.py", line 77, in main setup(**setup_args) File "./twisted/python/dist.py", line 58, in setup return core.setup(**get_setup_args(**kw)) File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/e-max/.virtualenvs/pypy/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/install.py", line 56, in run return _install.run(self) File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/command/install.py", line 584, in run self.run_command(cmd_name) File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/e-max/.virtualenvs/pypy/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/install_lib.py", line 24, in run self.byte_compile(outfiles) File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/command/install_lib.py", line 138, in byte_compile dry_run=self.dry_run) File "/home/e-max/workspace/pypy/lib-python/2.7/distutils/util.py", line 559, in byte_compile compile(file, cfile, dfile) File "/home/e-max/workspace/pypy/lib-python/2.7/py_compile.py", line 126, in compile marshal.dump(codeobject, fc) UnicodeEncodeError: 'utf-8' codec can't encode character u'\udf42' in position 0: surrogates not allowed Best regards, Max

Hi Max, On Fri, Nov 23, 2012 at 12:43 PM, Max Lavrenov <max.lavrenov@gmail.com> wrote:
marshal.dump(codeobject, fc) UnicodeEncodeError: 'utf-8' codec can't encode character u'\udf42' in position 0: surrogates not allowed
Works for me. Could you please: * open a bug on https://bugs.pypy.org/, reporting the platform too (Linux? OS/X?) * try to debug it with pdb, in case we cannot reproduce it: what arguments are passed to marshal.dump()? A bientôt, Armin.

2012/11/23 Armin Rigo <arigo@tunes.org>
Also, which version of pypy are you using? (From a hg repo, you can do "hg id") A similar bug was fixed one month ago: https://bugs.pypy.org/issue1285 (with the exact same character!) -- Amaury Forgeot d'Arc

Hello Amaury [e-max@e-max pypy]$ hg id ded8ea86de4b [e-max@e-max pypy]$ hg log -v -r ded8ea86de4b набор изменений: 59040:ded8ea86de4b пользователь: Armin Rigo <arigo@tunes.org> дата: Thu Nov 22 23:37:52 2012 +0100 файлы: pypy/config/translationoption.py описание: Kill these options. They are not used anywhere else in the code :-( On Fri, Nov 23, 2012 at 4:32 PM, Amaury Forgeot d'Arc <amauryfa@gmail.com>wrote:

I've created issue https://bugs.pypy.org/issue1335 On Fri, Nov 23, 2012 at 4:04 PM, Armin Rigo <arigo@tunes.org> wrote:

Hi Max, On Fri, Nov 23, 2012 at 12:43 PM, Max Lavrenov <max.lavrenov@gmail.com> wrote:
marshal.dump(codeobject, fc) UnicodeEncodeError: 'utf-8' codec can't encode character u'\udf42' in position 0: surrogates not allowed
Works for me. Could you please: * open a bug on https://bugs.pypy.org/, reporting the platform too (Linux? OS/X?) * try to debug it with pdb, in case we cannot reproduce it: what arguments are passed to marshal.dump()? A bientôt, Armin.

2012/11/23 Armin Rigo <arigo@tunes.org>
Also, which version of pypy are you using? (From a hg repo, you can do "hg id") A similar bug was fixed one month ago: https://bugs.pypy.org/issue1285 (with the exact same character!) -- Amaury Forgeot d'Arc

Hello Amaury [e-max@e-max pypy]$ hg id ded8ea86de4b [e-max@e-max pypy]$ hg log -v -r ded8ea86de4b набор изменений: 59040:ded8ea86de4b пользователь: Armin Rigo <arigo@tunes.org> дата: Thu Nov 22 23:37:52 2012 +0100 файлы: pypy/config/translationoption.py описание: Kill these options. They are not used anywhere else in the code :-( On Fri, Nov 23, 2012 at 4:32 PM, Amaury Forgeot d'Arc <amauryfa@gmail.com>wrote:

I've created issue https://bugs.pypy.org/issue1335 On Fri, Nov 23, 2012 at 4:04 PM, Armin Rigo <arigo@tunes.org> wrote:
participants (3)
-
Amaury Forgeot d'Arc
-
Armin Rigo
-
Max Lavrenov