From owner-freebsd-ports@FreeBSD.ORG Tue Mar 25 12:33:28 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 48443AB8 for ; Tue, 25 Mar 2014 12:33:28 +0000 (UTC) Received: from design24.letzebuerg.net (design24.letzebuerg.net [144.76.164.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 025F7639 for ; Tue, 25 Mar 2014 12:33:28 +0000 (UTC) Received: from ip-88-207-240-101.dyn.luxdsl.pt.lu ([88.207.240.101]:37926 helo=[192.168.0.32]) by design24.letzebuerg.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1WSQXm-0007AB-4K for freebsd-ports@freebsd.org; Tue, 25 Mar 2014 13:33:26 +0100 Message-ID: <53317797.5090308@metrico.lu> Date: Tue, 25 Mar 2014 13:33:27 +0100 From: Frank Broniewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: graphics/mapserver Python mapscript fails References: <5329537F.1040504@metrico.lu> In-Reply-To: <5329537F.1040504@metrico.lu> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - design24.letzebuerg.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - metrico.lu X-Get-Message-Sender-Via: design24.letzebuerg.net: authenticated_id: brfr@metrico.lu X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2014 12:33:28 -0000 Hi, When I run `make` in the graphics/mapserver dir and examine the work directory I notice that there is indeed a mapscript/python subfolder including a setup.py. Unfortunately running # python setup.py sdist to create an egg it fails, notifying me that: # python setup.py sdist Traceback (most recent call last): File "setup.py", line 215, in mapserver_version = get_config('version', config='../../mapserver-config') File "setup.py", line 105, in get_config v = read_mapscriptvars() File "setup.py", line 79, in read_mapscriptvars raise IOError, '%s. %s' % (e, "Has MapServer been made?") IOError: [Errno 2] No such file or directory: '../../mapscriptvars'. Has MapServer been made? Does this help? Am 2014-03-19 09:21, schrieb Frank Broniewski: > Hi, > > I can't seem to build mapserver-6.4.0_1 with Python mapscript. I noticed > the following lines at the end of the mapscript build: > ===> Registering installation for mapserver-6.4.0_1 > pkg-static: lstat(/usr/local/lib/python2.7/site-packages/mapscript.py): > No such file or directory > pkg-static: lstat(/usr/local/lib/python2.7/site-packages/mapscript.pyc): > No such file or directory > pkg-static: lstat(/usr/local/lib/python2.7/site-packages/_mapscript.so): > No such file or directory > pkg-static: > lstat(/usr/local/lib/python2.7/site-packages/MapScript-6.4.0-py2.7.egg-info): > No such file or directory > Installing mapserver-6.4.0_1... done > > And import mapscript in Python yields an error: > File > "/usr/local/lib/python2.7/site-packages/MapScript-6.2.1-py2.7-freebsd-9.1-RELEASE-p7-amd64.egg/mapscript.py", > line 25, in > _mapscript = swig_import_helper() > File > "/usr/local/lib/python2.7/site-packages/MapScript-6.2.1-py2.7-freebsd-9.1-RELEASE-p7-amd64.egg/mapscript.py", > line 21, in swig_import_helper > _mod = imp.load_module('_mapscript', fp, pathname, description) > ImportError: Shared object "libmapserver-6.2.1.so" not found, required > by "_mapscript.so" > > Apparently there's still an old lib link flying around. Rebuilding > Python didn't help though. > > This is on >> uname -a > FreeBSD frodo.metrico 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan > 11 03:25:02 UTC 2014 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > > Any ideas? > > Frank > -- Frank BRONIEWSKI METRICO s.à r.l. géomètres technologies d'information géographique rue des Romains 36 L-5433 NIEDERDONVEN tél.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu