From owner-freebsd-ports@FreeBSD.ORG Sun Apr 6 02:22:20 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A4159A97 for ; Sun, 6 Apr 2014 02:22:20 +0000 (UTC) Received: from mail-pb0-x22d.google.com (mail-pb0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 755DE8D8 for ; Sun, 6 Apr 2014 02:22:20 +0000 (UTC) Received: by mail-pb0-f45.google.com with SMTP id uo5so5154019pbc.18 for ; Sat, 05 Apr 2014 19:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=tGKb25xjTnY/0yYun67qkamRNUFqOLDNsZb1IfXBqBc=; b=e5F4YC+RErWt414Pxwz38WGpSPFL97qRB2YCJRTeBThOVNYbEIh3jgvomGZHd1Xhn4 wXi+vPcwZ27SKKo/48lHnQGt2idfbvZikcQJLVawx8wgbRts2GlAGnGAp4JqpHTlJfGX DwQuoDImV4PaKjcXFjUB4mZVuMKRG8uWPYRok+7M5QbgTQgRYtjI20jt/va0Totz/hKT z0mO82jiSMthXs61Zue0lrgRGlVbNXEoa9U5DzzTSjMa8OTbSl6fc5o05qU2zOszLXO9 g40x9ZXJ20grWptxK3PSNn257zzRScscmfMFK8liw1BcFMwzJHPhsz7FtNUTzuzuOHsC stUA== X-Received: by 10.66.124.232 with SMTP id ml8mr23307189pab.38.1396750939348; Sat, 05 Apr 2014 19:22:19 -0700 (PDT) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id ir10sm27289708pbc.59.2014.04.05.19.22.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Apr 2014 19:22:18 -0700 (PDT) Message-ID: <5340BA4E.7010306@FreeBSD.org> Date: Sun, 06 Apr 2014 12:22:06 +1000 From: Kubilay Kocak User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Thunderbird/28.0 MIME-Version: 1.0 To: Willem Jan Withagen , Shane Ambler Subject: Re: Python install catch 22 References: <533EA19E.80905@digiware.nl> <533F7CF4.6070003@ShaneWare.Biz> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: koobs@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2014 02:22:20 -0000 On 5/04/2014 9:12 PM, Willem Jan Withagen wrote: > > > Op 5 apr. 2014 om 05:48 heeft Shane Ambler het volgende geschreven: > >> On 04/04/2014 22:42, Willem Jan Withagen wrote: >>> Hi, >>> >>> I've tried to upgrade my python 2.7 which did not work. >>> Then I deinstalled all python stuff and tried to install python3 (aka 3.3) >> >> You can install both versions of python (2.7 & 3.3) at the same time, >> but currently you can only install a module to one of the versions at a >> time. > > Sorry, > > I did not explain the situation clear enough. > > I was at 2.7, and wanted to install a 2.7 upgrade because of a bug. > If memory serves me, from 2.7.3 to 2.7.6 > > But that started mounting about missing db stuff, and having to install a py/db of choice. > That is where I ran into the catch22, installing a db required py-tools, which in turn starts to try to upgrade python from 2.7.3 to 2.7.6. Hi Willem, a) Can you clarify/confirm whether you tried installing/upgrading Python via ports or packages. b) Tell us exactly (method & commands) how you attempted to upgrade Python 2.7 to Python 3.3 b) If via ports, it would be helpful to know how and why the dbm module fails to build for python33 Either attach a complete build log here, or join us on IRC #freebsd-python on freenode so we can help you isolate. Koobs > Then I cleaned/removed al python stuff, and tried again. > First with 2.7 and when that did not work, I tried 3.3 with the same result. > I tried with portinstall/portupgrade as well as make && make install, but both fail for the same reason. > > So atm I have no python at al. > >> So far there are still many modules that don't work with 3.x so you may >> want to use 2.7 if you want python with more than the default modules. >> >> The default python is still 2.7, if you want to use 3.3 then you might >> want to add >> DEFAULT_VERSIONS=PYTHON=3.3 PYTHON3=3.3 >> to your /etc/make.conf >> >>> The system everytime refuses to install because of missing a database: >>> >>> pkg-static: >>> lstat(/home2/usr/ports/lang/python33/work/stage/usr/local/lib/python3.3/lib-dynload/_dbm.so): >>> No such file or directory >>> *** [fake-pkg] Error code 74 >>> >>> [ replace python33 by python27 te get the similar error for 2.7 ] >> >> This would indicate that the dbm module wasn't built. It should be built >> and is a module that gives access to others that may be installed from >> the list below. The db modules below don't need to be installed first >> for _dbm.so to be built. >> >> This is an error compiling not related to the other modules. If your >> using a gui then scrollback in the terminal to see the error - increase >> scrollback limit if needed, from cli maybe use script to keep a log of >> the build to look through. > > Using command line in putty. > I will try again, and scan de build output for more errors. So there should be an error building the part in the stage tree? > > >> >> gettext libiconv and gmake are the only things that need to be installed >> before python to build. > > So where does it get the DBMS stuff from? > >> Maybe there is an issue with you not building >> from /usr/ports ? > > That would be a first. This config is like this for about 6 years. > And /user/ports links to this tree. > >> >>> And then hints: >>> ==== >>> Note that some of the standard modules are provided as separate >>> ports since they require extra dependencies: >>> >>> gdbm databases/py-gdbm >>> sqlite3 databases/py-sqlite3 >>> tkinter x11-toolkits/py-tkinter >>> >>> Install them as needed. >>> ==== >>> >>> Which is nasty catch22, because one needs a recent/working python to >>> actually be able to do this. >>> >>> How do other cope with this? >>> >> >> Could using pkg to install a prebuilt binary package be an option? > > That would be the alternative, but I only do that, if nothing else works. > I've grown to always build my stuff. > >> >> What FreeBSD version are you using? > > I386 9.2-STABLE > > --WjW > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >