Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2014 13:33:27 +0100
From:      Frank Broniewski <brfr@metrico.lu>
To:        freebsd-ports@freebsd.org
Subject:   Re: graphics/mapserver Python mapscript fails
Message-ID:  <53317797.5090308@metrico.lu>
In-Reply-To: <5329537F.1040504@metrico.lu>
References:  <5329537F.1040504@metrico.lu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <module>
    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 <module>
>     _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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53317797.5090308>