From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: python readline module Date: Mon, 21 Dec 2015 10:12:35 +0100 Message-ID: References: <87vb7srbji.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAwWD-0002Vg-HK for guix-devel@gnu.org; Mon, 21 Dec 2015 04:12:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAwWC-0005Tp-DK for guix-devel@gnu.org; Mon, 21 Dec 2015 04:12:37 -0500 In-Reply-To: <87vb7srbji.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel On Sun, Dec 20, 2015 at 11:38 PM, Ludovic Court=C3=A8s wrote= : > Federico Beffa skribis: > >> it appears that our 'python' package, despite having 'readline' among >> its inputs, can't use it: > > It Works for Me: > > --8<---------------cut here---------------start------------->8--- > $ guix environment --container --ad-hoc python -- python3 > substitute: updating list of substitutes from 'http://hydra.gnu.org'... 1= 00.0% > La jenaj derivoj estos el=C5=9Dutataj: > /gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3 > /gnu/store/s8icyyyqb6f82krh95y4kzlgv32vwshb-python-3.4.3-tk > > Found valid signature for /gnu/store/s8icyyyqb6f82krh95y4kzlgv32vwshb-pyt= hon-3.4.3-tk > From http://hydra.gnu.org/nar/s8icyyyqb6f82krh95y4kzlgv32vwshb-python-3.4= .3-tk > Downloading s8icyy=E2=80=A6-python-3.4.3-tk (71KiB installed)... > http://hydra.gnu.org/nar/s8icyyyqb6f82krh95y4kzlgv32vwshb-python-3.4.3-t= k 156KiB/s 00:00 | 25KiB transferred > Python 3.4.3 (default, Jan 1 1970, 00:00:01) > [GCC 4.9.3] on linux > Type "help", "copyright", "credits" or "license" for more information. >>>> import readline >>>> > Error in atexit._run_exitfuncs: > FileNotFoundError: [Errno 2] No such file or directory > $ guix environment --container --ad-hoc python-2 -- python > Python 2.7.10 (default, Jan 1 1970, 00:00:01) > [GCC 4.9.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import readline >>>> > --8<---------------cut here---------------end--------------->8--- > > Could it be that something in the environment is interfering? Maybe > PYTHONPATH pointing to an incompatible readline.so? Thanks for checking! The problem appears to be that installing 'python-wrapper' brings in 'python-minimal' instead of 'python': $ guix environment --pure --ad-hoc python-wrapper -- python guix environment: warning: ambiguous package specification `python-wrapper' guix environment: warning: choosing python-wrapper-3.4.3 from gnu/packages/python.scm:312:2 Python 3.4.3 (default, Jan 1 1970, 00:00:01) [GCC 4.9.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', '/gnu/store/0rjhns4h747zxx4ya85bbnkjw6dz617m-python-minimal-3.4.3/lib/= python3.4/site-packages', '/gnu/store/0rjhns4h747zxx4ya85bbnkjw6dz617m-python-minimal-3.4.3/lib/pytho= n34.zip', '/gnu/store/0rjhns4h747zxx4ya85bbnkjw6dz617m-python-minimal-3.4.3/lib/pytho= n3.4', '/gnu/store/0rjhns4h747zxx4ya85bbnkjw6dz617m-python-minimal-3.4.3/lib/pytho= n3.4/plat-linux', '/gnu/store/0rjhns4h747zxx4ya85bbnkjw6dz617m-python-minimal-3.4.3/lib/pytho= n3.4/lib-dynload'] >>> import readline Traceback (most recent call last): File "", line 1, in ImportError: No module named 'readline' >>> Regards, Fede