[MapProxy] The _imagingft C module is not installed
Adam Estrada
estrada.adam at gmail.com
Mon Mar 29 12:18:05 EDT 2010
All,
I am installing MapProxy on a Windows server and have come across a couple
issues.
1. I used easy_install and ran the server which caused the follow error.
C:\MapProxy>paster serve etc/develop.ini --reload
Starting subprocess with file monitor
Traceback (most recent call last):
File "C:\Python26\Scripts\paster-script.py", line 8, in <module>
load_entry_point('pastescript==1.7.3', 'console_scripts', 'paster')()
File
"C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\c
ommand.py", line 84, in run
invoke(command, command_name, options, args[1:])
File
"C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\c
ommand.py", line 123, in invoke
exit_code = runner.run(args)
File
"C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\c
ommand.py", line 218, in run
result = self.command()
File
"C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\s
erve.py", line 276, in command
relative_to=base, global_conf=vars)
File
"C:\Python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\s
erve.py", line 313, in loadapp
**kw)
File
"C:\Python26\lib\site-packages\pastedeploy-1.3.3-py2.6.egg\paste\deploy\l
oadwsgi.py", line 204, in loadapp
return loadobj(APP, uri, name=name, **kw)
File
"C:\Python26\lib\site-packages\pastedeploy-1.3.3-py2.6.egg\paste\deploy\l
oadwsgi.py", line 225, in loadobj
return context.create()
File
"C:\Python26\lib\site-packages\pastedeploy-1.3.3-py2.6.egg\paste\deploy\l
oadwsgi.py", line 625, in create
return self.object_type.invoke(self)
File
"C:\Python26\lib\site-packages\pastedeploy-1.3.3-py2.6.egg\paste\deploy\l
oadwsgi.py", line 110, in invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File
"C:\Python26\lib\site-packages\pastedeploy-1.3.3-py2.6.egg\paste\deploy\u
til\fixtypeerror.py", line 57, in fix_call
val = callable(*args, **kw)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\app
.py", line 46, in app_factory
return make_wsgi_app(services_conf)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\app
.py", line 96, in make_wsgi_app
init_logging_system()
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\app
.py", line 79, in init_logging_system
logging.config.fileConfig(StringIO(conf))
File "C:\Python26\lib\logging\config.py", line 84, in fileConfig
handlers = _install_handlers(cp, formatters)
File "C:\Python26\lib\logging\config.py", line 156, in _install_handlers
klass = _resolve(klass)
File "C:\Python26\lib\logging\config.py", line 94, in _resolve
found = __import__(used)
ImportError: No module named handlers
1 (cont). I was unable to run the server at all until I renamed log.ini. I
called it log.ini_BAK and restated the server. The service started and
everything appeared to be working correctly.
2. Now the service is complaining that, "The _imagingft C module is not
installed". I tried the same thing on my personal Mac and got the same
error. What am I missing in the install?
C:\MapProxy>paster serve etc/develop.ini --reload
Starting subprocess with file monitor
ERROR: log configuration C:\MapProxy\etc\log.ini not found.
Starting server in PID 5792.
serving on 0.0.0.0:8080 view at http://127.0.0.1:8080
Traceback (most recent call last):
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\app
.py", line 131, in __call__
resp = self.handlers[handler_name].handle(req)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ser
ver.py", line 34, in handle
return handler(parsed_req)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\wms\serv
er.py", line 50, in map
merger.add(self.layers[layer].render(map_request))
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ima
ge.py", line 55, in add
[self.layers.append(layer) for layer in layers if layer is not None]
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\wms\laye
r.py", line 83, in render
yield source.render(request)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\wms\laye
r.py", line 147, in render
transparent=True, inverse=self.inverse)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ima
ge.py", line 260, in attribution_image
return aimg.draw(size=size)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ima
ge.py", line 316, in draw
self.draw_msg(msg_img, draw)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ima
ge.py", line 327, in draw_msg
text_box = self.text_box(msg_img, draw)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ima
ge.py", line 434, in text_box
text_size = self.text_size(draw)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ima
ge.py", line 292, in text_size
return draw.textsize(self.message, font=self.font)
File
"C:\Python26\lib\site-packages\mapproxy-0.8.1-py2.6.egg\mapproxy\core\ima
ge.py", line 288, in font
self._font = ImageFont.truetype(font_file(self.font_name),
self.font_size)
File
"C:\Python26\lib\site-packages\pil-1.1.7-py2.6-win32.egg\ImageFont.py", l
ine 218, in truetype
return FreeTypeFont(filename, size, index, encoding)
File
"C:\Python26\lib\site-packages\pil-1.1.7-py2.6-win32.egg\ImageFont.py", l
ine 134, in __init__
self.font = core.getfont(file, size, index, encoding)
File
"C:\Python26\lib\site-packages\pil-1.1.7-py2.6-win32.egg\ImageFont.py", l
ine 34, in __getattr__
raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20100329/1bc7c3cb/attachment.html
More information about the MapProxy
mailing list