On Thu, 25 Jan 2018 18:53:14 -0800 (PST)
lewis <lewisn...@operamail.com> wrote:

> Hi Terry,
> 
> If I give Alt-X geotag-open-server-page, Leo opens a browser window
> but rather than showing the google map, it is completely blank.
> Attrib_edi.py is active. I tried restarting leo but it didn't help.

I think the up front error is that `file` needs to be changed to `open`
in Python 3, which is what you get for using a plugin written in 2009 :)

But I think it's worth fixing.  Can you try it changing file to open?

The other issue that might come up though is breaking changes in the
Google Maps API, not sure about that.

Cheers -Terry

> Here is the console log:
> Leo Log Window
> Leo 5.6, build 20180125190418, Thu Jan 25 19:04:18 CST 2018
> Git repo info: branch = master, commit = 2f13cde67627
> Python 3.6.4, PyQt version 5.10.0
> Windows 10 AMD64 (build 10.0.16299) SP0
> isPython3: True
> caching enabled
> 
> ----------------------------------------
> Exception happened during processing of request from ('127.0.0.1',
> 55211) Traceback (most recent call last):
>   File 
> "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\socketserver.py", 
> line 317, in _handle_request_noblock
>     self.process_request(request, client_address)
>   File 
> "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\socketserver.py", 
> line 348, in process_request
>     self.finish_request(request, client_address)
>   File 
> "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\socketserver.py", 
> line 361, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File 
> "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\socketserver.py", 
> line 696, in __init__
>     self.handle()
>   File 
> "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\http\server.py", 
> line 418, in handle
>     self.handle_one_request()
>   File 
> "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\http\server.py", 
> line 406, in handle_one_request
>     method()
>   File "N:\git\leo-editor\leo\plugins\pygeotag\pygeotag.py", line
> 183, in do_GET
>     self.wfile.write(file(
> NameError: name 'file' is not defined
> ----------------------------------------
> 
> Regards
> Lewis
> 
> On Tuesday, December 15, 2009 at 4:49:54 PM UTC+11, Terry Brown wrote:
> >
> > New plugin pushed: geotag.py 
> >
> > When enabled, starting leo starts a geotagging web app. on 
> > http://127.0.0.1:8008/ (*) 
> >
> > There are two commands available via Alt-X or from the plugin's
> > submenu. 
> >
> > geotag-open-server-page   
> >
> >   opens a browser to view the geotagging web app. 
> >     
> > [snip]
> >
> > This works nicely with attrib_edit.py, if that's active. 
> >
> > todo: 
> >
> > (*) sometimes when you start leo you get an interrupted system call 
> > error, in which case the web app. won't work, you have to restart
> > leo until this doesn't happen (this is a bug that needs fixing) 
> > [snip]
> >  
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to