SyntaxError: Non-ASCII character '\xc3' in file

2017-10-24 Thread derwisch
When I am using non-ASCII characters in heading or body of a node, I get 
the above error message. Is it possible to make Leo cope with unusual 
characters?

-- 
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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread lewis
FYI a similar error w.r.t. using Python 3 debug version was discussed at 
https://groups.google.com/forum/#!topic/leo-editor/2b_-j2AOrng

Regards
Lewis

On Tuesday, October 24, 2017 at 5:01:01 PM UTC+11, derwisch wrote:
>
> I am trying to install Leo on my 32bit Intel machine running Debian 
> Stretch, with Python 2.7.13 installed.
>   [snip] /leo/plugins/qt_events.py", line 46, in 
> class LeoQtEventFilter(QtCore.QObject):
> AttributeError: 'NoneType' object has no attribute 'QObject'
>
>

-- 
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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread derwisch


Am Dienstag, 24. Oktober 2017 15:18:10 UTC+2 schrieb Chris George:
>
> Hope this helps.
>
>
This helps indeed, thank you!



> On Tue, Oct 24, 2017 at 5:54 AM, lewis  > wrote:
>
>> Johannes appears to have followed the installation guide exactly as per 
>> http://leoeditor.com/installing.html#installing-leo-on-linux
>> cd ~/leo-5.5 sudo python setup.py install
>>
>> At choice 2, should the steps for using setup.py be removed? Maybe it's 
>> best to list one surefire method, and not offer one with known problems.
>>
>> Regards
>> Lewis
>>
>> On Tuesday, October 24, 2017 at 8:10:35 PM UTC+11, Edward K. Ream wrote:
>>
>>>
>>> ​Big sigh.  setup.py causes a lot of confusion. [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+...@googlegroups.com .
>> To post to this group, send email to leo-e...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/leo-editor.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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: Rendering math in Leo

2017-10-24 Thread Offray Vladimir Luna Cárdenas
Upps. This is the last part of the sentence:


On 24/10/17 12:29, Offray Vladimir Luna Cárdenas wrote:
>
> Yes, I know that @language md is available. I'm trying to suggest
> better integration making Markdown (Pandoc's variant) the default
> choice for documentation, following Jupyter (and almost every body
> else example). I'm generally against ad-populum argument (something is
> good, because is popular), but in the case of Pandoc's Markdown, I
> think they have
>

reached a sweet spot between a format that is light, complete, popular
and extensible.


-- 
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: Playing well with other apps, tools and languages

2017-10-24 Thread Offray Vladimir Luna Cárdenas


On 24/10/17 04:02, Edward K. Ream wrote:
>
>
> On Mon, Oct 23, 2017 at 7:04 PM, Offray Vladimir Luna Cárdenas
> > wrote:
>
> I think that Leo has been too focused in playing well by
> interchanging files back and forth with others, and is time to
> think in playing well by communicating well with others
> (services). This has been mos
>
> ​t​
> ly unexplored until now is showing to be critical for the Jupyter
> integration, where Leo has a lot to offer with its advanced
> self-referential and programmable DOM (beyond HTML).
>
> ​I agree.  Please create an enhancement request.
>

Done: https://github.com/leo-editor/leo-editor/issues/561

Cheers,

Offray

-- 
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: The plan for the near future

2017-10-24 Thread Offray Vladimir Luna Cárdenas
Hi,

Seems that the enhancement proposal is already in good shape at [1],
pointing to threads and implementation details where we have talked
about this. I don't know how to make them part of the GitHub Jupyter
project though.

[1] https://github.com/leo-editor/leo-editor/issues/366

Cheers,

Offray

On 24/10/17 05:12, Edward K. Ream wrote:
> On Tue, Oct 24, 2017 at 4:54 AM, lewis  > wrote:
>
>
> If the task is complex and bigger than a mere enhancement, maybe
> consider using github projects:
> https://help.github.com/articles/creating-a-project-board/
> 
> This may help good ideas getting lost in the stream of discussions.
>
>
> ​Thanks.  I didn't know this existed.  I've created this project
>  for Jupyter
> integration.​
>
> 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.

-- 
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: Rendering math in Leo

2017-10-24 Thread Offray Vladimir Luna Cárdenas
Hi,


On 24/10/17 03:50, Edward K. Ream wrote:
> On Mon, Oct 23, 2017 at 6:59 PM, Offray Vladimir Luna Cárdenas
> > wrote:
>
> I second Terry's idea of going with Markdown, particularly Pandoc's
> variant, which is pretty mature and with an active community
> discussing
> a lot of details to support a complete writing & publishing workflow,
> the ubiquity advantage with a lot of variants everywhere (Ghost, Stack
> Overflow, GitHub, Fossil). 
>
>
> ​Some of Leo's recent documentation files use @language md.  See this
> FAQ entry
> .
> As mentioned in this FAQ, I use @button make-md-heads to generate a
> TOC.  Perhaps this process could be automated.

Yes, I know that @language md is available. I'm trying to suggest better
integration making Markdown (Pandoc's variant) the default choice for
documentation, following Jupyter (and almost every body else example).
I'm generally against ad-populum argument (something is good, because is
popular), but in the case of Pandoc's Markdown, I think they have

>
> Recently, at our local hackerspace [1] we
> opened the Data Journalism Handbook [2][2a] as a Grafoscopio document
> and produced a PDF (13 Mb) [3] from a Pandoc's Markdown file
> (500Kb) [4]
> generated from a single Grafoscopio notebook/outline (600 Kb). This
> workflow was pretty well supported by Pandoc's Markdown.
>
>
> ​It's difficult to follow the links because I don't understand Spanish.

You don't need to. We have make an English translation available in the
repository [1], for the general introduction, but we follow a "local
first" approach, favoring local language and culture, which seems
reasonable after (mostly) teaching myself English to become part of
several communities and experimenting first hand the English monopoly in
science and tech (see a critical look at [2]). The important issue is
that you can produce a nice looking long PDF from a single small, self
referential & programmable outline file, using what Pandoc and such (Leo
inspired) outlining technology has to offer. This is not available now
in the Jupyter world and you need to go with the pile of files approach.
That's why offering bridging powerful Leo outlining and Jupyter is
important.
[1] http://mutabit.com/repos.fossil/mapeda/
[2] https://aeon.co/essays/how-did-science-come-to-speak-only-english

> ​
>
>
> I proposed some Qt Web technology to show markdown (including math)
> inside Leo nodes. Maybe the IPython Qt Console, which supports this
> rendering could be inspiring here[6], but I don't know about the math
> rendering support in that case..
>
>
> ​Exactly.  I have been thinking of "borrowing" the IPython Qt Console
> approach.  Iirc, there are many complex details behind the scenes
> involved in piping the results to the console. Such details may be
> simpler within Leo, or not.
>
> In any event, the general goal is to make /all/ rendering as simple as
> possible in Leo. This is why I am proposing that we read the users
> manuals for other systems, looking for /goals/. Only after we have a
> clear idea of what we want does it make sense to look into how to do
> it.  This was an Aha that came to me on vacation.
>

Seems clever. I keep an eye on Jupyter, Clojure, Org Mode, Leo, Haskell,
and curiously,  indie video games, by browsing manuals and looking
videos and this is an important source of inspiration for Grafoscopio.

Cheers,

Offray

-- 
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: Merging leo_edit_pane into master?

2017-10-24 Thread Kent Tenney
either my memory persists or Leo persists.
Smart money is on Leo.

I might not even want persistence: clean slate
each session, looking forward to playing with multiples

On Tue, Oct 24, 2017 at 11:33 AM, Terry Brown  wrote:

> On Tue, 24 Oct 2017 11:16:21 -0500
> Kent Tenney  wrote:
>
> > Is this the code which offers persistent multiple edit panes?
>
> Ah Kent, you and your persistent insistence on persistence :-)
>
> Multiple, but not currently persistent, although that's a relatively
> short term goal.
>
> This is a bit complicated by the orthogonal free_layout -> QDock
> replacement project, layout persistence is an issue there.
>
> Perhaps a stop gap would be a command that explicitly saves / opens a
> set of leo_edit_panes.  I know that sounds like the whole point of
> persistence, but long term the goal would be for it to be less
> explicit.
>
> Cheers -Terry
>
> --
> 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.
>

-- 
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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread derwisch


Am Dienstag, 24. Oktober 2017 11:10:35 UTC+2 schrieb Edward K. Ream:
>
>
> Does that help?
>
> Edward
>

Sadly, no. Still the same messages:
Traceback (most recent call last):
  File "launchLeo.py", line 8, in 
leo.core.runLeo.run()
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/runLeo.py", 
line 71, in run
g.app.loadManager.load(fileName, pymacs)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2105, in load
lm.doPrePluginsInit(fileName, pymacs)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2172, in doPrePluginsInit
lm.createGui(pymacs)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2343, in createGui
lm.createSpecialGui(gui_option, pymacs, script, windowFlag)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2358, in createSpecialGui
g.app.createDefaultGui()
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 1046, in createDefaultGui
app.createQtGui(fileName, verbose=verbose)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 1068, in createQtGui
import leo.plugins.qt_gui as qt_gui
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/plugins/qt_gui.py", 
line 12, in 
import leo.plugins.qt_events as qt_events
  File 
"/home/hannes/trash/leo-5.5/leo-editor-master/leo/plugins/qt_events.py", 
line 46, in 
class LeoQtEventFilter(QtCore.QObject):
AttributeError: 'NoneType' object has no attribute 'QObject'


 

-- 
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: Merging leo_edit_pane into master?

2017-10-24 Thread Terry Brown
On Tue, 24 Oct 2017 11:16:21 -0500
Kent Tenney  wrote:

> Is this the code which offers persistent multiple edit panes?

Ah Kent, you and your persistent insistence on persistence :-)

Multiple, but not currently persistent, although that's a relatively
short term goal.

This is a bit complicated by the orthogonal free_layout -> QDock
replacement project, layout persistence is an issue there.

Perhaps a stop gap would be a command that explicitly saves / opens a
set of leo_edit_panes.  I know that sounds like the whole point of
persistence, but long term the goal would be for it to be less
explicit.

Cheers -Terry

-- 
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: Merging leo_edit_pane into master?

2017-10-24 Thread Kent Tenney
Is this the code which offers persistent multiple edit panes?

On Tue, Oct 24, 2017 at 10:33 AM, Edward K. Ream 
wrote:

> On Mon, Oct 23, 2017 at 4:29 PM, Edward K. Ream 
> wrote:
>
> ​> ​
> ​I'll run my typical tests in the branch and let you know soon.
>
> ​Here are some minor problems.​
>
> ​1. @test batch mode sometimes fails in your branch, but I think it's a
> problem with leo.core.leoQt. For now, let's ignore this.
>
> 2. Pylint reports the following:
>
> * Module leo.core.editpane.leotextedit
> W:  3, 0: Unused QtConst imported from leo.core.leoQt (unused-import)
> W:  4, 0: Unused LeoHighlighter imported from leo.core.leoColorizer
> (unused-import)
> W:  7, 0: Unused import time (unused-import)
> .* Module leo.core.leoApp
> W: 31, 0: Unused import leo.core.editpane.editpane (unused-import)
> .74 files, time:
> 434.28 sec.​
>
> To run these tests, I made a temporary change to class LinterTable in
> leoTest.py.  I'll make the changes permanent once the code gets merged into
> master.
>
> 3. LeoPyRef.leo does not contain any of the new files, and there are no
> sentinels in any of the files.
>
> Were you using @clean?  In LeoPyRef.leo, please add @file nodes under the
> node
>
> Code-->Qt gui
>
> For example:
>
> @file editpane/editpane.py
>
> ​4. I didn't run any other tests, nor did I notice any difference in Leo's
> operation. What should I be looking for?
>
> 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.
>

-- 
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: Rendering math in Leo

2017-10-24 Thread Edward K. Ream
On Tue, Oct 24, 2017 at 8:25 AM, Terry Brown  wrote:

> I've added a pandoc renderer to leo_edit_pane,


​Excellent.  As I understand it, pandoc allows us to be more agnostic about
the markup and outputs.

Some work will be required to fully integrate pandoc into Leo. For example,
perhaps it is time to consider support for markdown and pandoc into the
(horribly complex) rst3 command.  For example, I would like rst to create a
TOC automatically for markdown input.

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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread Edward K. Ream
On Tue, Oct 24, 2017 at 8:18 AM, Chris George  wrote:

> The best install on Linux (IMHO) has always been:
>

​Thanks for this.  It's a good summary.​

1. Install prerequisites.
>
> I always install Anaconda. It solves so many weird python problems it is
> always worth it. Docutils, Pandoc, pyenchant, Sphinx, pyQT, Git, etc.
>

​I agree.  Plus it's the preferred way to use Jupyter.​

2. From my home directory: git clone https://github.com/leo-editor/
> leo-editor.git
>

​Some people like "official" releases, perhaps to please bosses.  So it
should also work to unpack the top-level leo folder from the release
anywhere, including, as you say, in your home directory.

3. I use a script to start Leo in the terminal from my home directory.
>
> #!/bin/bash
> cd leo-editor
> git pull
> launchLeo.py --session-restore --session-save
>

