fff-monitoring

Adrian Schmutzler mail at adrianschmutzler.de
Mo Nov 13 19:19:00 CET 2017


Deshalb will ich ja ein Patch, das mapnik und tilestache auf python3 hebt...

> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces at freifunk.net] On Behalf
> Of 83a
> Sent: Montag, 13. November 2017 19:15
> To: franken-dev at freifunk.net
> Subject: Re: fff-monitoring
> 
> hallo tim,
> 
> in welcher version verwendest du tilestach?
> wie hast du es installiert?
> so rein geraten schaut das eher nach einem TileStach bug aus. er versucht
> auf StringIO zuzugreifen, das ist aber nicht definiert, d.h.
> es fehlt wahrscheinlich der import.
> 
> mit etwas glück bekommst du die version damit heraus:
> python -c "import TileStache; print(TileStache.__version__)"
> 
> In der aktuellen version kommt 'StringIO' (das den Fehler auslöst) nicht
mehr
> in Core.py vor.
> 
> https://github.com/TileStache/TileStache/blob/master/TileStache/Core.py
> 
> schöne grüße,
> benedikt
> 
> 
> On Sat, 11 Nov 2017 11:03:34 +0100
> Tim Niemeyer <tim at tn-x.org> wrote:
> 
> > Hi
> >
> > Am Mittwoch, den 08.11.2017, 21:33 +0100 schrieb 83a:
> > > außerdem lies sich das setup deutlich vereinfachen, tilestach läuft
> > > jetzt auch unter python3. zumindest für die funktionen die bei der
> > > ffmap verwendet werden.
> >
> > Würde das dieses Problem fixen?:
> > --- %< ---
> > Nov 11 11:02:11 fff-monitoring uwsgi_python[27730]: Traceback (most
> > recent call last): Nov 11 11:02:11 fff-monitoring
> > uwsgi_python[27730]:   File
> > "/usr/lib/python2.7/dist-packages/TileStache/__init__.py", line 413,
> > in __call__ Nov 11 11:02:11 fff-monitoring
> > uwsgi_python[27730]:     status_code, headers, content =
> > requestHandler2(self.config, path_info, query_string, script_name) Nov
> > 11 11:02:11 fff-monitoring uwsgi_python[27730]:   File
> > "/usr/lib/python2.7/dist-packages/TileStache/__init__.py", line 286,
> > in requestHandler2 Nov 11 11:02:11 fff-monitoring
> > uwsgi_python[27730]:     status_code, headers, content =
> > layer.getTileResponse(coord, extension) Nov 11 11:02:11 fff-monitoring
> > uwsgi_python[27730]:   File
> > "/usr/lib/python2.7/dist-packages/TileStache/Core.py", line 432, in
> > getTileResponse Nov 11 11:02:11 fff-monitoring
> > uwsgi_python[27730]:     tile = self.render(coord, format) Nov 11
> > 11:02:11 fff-monitoring uwsgi_python[27730]:   File
> > "/usr/lib/python2.7/dist-packages/TileStache/Core.py", line 557, in
> > render Nov 11 11:02:11 fff-monitoring uwsgi_python[27730]:     buff =
> > StringIO() Nov 11 11:02:11 fff-monitoring uwsgi_python[27730]:
> > NameError: global name 'StringIO' is not defined Nov 11 11:02:11
> > fff-monitoring uwsgi_python[27730]: [pid: 27734|app: 0|req: 1/1]
> > 2a02:810d:8ac0:33b2:4c67:5040:92e8:ca72 () {46 vars in 844 bytes} [Sat
> > Nov 11 11:02:11 2017] GET /tiles/links_and_routers/11/1087/699.png =>
> > generated 0 bytes in
> > 27 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0)
> > --- >% ---
> >
> > Tim
> 
> --
> franken-dev mailing list
> franken-dev at freifunk.net
> http://lists.freifunk.net/mailman/listinfo/franken-dev-freifunk.net



Mehr Informationen über die Mailingliste franken-dev