Re: Mass update to fix pyqt5 compatibility issues in plugins

2016-12-31 Thread lewis
I enabled screen_capture plugin, and it loads fine. Here is traceback after 
running the screen-capture-now command:

Leo Log Window
Leo 5.4, build 20161231121658, Sat Dec 31 12:16:58 EST 2016
Git repo info: branch = master, commit = c84488a74ea5
Python 3.6.0, PyQt version 5.7.1
Windows 10 AMD64 (build 10.0.14393) SP0
exception executing command
Traceback (most recent call last):
  File "N:\git\leo-editor\leo\core\leoCommands.py", line 5390, in doCommand
val = command(event)
  File "N:\git\leo-editor\leo\plugins\screen_capture.py", line 179, in 
screen_capture_now
g._recorder.grab_frame(filename=filename)
  File "N:\git\leo-editor\leo\plugins\screen_capture.py", line 95, in 
grab_frame
pm = QtGui.QScreen.grabWindow(self.winId)
TypeError: grabWindow(self, sip.voidptr, x: int = 0, y: int = 0, width: int 
= -1, height: int = -1): first argument of unbound method must have type 
'QScreen'

Regards
Lewis

-- 
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.


Re: Mass update to fix pyqt5 compatibility issues in plugins

2016-12-31 Thread lewis
Here is the log after enabling stickynotes_plus:

Leo Log Window
Leo 5.4, build 20161231121658, Sat Dec 31 12:16:58 EST 2016
Git repo info: branch = master, commit = c84488a74ea5
Python 3.6.0, PyQt version 5.7.1
Windows 10 AMD64 (build 10.0.14393) SP0
loadOnePlugin: error importing plugin: leo.plugins.stickynotes_plus
Traceback (most recent call last):
  File "N:\git\leo-editor\leo\core\leoPlugins.py", line 501, in 
loadOnePlugin
__import__(moduleName)
  File "N:\git\leo-editor\leo\plugins\stickynotes_plus.py", line 32, in 

from PyQt4.QtCore import (QSize,QVariant, Qt,SIGNAL,QTimer,QString)
ModuleNotFoundError: No module named 'PyQt4'
loadOnePlugin: can not load enabled plugin: leo.plugins.stickynotes_plus
reading: N:\git\leo-editor\leo\doc\LeoDocs.leo

Regards
Lewis

-- 
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.


Re: binary installer

2016-12-31 Thread Ross Burnett
Hold the presses: on my nth attempt, I got Leo working using the latest 
WinPython 3.5 package and LeoSetup-5.4
https://sourceforge.net/projects/winpython/files/WinPython_3.5/  This 
includes QT5.

Before installing Leo, I registered the python distribution using the 
included WinPython Control Panel program.

Leo 5.4, Sat Oct 22 06:39:42 2016
Git commit: after ff
Python 3.5.2, PyQt version 5.7.0
Windows 10 AMD64 (build 10.0.14393) SP0

Hallelujah (Cohen) 

Have a wonderful New Year.

Thanks again Lewis.

-- 
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.


Re: Documentation - Running Leo

2016-12-31 Thread lewis
Same traceback on the laptop running commit = c84488a74ea5
Python 3.5.2, PyQt version 5.7.1

-- 
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.


Re: Installation docs - improvements suggested

2016-12-31 Thread Ross Burnett
Thanks for that Lewis.

I have a simple question: why isn't there a simple one file installation 
.exe for Windows? 

I realize that to use this for python development, one would need python 
installed, and to create a gui application, one would need PyQT or some 
other graphic package.
But if I just wanted to use it as a PIM or to write documentation, or a 
dozen other uses, I shouldn't need python installed.

I plan to use python to create a Windows desktop application to use at work 
and to deploy to other business analysts, most of whom have little or no 
programming experience. There is simply no way I could get them or 
management to accept a program that needs the kind of installation overhead 
that Leo requires. I doubt very few other python-based applications could 
get any traction if they had a similar overhead.

I've been thinking of the trials of trying to get Leo working as a sort of 
entrance exam.  You don't get to play unless you're really committed and 
have a lot of development experience going in.

Is it the built-in functionality that requires a separate python and QT 
that would not be possible as a simple standalone application?  
Could there be a simpler version that doesn't allow the advanced 
development, and an advanced version that does?

Could Leo be structured like PyCharm or any other IDE where you simply 
install the package and then update the settings to point to the python 
installation you want to use?

Thanks.

-- 
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.


Re: Documentation - Running Leo

2016-12-31 Thread lewis
I also updated a laptop - added Pythonpath with variable values as my Leo 
folder.
It had the same traceback, but I haven't tried the 187ac6c commit as yet.

-- 
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.


Re: Documentation - Running Leo

2016-12-31 Thread lewis
Not working for me. Traceback is identical.

On Saturday, December 31, 2016 at 11:13:17 PM UTC+11, Edward K. Ream wrote:

>
> Rev 187ac6c attempts a fix.  Does it work for you?
>

-- 
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.


Re: Documentation - Running Leo

2016-12-31 Thread Edward K. Ream
On Fri, Dec 30, 2016 at 5:07 PM, lewis  wrote:

> OK thanks, added Pythonpath with variable values as my Leo folder.
> The import leo command works fine. But I get a traceback with leo.run() :
>
​...​

  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 5326, in pr
stdout.write(s2)
AttributeError: 'NoneType' object has no attribute 'write'

​A strange one.  It works for me.

Rev 187ac6c attempts a fix.  Does it work for you?

Edward

-- 
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.


Re: Mass update to fix pyqt5 compatibility issues in plugins

2016-12-31 Thread lewis
Thanks, expfolder is loading fine now

-- 
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.


Re: Mass update to fix pyqt5 compatibility issues in plugins

2016-12-31 Thread Edward K. Ream
On Sat, Dec 31, 2016 at 6:19 AM, lewis  wrote:

> I enabled the expfolder plugin. Here is the logfile output:
> ​...​
> loadOnePlugin: can not load enabled plugin: leo.plugins.expfolder
>

​Fixed at 50189f2.

EKR

-- 
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.


Re: Mass update to fix pyqt5 compatibility issues in plugins

2016-12-31 Thread lewis
I enabled the expfolder plugin. Here is the logfile output:

Leo Log Window
Leo 5.4, build 20161229051601, Thu Dec 29 05:16:01 EST 2016
Git repo info: branch = master, commit = 1f5e6a261b90
Python 3.6.0, PyQt version 5.7.1
Windows 10 AMD64 (build 10.0.14393) SP0
loadOnePlugin: can not load enabled plugin: leo.plugins.expfolder

Regards
Lewis


*On Friday, December 23, 2016 at 2:36:18 PM UTC-5, Edward K. Ream wrote:*
>>
>>
>> *The changes are straightforward, and pylint is happy in each case, but 
>> the possibility exists that the changes will have broken some plugins.*
>>
>

-- 
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.