Thanks for this.  It seems that installation and startup instructions are
confusing for everyone.

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: Merging leo_edit_pane into master?

2017-10-24 Thread Edward K. Ream
On Mon, Oct 23, 2017 at 4:29 PM, Edward K. Ream  wrote:

​> ​
​I'll run my typical tests in the branch and let you know soon.

​Here are some minor problems.​

​1. @test batch mode sometimes fails in your branch, but I think it's a
problem with leo.core.leoQt. For now, let's ignore this.

2. Pylint reports the following:

* Module leo.core.editpane.leotextedit
W:  3, 0: Unused QtConst imported from leo.core.leoQt (unused-import)
W:  4, 0: Unused LeoHighlighter imported from leo.core.leoColorizer
(unused-import)
W:  7, 0: Unused import time (unused-import)
.* Module leo.core.leoApp
W: 31, 0: Unused import leo.core.editpane.editpane (unused-import)
.74 files, time:
434.28 sec.​

To run these tests, I made a temporary change to class LinterTable in
leoTest.py.  I'll make the changes permanent once the code gets merged into
master.

3. LeoPyRef.leo does not contain any of the new files, and there are no
sentinels in any of the files.

Were you using @clean?  In LeoPyRef.leo, please add @file nodes under the
node

Code-->Qt gui

For example:

@file editpane/editpane.py

​4. I didn't run any other tests, nor did I notice any difference in Leo's
operation. What should I be looking for?

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: Rendering math in Leo

2017-10-24 Thread Terry Brown
I've added a pandoc renderer to leo_edit_pane, but just at the moment
it's not rendering math, although it's math aware,

$ a + b = \frac{1}{2} $

renders as

a + b =

as opposed to the markdown.py renderer, which just renders it as is.

Will try and sort it out.

Cheers -Terry

On Tue, 24 Oct 2017 03:50:12 -0500
"Edward K. Ream"  wrote:

> On Mon, Oct 23, 2017 at 6:59 PM, Offray Vladimir Luna Cárdenas <
> off...@riseup.net> wrote:
> 
> > I second Terry's idea of going with Markdown, particularly Pandoc's
> > variant, which is pretty mature and with an active community
> > discussing a lot of details to support a complete writing &
> > publishing workflow, the ubiquity advantage with a lot of variants
> > everywhere (Ghost, Stack Overflow, GitHub, Fossil).
> 
> 
> ​Some of Leo's recent documentation files use @language md.  See this
> FAQ entry
> .
> As mentioned in this FAQ, I use @button make-md-heads to generate a
> TOC. Perhaps this process could be automated.
> 
> Recently, at our local hackerspace [1] we
> > opened the Data Journalism Handbook [2][2a] as a Grafoscopio
> > document and produced a PDF (13 Mb) [3] from a Pandoc's Markdown
> > file (500Kb) [4] generated from a single Grafoscopio
> > notebook/outline (600 Kb). This workflow was pretty well supported
> > by Pandoc's Markdown.
> >
> 
> ​It's difficult to follow the links because I don't understand
> Spanish.​
> 
> >
> > I proposed some Qt Web technology to show markdown (including math)
> > inside Leo nodes. Maybe the IPython Qt Console, which supports this
> > rendering could be inspiring here[6], but I don't know about the
> > math rendering support in that case..
> >
> 
> ​Exactly.  I have been thinking of "borrowing" the IPython Qt Console
> approach.  Iirc, there are many complex details behind the scenes
> involved in piping the results to the console. Such details may be
> simpler within Leo, or not.
> 
> In any event, the general goal is to make *all* rendering as simple as
> possible in Leo. This is why I am proposing that we read the users
> manuals for other systems, looking for *goals*. Only after we have a
> clear idea of what we want does it make sense to look into how to do
> it.  This was an Aha that came to me on vacation.
> 
> 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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread Chris George
The best install on Linux (IMHO) has always been:

1. Install prerequisites.

I always install Anaconda. It solves so many weird python problems it is
always worth it. Docutils, Pandoc, pyenchant, Sphinx, pyQT, Git, etc.

2. From my home directory: git clone
https://github.com/leo-editor/leo-editor.git

3. I use a script to start Leo in the terminal from my home directory.

#!/bin/bash
cd leo-editor
git pull
launchLeo.py --session-restore --session-save

I have followed this procedure every time I need to install Leo on a new
machine. It always works.

Hope this helps.

Chris



On Tue, Oct 24, 2017 at 5:54 AM, lewis  wrote:

> Johannes appears to have followed the installation guide exactly as per
> http://leoeditor.com/installing.html#installing-leo-on-linux
> cd ~/leo-5.5 sudo python setup.py install
>
> At choice 2, should the steps for using setup.py be removed? Maybe it's
> best to list one surefire method, and not offer one with known problems.
>
> Regards
> Lewis
>
> On Tuesday, October 24, 2017 at 8:10:35 PM UTC+11, Edward K. Ream wrote:
>
>>
>> ​Big sigh.  setup.py causes a lot of confusion. [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.
>

-- 
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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread lewis
Johannes appears to have followed the installation guide exactly as per 
http://leoeditor.com/installing.html#installing-leo-on-linux
cd ~/leo-5.5 sudo python setup.py install

At choice 2, should the steps for using setup.py be removed? Maybe it's 
best to list one surefire method, and not offer one with known problems.

Regards
Lewis

On Tuesday, October 24, 2017 at 8:10:35 PM UTC+11, Edward K. Ream wrote:

>
> ​Big sigh.  setup.py causes a lot of confusion. [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.


Re: The plan for the near future

2017-10-24 Thread Edward K. Ream
On Tue, Oct 24, 2017 at 4:54 AM, lewis  wrote:

>
> If the task is complex and bigger than a mere enhancement, maybe consider
> using github projects: https://help.github.com/
> articles/creating-a-project-board/
> This may help good ideas getting lost in the stream of discussions.
>

​Thanks.  I didn't know this existed.  I've created this project
 for Jupyter
integration.​

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: The plan for the near future

2017-10-24 Thread lewis


On Tuesday, October 24, 2017 at 8:00:39 PM UTC+11, Edward K. Ream wrote:
>
>
> I'm starting to feel the limitations of long-distance collaboration in 
> these discussions.  It's difficult for me to hold the possibilities in my 
> mind.  The leo-editor ​discussions are a form of notes, but we have so many 
> different kinds of discussions that one thing drives out another.
>
> Is there an enhancement item relating to this?  If not, could you create 
> one.  Please make it as short as possible, but no shorter ;-)
>
>
If the task is complex and bigger than a mere enhancement, maybe consider 
using github projects: 
https://help.github.com/articles/creating-a-project-board/
This may help good ideas getting lost in the stream of discussions.

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.


Please fix pylint complaints in leo_cloud plugin

2017-10-24 Thread Edward K. Ream
The complaints are:

Module leo.plugins.leo_cloud
E:421,18: Class 'LeoCloud' has no 'recursive_hash3' member; maybe 
'recursive_hash'? (no-member)
W:608,-1: String statement has no effect (pointless-string-statement)

The "pointless" string statement is a triple-quoted string that comments 
out code, including recursive_hash3.  Not sure what the intention is, so I 
don't want to mess with the code.

Thanks.

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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread Edward K. Ream
On Tue, Oct 24, 2017 at 1:01 AM, derwisch <
johannes.hues...@med.uni-heidelberg.de> wrote:

> I am trying to install Leo on my 32bit Intel machine running Debian
> Stretch, with Python 2.7.13 installed. I downloaded the latest sources
> using git clone. Then I tried to install Leo typring
> cd ~/leo-5.5 sudo python setup.py install
> and got the error message "cd: Too many arguments".
>

​Big sigh.  setup.py causes a lot of confusion. It's not your fault :-)

Leo does not have to be installed on Linux.  Just put the unpacked leo
folder anywhere you like.  Then, you just run python launchLeo.py
--gui=qttabs.  As always, it's a good idea to create aliases to make this
easier.

Does that help?

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: Playing well with other apps, tools and languages

2017-10-24 Thread Edward K. Ream
On Mon, Oct 23, 2017 at 7:04 PM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:

> I think that Leo has been too focused in playing well by interchanging
> files back and forth with others, and is time to think in playing well by
> communicating well with others (services). This has been mos
> ​t​
> ly unexplored until now is showing to be critical for the Jupyter
> integration, where Leo has a lot to offer with its advanced
> self-referential and programmable DOM (beyond HTML).
>
> ​I agree.  Please create an enhancement request.

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: The plan for the near future

2017-10-24 Thread Edward K. Ream
On Mon, Oct 23, 2017 at 5:22 PM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:

> I think, that for the case of Jupyter, switching shouldn't be the goal,
> but integration and/or complementing each other, as I have argued lengthy
> from several years. That would need client/server approach (as have done
> other programs), which doesn't necessary mean web client rendering.
>
​I agree with the goal of the closest possible integration with Jupyter.

And it makes sense to integrate with the jupyter server to make that happen.

I'm glad you reminded me that *using* the jupyter server will not expose
Leo to any further security problems, not does it require that Leo use web
rendering.

I'm starting to feel the limitations of long-distance collaboration in
these discussions.  It's difficult for me to hold the possibilities in my
mind.  The leo-editor ​discussions are a form of notes, but we have so many
different kinds of discussions that one thing drives out another.

Is there an enhancement item relating to this?  If not, could you create
one.  Please make it as short as possible, but no shorter ;-)

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: Rendering math in Leo

2017-10-24 Thread Edward K. Ream
On Mon, Oct 23, 2017 at 6:59 PM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:

> I second Terry's idea of going with Markdown, particularly Pandoc's
> variant, which is pretty mature and with an active community discussing
> a lot of details to support a complete writing & publishing workflow,
> the ubiquity advantage with a lot of variants everywhere (Ghost, Stack
> Overflow, GitHub, Fossil).


​Some of Leo's recent documentation files use @language md.  See this FAQ
entry
. As
mentioned in this FAQ, I use @button make-md-heads to generate a TOC.
Perhaps this process could be automated.

Recently, at our local hackerspace [1] we
> opened the Data Journalism Handbook [2][2a] as a Grafoscopio document
> and produced a PDF (13 Mb) [3] from a Pandoc's Markdown file (500Kb) [4]
> generated from a single Grafoscopio notebook/outline (600 Kb). This
> workflow was pretty well supported by Pandoc's Markdown.
>

​It's difficult to follow the links because I don't understand Spanish.​

>
> I proposed some Qt Web technology to show markdown (including math)
> inside Leo nodes. Maybe the IPython Qt Console, which supports this
> rendering could be inspiring here[6], but I don't know about the math
> rendering support in that case..
>

​Exactly.  I have been thinking of "borrowing" the IPython Qt Console
approach.  Iirc, there are many complex details behind the scenes involved
in piping the results to the console. Such details may be simpler within
Leo, or not.

In any event, the general goal is to make *all* rendering as simple as
possible in Leo. This is why I am proposing that we read the users manuals
for other systems, looking for *goals*. Only after we have a clear idea of
what we want does it make sense to look into how to do it.  This was an Aha
that came to me on vacation.

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.


Error starting Leo: 'NoneType' object has no attribute 'QObject'

2017-10-24 Thread derwisch
I am trying to install Leo on my 32bit Intel machine running Debian 
Stretch, with Python 2.7.13 installed. I downloaded the latest sources 
using git clone. Then I tried to install Leo typring
cd ~/leo-5.5 sudo python setup.py install
and got the error message "cd: Too many arguments". Then, I inserted a 
strategic newline within the proposed code above, and got the error message 
"python: can't open file 'setup.py': [Errno 2] No such file or directory". 
There seems to be more than one way to run Leo, so I tried running 
python launchLeo.py 
on which Python displayed the following messages:

setting leoID from os.getenv('USER'): 'hannes'
reading settings in /home/hannes/trash/leo-5.5/leo-editor-master/leo/config/
leoSettings.leo
reading settings in /home/hannes/myLeoSettings.leo
Traceback (most recent call last):
  File "launchLeo.py", line 8, in 
leo.core.runLeo.run()
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/runLeo.py", 
line 71, in run
g.app.loadManager.load(fileName, pymacs)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2105, in load
lm.doPrePluginsInit(fileName, pymacs)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2172, in doPrePluginsInit
lm.createGui(pymacs)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2343, in createGui
lm.createSpecialGui(gui_option, pymacs, script, windowFlag)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 2358, in createSpecialGui
g.app.createDefaultGui()
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 1046, in createDefaultGui
app.createQtGui(fileName, verbose=verbose)
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/core/leoApp.py", 
line 1068, in createQtGui
import leo.plugins.qt_gui as qt_gui
  File "/home/hannes/trash/leo-5.5/leo-editor-master/leo/plugins/qt_gui.py", 
line 12, in 
import leo.plugins.qt_events as qt_events
  File 
"/home/hannes/trash/leo-5.5/leo-editor-master/leo/plugins/qt_events.py", 
line 46, in 
class LeoQtEventFilter(QtCore.QObject):
AttributeError: 'NoneType' object has no attribute 'QObject'

Would it be better to install from the packages provided by Ville Vaino?

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