Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximum recursion installing readline package #60550

Closed
mathieu37 mannequin opened this issue Oct 28, 2012 · 4 comments
Closed

maximum recursion installing readline package #60550

mathieu37 mannequin opened this issue Oct 28, 2012 · 4 comments
Assignees
Labels
build The build process and cross-build stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mathieu37
Copy link
Mannequin

mathieu37 mannequin commented Oct 28, 2012

BPO 16346
Nosy @tarekziade, @merwok, @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/merwok'
closed_at = <Date 2020-11-24.22:56:39.668>
created_at = <Date 2012-10-28.08:48:55.805>
labels = ['type-bug', 'library', 'build']
title = 'maximum recursion installing readline package'
updated_at = <Date 2020-11-24.22:56:39.665>
user = 'https://bugs.python.org/mathieu37'

bugs.python.org fields:

activity = <Date 2020-11-24.22:56:39.665>
actor = 'iritkatriel'
assignee = 'eric.araujo'
closed = True
closed_date = <Date 2020-11-24.22:56:39.668>
closer = 'iritkatriel'
components = ['Build', 'Distutils', 'Distutils2']
creation = <Date 2012-10-28.08:48:55.805>
creator = 'mathieu37'
dependencies = []
files = []
hgrepos = []
issue_num = 16346
keywords = []
message_count = 4.0
messages = ['174012', '177186', '177202', '381779']
nosy_count = 5.0
nosy_names = ['tarek', 'eric.araujo', 'alexis', 'mathieu37', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue16346'
versions = ['Python 2.7']

@mathieu37
Copy link
Mannequin Author

mathieu37 mannequin commented Oct 28, 2012

Dear all,

I tried to install Python 2.7.3 in a home directory for simplicity. On the Ubuntu platform that I had, the readline-dev was not installed.
So, I I tried to install the readline package either by "pip install readline" or "python setup.py install" and what I got was following behavior:
------------------------------------------------------------------
.
.
.
File "/home/dutour/opt/Python-2.7.3/lib/python2.7/distutils/dist.py", line 1118, in write_pkg_file

    self._write_field(file, 'Metadata-Version', version)

File "/home/dutour/opt/Python-2.7.3/lib/python2.7/distutils/dist.py", line 1145, in _write_field

    file.write('%s: %s\n' % (name, self._encode_field(value)))

File "/home/dutour/opt/Python-2.7.3/lib/python2.7/distutils/dist.py", line 1154, in _encode_field

    if isinstance(value, unicode):

RuntimeError: maximum recursion depth exceeded while calling a Python object
----------------------------------------------------------------------
So, the install went into an infinite loop and crashed.
Instead the correct error message that should have been shown at some point is missing .h file.

I am a beginner on Python, I asked on help@python.org and Matthew Dixon Cowles indicated me that I should report the problem here.

@mathieu37 mathieu37 mannequin added build The build process and cross-build labels Oct 28, 2012
@ezio-melotti ezio-melotti added the stdlib Python modules in the Lib dir label Oct 28, 2012
@ezio-melotti ezio-melotti added type-bug An unexpected behavior, bug, or error and removed build The build process and cross-build labels Oct 28, 2012
@merwok
Copy link
Member

merwok commented Dec 9, 2012

On a Ubuntu system you don’t need to install readline from PyPI: CPython has a readline module, which gets compiled if the headers are available.

That said, the error you report is still strange. Can you attach the full console output as a text file?

@mathieu37
Copy link
Mannequin Author

mathieu37 mannequin commented Dec 9, 2012

Well, that was the points, the headers were not available.

Mathieu

On Sunday, December 9, 2012, Éric Araujo wrote:

Éric Araujo added the comment:

On a Ubuntu system you don’t need to install readline from PyPI: CPython
has a readline module, which gets compiled if the headers are available.

That said, the error you report is still strange. Can you attach the full
console output as a text file?

----------


Python tracker <report@bugs.python.org <javascript:;>>
<http://bugs.python.org/issue16346\>


@vadmium vadmium changed the title readline problem maximum recursion installing readline package Aug 2, 2015
@iritkatriel
Copy link
Member

write_pkg_file looks very different now.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants