Re: [cython-users] Problem installing Cython 0.19

68 views
Skip to first unread message

Stefan Behnel

unread,
Apr 25, 2013, 1:18:17 AM4/25/13
to cython...@googlegroups.com
Гузий Саша, 25.04.2013 03:31:
> I tried to install cython using pip, but get the following error (See also
> the attached log file):
>
> ile "Cython/Compiler/Parsing.py", line 296, in _p_factor
>
> return p_power(s)
>
> File "Cython/Compiler/Parsing.py", line 376, in p_power
>
> n1 = p_atom(s)
>
> File "Cython/Compiler/Parsing.py", line 631, in p_atom
>
> kind, bytes_value, unicode_value = p_cat_string_literal(s)
>
> File "Cython/Compiler/Parsing.py", line 733, in p_cat_string_literal
>
> kind, bytes_value, unicode_value = p_string_literal(s)
>
> File "Cython/Compiler/Parsing.py", line 798, in p_string_literal
>
> chars = StringEncoding.StrLiteralBuilder(s.source_encoding)
>
> File "Cython/Compiler/StringEncoding.py", line 93, in __init__
>
> self._bytes = BytesLiteralBuilder(target_encoding)
>
> RuntimeError: maximum recursion depth exceeded while calling a Python object
>
> ----------------------------------------
> Command python setup.py egg_info failed with error code 1 in
> /tmp/huziy/19424/pip-v_WL5T-build
> Storing complete log in /home/huziy/.pip/pip.log
>
> Is this a bug or I just have to increase recursion limit?

The log looks rather weird. You're using Py2.7 and try to install it with
setuptools in a virtualenv. And the log shows lots of recursion within
distutils and setuptools.

Can you pass the "--distribute" option to virtualenv, to see if it's a
setuptools bug? That replaces setuptools by the known-to-be-way-better
distribute package. You should be using that anyway, setuptools is no
longer maintained.

Stefan

Stefan Behnel

unread,
Apr 25, 2013, 10:08:58 AM4/25/13
to cython...@googlegroups.com
Hi,

please don't top-post.

Гузий Саша, 25.04.2013 16:04:
> Le jeudi 25 avril 2013 01:18:17 UTC-4, Stefan Behnel a écrit :
>> Can you pass the "--distribute" option to virtualenv, to see if it's a
>> setuptools bug? That replaces setuptools by the known-to-be-way-better
>> distribute package. You should be using that anyway, setuptools is no
>> longer maintained.
>
> I get the same error message using
> pip install --install-option="--distribute" Cython-0.19.tar
>
> Is that what you meant by "pass the "--distribute" option to virtualenv" ?
> If not, please, tell me how to do it.

I meant to create the virtualenv with distribute installed instead of
setuptools, i.e.

virtualenv --distribute myvenv

Stefan

Reply all
Reply to author
Forward
0 new messages