Re: Installing Leo in wsl Ubuntu-23.04

2024-10-18 Thread Edward K. Ream
On Thu, Oct 17, 2024 at 8:19 PM Edward K. Ream  wrote:

> On Thu, Oct 17, 2024 at 5:41 PM John Clark 
> wrote:
>
>> Apologies in advance if these two options have already been mentioned:
>>
>
> No need ever to apologize. And these are great new ideas.
>

On second thought, using a new package manager is unlikely to help. The
problem is with wsl, not Leo.

Again, no need to apologize. Everything about the SageMath project is
tricky and confusing. Every morning I awake with new ideas. This morning I
see that *maybe* installing (in wsl) a driver for my RTX 3080 graphics
board might help.

I'm going to put wsl issues on hold temporarily and concentrate on an
easier problem. Leo issue #4105
 suggests fixing
Leo's ancient IPython bridge. SageMath runs on top of IPython, so
investigating IPython is relevant. I'll say more in another post.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS07yRYPDhjeHUPhmOABkma8cLLe04GAV64dX7NfrGM%2B5w%40mail.gmail.com.


Re: Installing Leo in wsl Ubuntu-23.04

2024-10-17 Thread Edward K. Ream
On Thu, Oct 17, 2024 at 5:41 PM John Clark 
wrote:

> Apologies in advance if these two options have already been mentioned:
>

No need ever to apologize. And these are great new ideas.

I'll try them out.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3AANL78%2BYa%2BuaDsxreu-Ubzo22C%2BtEZMQ9w0EdSXbnQQ%40mail.gmail.com.


Re: Installing Leo in wsl Ubuntu-23.04

2024-10-17 Thread John Clark
Apologies in advance if these two options have already been mentioned: 
Just noting two alternative paths to get leo up and running that work great 
under linux and may also work (perhaps with some tweaking, perhaps not 
I can't say as I ditched Windows for linux 20 years ago):

UV - a rust alternative/successor to pip (Mac/Linux/Windows)
https://github.com/astral-sh/uv

With uv installed (which is as simple as downloading and giving exec 
permissions to the prebuilt binary), Leo is running in a matter of seconds 
on my linux box via the one liner:
uv run --with leo leo
(of course uv has all the knobs to specify specific versions etc)
uv will even install it's own version of python
uv has many more features than pip

If this doesn't work either on windows directly or via WSL, then (via the 
--script feature of uv) it shouldn't be difficult to write a single .py 
wrapper script, containing specifically-tweaked dependency metadata, to run 
leo with a bespoke list of dependendencies.


nix - (Mac/Linux/Windows-via-WSL2)
I recommend the alternate nix installer by Determinate Systems:
https://github.com/DeterminateSystems/nix-installer

nix is an amazing package manager. 
Leo is already packaged in nix: 
https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=leo-editor

When nix is installed via the Determinate installer (which uses flakes by 
default), then nix is up and running (without even being "installed") with 
this one liner:
nix run nixpkgs#leo-editor

Warning: There is quite a learning curve to nix. But once you're over the 
hump, there's no going back.

I hope these options help.

Cheers


On Thursday, October 17, 2024 at 8:51:26 PM UTC+11 Edward K. Ream wrote:

> On Wed, Oct 16, 2024 at 5:00 PM lewis  wrote:
>
> Here is a summary procedure on running Leo on wsl Ubuntu-24.04 and some 
>> installation issues Edward experienced. Thomas - thanks for your comments 
>> on QtWayland.
>>
>
> Many thanks for this summary. I have just created info item #4106 
>  to discuss Sage, 
> IPython and Leo.
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6db2cbdb-56cc-40dd-b13e-4eee2c84a2e4n%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu-23.04

2024-10-17 Thread Edward K. Ream
On Wed, Oct 16, 2024 at 5:00 PM lewis  wrote:

Here is a summary procedure on running Leo on wsl Ubuntu-24.04 and some
> installation issues Edward experienced. Thomas - thanks for your comments
> on QtWayland.
>

Many thanks for this summary. I have just created info item #4106
 to discuss Sage,
IPython and Leo.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1PtKbR%3Dk9A9DjNF4botP5ag-xAVGhvt%3DE38kgiRWDBGg%40mail.gmail.com.


Re: Installing Leo in wsl Ubuntu-23.04

2024-10-16 Thread Thomas Passin
Wow, what a trek!  Thank you for pulling all this together for us.  And 
most of it will apply to any Ubuntu install, not just on WSL.

On Wednesday, October 16, 2024 at 6:00:05 PM UTC-4 lewis wrote:

> Here is a summary procedure on running Leo on wsl Ubuntu-24.04 and some 
> installation issues Edward experienced. Thomas - thanks for your comments 
> on QtWayland.
>
> I use the recommended github installation method. See 
> https://leo-editor.github.io/leo-editor/installing.html
> This summary is focused on using Git to install Leo. 
>
> Go to Microsoft Store
> search Ubuntu-24.04 press Get button.
>
> Installing, this may take a few minutes...
> [SNIP]
> Installation successful!
>
> Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 
> 5.15.153.1-microsoft-standard-WSL2 x86_64)
>
>  * Documentation:  https://help.ubuntu.com
>  * Management: https://landscape.canonical.com
>  * Support:https://ubuntu.com/pro
>
> [SNIP]
>
> # Git is installed by default
>
> *lewisneal@PEGWS001:~$ git --versiongit version 2.43.0*
>
> # Python3 is installed by default
>
> *lewisneal@PEGWS001:~$ python3 --versionPython 3.12.3*
>
> # Update Ubuntu
>
> *$ sudo apt-get update*
> # Install pip
> # check if pip may already be installed with pip version
>
>
> *lewisneal@PEGWS001:~$ pip3 --version Command 'pip3' not found, but can be 
> installed with: sudo apt install python3-pip*
>
>
>
>
>
>
>
>
>
>
>
>
> *lewisneal@PEGWS001:~$ sudo apt install python3-pipReading package 
> lists... DoneBuilding dependency tree... DoneReading state information... 
> DoneThe following additional packages will be installed:  [SNIP]The 
> following packages will be upgraded:  [SNIP]3 upgraded, 66 newly installed, 
> 0 to remove and 32 not upgraded.Need to get 83.0 MB of archives.After this 
> operation, 302 MB of additional disk space will be used.Do you want to 
> continue? [Y/n]*
> *[SNIP]*
> # lots of unpacking. Here is summary, note that libatomic1 gets installed 
>
>
>
>
>
> *Setting up python3-wheel (0.42.0-2) ...Setting up libatomic1:amd64 
> (14.2.0-4ubuntu2~24.04) ...Setting up python3-pip (24.0+dfsg-1ubuntu1) 
> ...[SNIP]lewisneal@PEGWS001:~$*
>
> # Install Leo
>
> *$ git clone https://github.com/leo-editor/leo-editor.git 
> $ cd leo-editor*
>
> # Note - When using pip, the "--break-system-packages" option is needed.
> # So use:
> *~/leo-editor$ python3 -m pip install --break-system-packages -r 
> requirements.txt*
>
> # Lots of downloads
>
>
>
>
>
> *[SNIP]Successfully built metaInstalling collected packages: tk, 
> snowballstemmer, PyQt6-WebEngineSubwheel-Qt6, PyQt6-Qt6, pscript, [SNIP] 
> PyQt6-WebEngine, PyQt6-QScintilla, matplotlib, keyring, twine  WARNING: The 
> script depyc is installed in '/home/lewisneal/.local/bin' which is not on 
> PATH.  Consider adding this directory to PATH or, if you prefer to suppress 
> this warning, use --no-warn-script-location.[SNIP]*
>   
>
> # Install libxcb-cursor0
> *~$ sudo apt install libxcb-cursor0*
>
> # Run Leo. This shows the QtWayland issue.
>
>
>
>
>
>
>
>
>
>
>
> *lewisneal@PEGWS001:~/leo-editor$ python3 launchLeo.pysetting leoID from 
> os.getenv('USER'): 'lewisneal'Failed to create wl_display (No such file or 
> directory)qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in 
> "" even though it was found.qt.qpa.plugin: From 6.5.0, xcb-cursor0 or 
> libxcb-cursor0 is needed to load the Qt xcb platform plugin.qt.qpa.plugin: 
> Could not load the Qt platform plugin "xcb" in "" even though it was 
> found.This application failed to start because no Qt platform plugin could 
> be initialized. Reinstalling the application may fix this problem.Available 
> platform plugins are: wayland, wayland-egl, minimalegl, eglfs, vnc, xcb, 
> linuxfb, offscreen, minimal, vkkhrdisplay.Aborted (core 
> dumped)lewisneal@PEGWS001:~/leo-editor$*
>
> # Fix problem with qt.qpa.plugin:
>
> *$ sudo apt install qt6-wayland*
> # For information https://packages.ubuntu.com/noble/qt6-wayland
> # or link suggested by Thomas: https://pkgs.org/download/qt6-wayland
>
>
> # These 2 packages are required to fix AttributeError: 'NoneType' object 
> has no attribute 'QWebEngineView'
>
> *$ sudo apt install libnss3  # required $ sudo apt install libxkbfile1  # 
> required*
>
>
> # This package is required to fix ImportError: libasound.so.2: cannot open 
> shared object file: No such file or directory
> *$ sudo apt install libasound2t64*
>
> Finally I have Leo working fully on wsl Ubuntu-24.04, with both Freewin 
> and VR3 plugins running. Leo starts and runs but you may still see error 
> messages about qt.qpa.plugin.
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9188b87f-9879-405

Installing Leo in wsl Ubuntu-23.04

2024-10-16 Thread lewis
Here is a summary procedure on running Leo on wsl Ubuntu-24.04 and some 
installation issues Edward experienced. Thomas - thanks for your comments 
on QtWayland.

I use the recommended github installation method. See 
https://leo-editor.github.io/leo-editor/installing.html
This summary is focused on using Git to install Leo. 

Go to Microsoft Store
search Ubuntu-24.04 press Get button.

Installing, this may take a few minutes...
[SNIP]
Installation successful!

Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 5.15.153.1-microsoft-standard-WSL2 
x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support:https://ubuntu.com/pro

[SNIP]

# Git is installed by default

*lewisneal@PEGWS001:~$ git --versiongit version 2.43.0*

# Python3 is installed by default

*lewisneal@PEGWS001:~$ python3 --versionPython 3.12.3*

# Update Ubuntu

*$ sudo apt-get update*
# Install pip
# check if pip may already be installed with pip version


*lewisneal@PEGWS001:~$ pip3 --version Command 'pip3' not found, but can be 
installed with: sudo apt install python3-pip*












*lewisneal@PEGWS001:~$ sudo apt install python3-pipReading package lists... 
DoneBuilding dependency tree... DoneReading state information... DoneThe 
following additional packages will be installed:  [SNIP]The following 
packages will be upgraded:  [SNIP]3 upgraded, 66 newly installed, 0 to 
remove and 32 not upgraded.Need to get 83.0 MB of archives.After this 
operation, 302 MB of additional disk space will be used.Do you want to 
continue? [Y/n]*
*[SNIP]*
# lots of unpacking. Here is summary, note that libatomic1 gets installed 





*Setting up python3-wheel (0.42.0-2) ...Setting up libatomic1:amd64 
(14.2.0-4ubuntu2~24.04) ...Setting up python3-pip (24.0+dfsg-1ubuntu1) 
...[SNIP]lewisneal@PEGWS001:~$*

# Install Leo

*$ git clone https://github.com/leo-editor/leo-editor.git$ cd leo-editor*

# Note - When using pip, the "--break-system-packages" option is needed.
# So use:
*~/leo-editor$ python3 -m pip install --break-system-packages -r 
requirements.txt*

# Lots of downloads





*[SNIP]Successfully built metaInstalling collected packages: tk, 
snowballstemmer, PyQt6-WebEngineSubwheel-Qt6, PyQt6-Qt6, pscript, [SNIP] 
PyQt6-WebEngine, PyQt6-QScintilla, matplotlib, keyring, twine  WARNING: The 
script depyc is installed in '/home/lewisneal/.local/bin' which is not on 
PATH.  Consider adding this directory to PATH or, if you prefer to suppress 
this warning, use --no-warn-script-location.[SNIP]*
  

# Install libxcb-cursor0
*~$ sudo apt install libxcb-cursor0*

# Run Leo. This shows the QtWayland issue.











*lewisneal@PEGWS001:~/leo-editor$ python3 launchLeo.pysetting leoID from 
os.getenv('USER'): 'lewisneal'Failed to create wl_display (No such file or 
directory)qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in 
"" even though it was found.qt.qpa.plugin: From 6.5.0, xcb-cursor0 or 
libxcb-cursor0 is needed to load the Qt xcb platform plugin.qt.qpa.plugin: 
Could not load the Qt platform plugin "xcb" in "" even though it was 
found.This application failed to start because no Qt platform plugin could 
be initialized. Reinstalling the application may fix this problem.Available 
platform plugins are: wayland, wayland-egl, minimalegl, eglfs, vnc, xcb, 
linuxfb, offscreen, minimal, vkkhrdisplay.Aborted (core 
dumped)lewisneal@PEGWS001:~/leo-editor$*

# Fix problem with qt.qpa.plugin:

*$ sudo apt install qt6-wayland*
# For information https://packages.ubuntu.com/noble/qt6-wayland
# or link suggested by Thomas: https://pkgs.org/download/qt6-wayland


# These 2 packages are required to fix AttributeError: 'NoneType' object 
has no attribute 'QWebEngineView'

*$ sudo apt install libnss3  # required $ sudo apt install libxkbfile1  # 
required*


# This package is required to fix ImportError: libasound.so.2: cannot open 
shared object file: No such file or directory
*$ sudo apt install libasound2t64*

Finally I have Leo working fully on wsl Ubuntu-24.04, with both Freewin and 
VR3 plugins running. Leo starts and runs but you may still see error 
messages about qt.qpa.plugin.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/027b6c7c-0128-4d78-9b1b-b70e176dedcen%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Thomas Passin
Wayland is a more modern, very incompatible replacement for X11, the 
venerable display server used by Linux systems. It uses a different 
communication protocol. Little by little, Wayland is becoming adopted by 
various distros, not always without problems.  Virtualbox, for example,  
has problems with guest VMs that use Wayland.  To confuse matter more, I've 
seen libraries whose name sounds like they convert X11 commands to Wayland 
commands, presumably so that non-Wayland software can run using Wayland to 
actually create the display.

Since Ubuntu 22.04 (I don't have 24.04 yet) uses X11, I would have thought 
that Qt wouldn't need any Wayland libraries for it.  But maybe Qt thinks it 
shouldn't load without it, who knows?

On Tuesday, October 15, 2024 at 4:48:06 PM UTC-4 Edward K. Ream wrote:

> On Tue, Oct 15, 2024 at 3:27 PM lewis  wrote:
>
> Does Leo run and stay open?
>>
>
> Yes, but mouse clicks do not work. In fact, the only way to close Leo is 
> to shut wsl down!
>
> Try this script:
>>
>>
>>
>>
>>
>>
>>
>>
>> *# Test import PyQt6.Qt  from PyQt6.QtCore import QUrlfrom 
>> PyQt6.QtWidgets import QApplicationfrom PyQt6.QtWidgets import 
>> QMainWindowfrom PyQt6.QtWebEngineWidgets import QWebEngineViewimport sys*
>>
>
> Passes.
>
>
>>
>>
>>
>> *# PyQt6 version checkimport PyQt6from PyQt6.QtCore import 
>> qVersionprint(f"   PyQt6 version ", qVersion())*
>>
>
> Prints " PyQt6 version  6.7.3"
>
> I used it to ensure I could run VR3 and Freewin which required 
>> QWebEngineView.
>>
>
> As I said a few minutes ago, I think it's time to abandon trying to get 
> Leo working on my system.
>
> I suspect the problems relate to QtWayland , 
> a client-server architecture that presumably mediates between Windows and 
> wsl. Unlike the real Ubuntu, something like QtWayland surely must be 
> required.
>
> To repeat, I'll use the real Ubuntu if I want to play with executing sage 
> scripts from Leo.
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/846dea1b-8f84-4cbe-87e2-421a99b17cc4n%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Edward K. Ream
On Tue, Oct 15, 2024 at 3:27 PM lewis  wrote:

Does Leo run and stay open?
>

Yes, but mouse clicks do not work. In fact, the only way to close Leo is to
shut wsl down!

Try this script:
>
>
>
>
>
>
>
>
> *# Test import PyQt6.Qt  from PyQt6.QtCore import QUrlfrom
> PyQt6.QtWidgets import QApplicationfrom PyQt6.QtWidgets import
> QMainWindowfrom PyQt6.QtWebEngineWidgets import QWebEngineViewimport sys*
>

Passes.


>
>
>
> *# PyQt6 version checkimport PyQt6from PyQt6.QtCore import
> qVersionprint(f"   PyQt6 version ", qVersion())*
>

Prints " PyQt6 version  6.7.3"

I used it to ensure I could run VR3 and Freewin which required
> QWebEngineView.
>

As I said a few minutes ago, I think it's time to abandon trying to get Leo
working on my system.

I suspect the problems relate to QtWayland ,
a client-server architecture that presumably mediates between Windows and
wsl. Unlike the real Ubuntu, something like QtWayland surely must be
required.

To repeat, I'll use the real Ubuntu if I want to play with executing sage
scripts from Leo.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3q-%2B9%2B7RWCvYnDmfXv6FqJbsQCDDhikrhDqOSpLD%3DbGQ%40mail.gmail.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread lewis
Does Leo run and stay open?

Try this script:













*# Test import PyQt6.Qt  from PyQt6.QtCore import QUrlfrom 
PyQt6.QtWidgets import QApplicationfrom PyQt6.QtWidgets import 
QMainWindowfrom PyQt6.QtWebEngineWidgets import QWebEngineViewimport sys# 
PyQt6 version checkimport PyQt6from PyQt6.QtCore import qVersionprint(f" 
  PyQt6 version ", qVersion())*

I used it to ensure I could run VR3 and Freewin which required 
QWebEngineView.
On Wednesday, October 16, 2024 at 5:18:57 AM UTC+11 tbp1...@gmail.com wrote:

> Thanks pretty overwhelming, isn't it?  I didn't see anything that failed. 
> There was a message about Zink, whatever that is.  I've seen that kind of 
> message on some of my VMs but it doesn't seem to prevent Leo from running 
> or acting correctly. So I'm out of suggestions for the moment.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/ae68e0b4-8f67-4e3d-ad48-4a3834debe42n%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Thomas Passin
LSB is basically dead.  That's probably why you don't have lsb_release:

https://en.wikipedia.org/wiki/Linux_Standard_Base

On Tuesday, October 15, 2024 at 11:05:34 AM UTC-4 Edward K. Ream wrote:

> On Tue, Oct 15, 2024 at 6:45 AM lewis wrote:
>
> In response to Edward's request for experiences running Leo on wsl, here 
>> is a summary on running Leo on wsl Ubuntu-22.04 using the recommended 
>> github installation method. See 
>> https://leo-editor.github.io/leo-editor/installing.html for the basic 
>> procedure.
>> In wsl I did *NOT* have success using *pip install leo*, so this summary 
>> is focused on using Git to install Leo. 
>>
>
> No joy here.
>
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:Ubuntu 24.04.1 LTS
> Release:24.04
> Codename:   noble
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/613eab93-bfae-4dc1-9232-2860a0b62fa7n%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Thomas Passin
Thanks pretty overwhelming, isn't it?  I didn't see anything that failed. 
There was a message about Zink, whatever that is.  I've seen that kind of 
message on some of my VMs but it doesn't seem to prevent Leo from running 
or acting correctly. So I'm out of suggestions for the moment.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6c3a7ef5-e301-42ab-9d65-d6fbf6771e1en%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Edward K. Ream
On Tue, Oct 15, 2024 at 6:45 AM lewis wrote:

In response to Edward's request for experiences running Leo on wsl, here is
> a summary on running Leo on wsl Ubuntu-22.04 using the recommended github
> installation method. See
> https://leo-editor.github.io/leo-editor/installing.html for the basic
> procedure.
> In wsl I did *NOT* have success using *pip install leo*, so this summary
> is focused on using Git to install Leo.
>

No joy here.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 24.04.1 LTS
Release:24.04
Codename:   noble

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2Z14QJEhVKCz_wLKJ5QQmZfZux3YzewGdjbfJX%2B9n8VA%40mail.gmail.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Edward K. Ream
On Tue, Oct 15, 2024 at 9:21 AM Thomas Passin  wrote:

Per the referenced URL, setting this environmental variable
will produce a more detailed message about what Qt found missing:

export QT_DEBUG_PLUGINS=1

Thanks.  Here's the dump. I removed
"/home/edreamleo/.local/lib/python3.12/site-packages"  from most paths

Q starts...

(base) edreamleo@BLD:~$ leo

# Removed "/home/edreamleo/.local/lib/python3.12/site-packages"  from most
paths
qt.core.plugin.factoryloader: checking directory path
".../PyQt6/Qt6/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqlinuxfb.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archlevel": 1,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data
QList("linuxfb")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqeglfs.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archlevel": 1,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqxcb.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archlevel": 1,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqwayland-egl.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland-egl"
]
},
"archlevel": 1,
"className": "QWaylandEglPlatformIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data
QList("wayland-egl")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqwayland-generic.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland"
]
},
"archlevel": 1,
"className": "QWaylandIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data
QList("wayland")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vkkhrdisplay"
]
},
"archlevel": 1,
"className": "QVkKhrDisplayIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data
QList("vkkhrdisplay")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqminimal.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archlevel": 1,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data
QList("minimal")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqoffscreen.so"
qt.core.plugin.loader: Found metadata in lib
.../PyQt6/Qt6/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archlevel": 1,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data
QList("offscreen")
qt.core.plugin.factoryloader: looking at
".../PyQt6/Qt6/plugins/platforms/libqvnc.so"
qt.core.plugin.loader: Found meta

Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Thomas Passin
More possibly helpful information I have collected:

Some Linux distros give an error message about a missing library when 
trying to run Leo after a first-time installation.  Missing Linux libraries 
can often be identified at pkgs.org:

http://pkgs.org/

Sometimes the error message will say that "libxcb-cursor0" is needed 
(that's "cursorZero", in case the font zero looks like the letter O), and 
sometimes that's not the right package name for that distro.  pkgs.org can 
help.

Per the referenced URL, setting this environmental variable
will produce a more detailed message about what Qt found missing:

export QT_DEBUG_PLUGINS=1

On Tuesday, October 15, 2024 at 8:58:57 AM UTC-4 Thomas Passin wrote:

> Yes, you have to use --user --break-system-packages to pip-install with 
> the system's Python installation. I've finally broken down and used a venv 
> for my latest LinuxOS.  I run Leo with a script that activates the venv and 
> runs Leo with the venv.  Remember that in Linux, you have to *source* the 
> activation script. IOW, in Windows you would write something like this:
>
> venv\leo-editor\scripts\activate
>
> In Linux you need:
>
> *source* venv/leo-editor/bin/activate  # or wherever the activate script 
> is
>
> On Tuesday, October 15, 2024 at 8:23:52 AM UTC-4 Edward K. Ream wrote:
>
>> On Tue, Oct 15, 2024 at 6:45 AM lewis  wrote:
>>
>>> In response to Edward's request for experiences running Leo on wsl, here 
>>> is a summary on running Leo on wsl Ubuntu-22.04 using the recommended 
>>> github installation method. See 
>>> https://leo-editor.github.io/leo-editor/installing.html for the basic 
>>> procedure.
>>> In wsl I did *NOT* have success using *pip install leo*, so this 
>>> summary is focused on using Git to install Leo. 
>>>
>>
>> Excellent! I'll try your approach later today.
>>
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/13dc1c4c-eb36-4365-b15d-aa52a7c0277dn%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Thomas Passin
Yes, you have to use --user --break-system-packages to pip-install with the 
system's Python installation. I've finally broken down and used a venv for 
my latest LinuxOS.  I run Leo with a script that activates the venv and 
runs Leo with the venv.  Remember that in Linux, you have to *source* the 
activation script. IOW, in Windows you would write something like this:

venv\leo-editor\scripts\activate

In Linux you need:

*source* venv/leo-editor/bin/activate  # or wherever the activate script is

On Tuesday, October 15, 2024 at 8:23:52 AM UTC-4 Edward K. Ream wrote:

> On Tue, Oct 15, 2024 at 6:45 AM lewis  wrote:
>
>> In response to Edward's request for experiences running Leo on wsl, here 
>> is a summary on running Leo on wsl Ubuntu-22.04 using the recommended 
>> github installation method. See 
>> https://leo-editor.github.io/leo-editor/installing.html for the basic 
>> procedure.
>> In wsl I did *NOT* have success using *pip install leo*, so this summary 
>> is focused on using Git to install Leo. 
>>
>
> Excellent! I'll try your approach later today.
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f5b9a5eb-3a39-482c-9a00-4a0cb887b565n%40googlegroups.com.


Re: Installing Leo in wsl Ubuntu

2024-10-15 Thread Edward K. Ream
On Tue, Oct 15, 2024 at 6:45 AM lewis  wrote:

> In response to Edward's request for experiences running Leo on wsl, here
> is a summary on running Leo on wsl Ubuntu-22.04 using the recommended
> github installation method. See
> https://leo-editor.github.io/leo-editor/installing.html for the basic
> procedure.
> In wsl I did *NOT* have success using *pip install leo*, so this summary
> is focused on using Git to install Leo.
>

Excellent! I'll try your approach later today.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3gbDLqb5rE5ZNBLtKE4jLRerroZjqsRKB01mGCSKDw0g%40mail.gmail.com.


Installing Leo in wsl Ubuntu

2024-10-15 Thread lewis
In response to Edward's request for experiences running Leo on wsl, here is 
a summary on running Leo on wsl Ubuntu-22.04 using the recommended github 
installation method. See 
https://leo-editor.github.io/leo-editor/installing.html for the basic 
procedure.
In wsl I did *NOT* have success using *pip install leo*, so this summary is 
focused on using Git to install Leo. 

Start wsl Ubuntu
Install git
*$ sudo apt install git*

Check git is installed
*$ git --version*


*$ git clone https://github.com/leo-editor/leo-editor.git$ cd leo-editor*

Note - When using pip, the "--break-system-packages" option is needed.
So use:

*~/leo-editor$ python3 -m pip install --break-system-packages -r 
requirements.txt*

It was necessary to install these 3 packages:


*$ sudo apt install libnss3$ sudo apt install libatomic1$ sudo apt install 
libxkbfile1*

Finally I had Leo running fully on wsl Ubuntu-22.04, with both Freewin and 
VR3 plugins running. 
You may want to try wsl Ubuntu-24.04

Feel free to ask for help. For clarity I have omitted some possible * 
fetch-pack* errors. 

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/bcddd115-ba77-4772-87b9-3d1c50042f3cn%40googlegroups.com.


Re: Installing Leo Using Rye - Super Simple

2024-07-19 Thread Edward K. Ream
On Fri, Jul 19, 2024 at 4:15 AM Ray wang  wrote:

Sharing a Method to Install Leo Using Rye
>

Thanks, Ray. I'll take a look.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0P5%3DT5UzAB4O9yGs1G1c8Ct2TtefEFdtr1n9Bg5zpVqA%40mail.gmail.com.


Re: Installing Leo Using Rye - Super Simple

2024-07-19 Thread Ray wang

在2024年7月19日星期五 UTC+8 17:15:07 写道:


Sharing a Method to Install Leo Using Rye 

1.  Install Rye, it's very easy. ref (
https://rye.astral.sh/guide/installation/)
2. Execute the following commands in the terminal:

d:\some_path > rye init --virtual
d:\some_path > rye add leo
d:\some_path > rye sync
d:\some_path > rye run leo

3. There's no third step, Leo is already running 


Rye does not depend on Python, which is something other package managers 
cannot match. It can manage Python environments from a "God's-eye view".  



  I have successfully tested it on Windows. Additionally, Leo itself can 
also use Rye for environment management. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/de5e9638-ced7-4f60-b7c7-865996f6e7ccn%40googlegroups.com.


Installing Leo Using Rye - Super Simple

2024-07-19 Thread Ray wang

Sharing a Method to Install Leo Using Rye 

1.  Install Rye, it's very easy. ref 
(https://rye.astral.sh/guide/installation/)
2. Execute the following commands in the terminal:

d:\some_path > rye init --virtual
d:\some_path > rye add leo
d:\some_path > rye sync
d:\some_path > rye run leo

3. There's no third step, Leo is already running 


Rye does not depend on Python, which is something other package managers 
cannot match. It can manage Python environments from a "God's-eye view".  


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/588b4423-51a0-4be1-9cd2-f1dd36c97812n%40googlegroups.com.


Trouble installing Leo

2024-07-12 Thread Tiwo W.
 Hi folks,

I like I am doing something wrong, but I *am *following the instructions on 
the "Installing Leo" page.

I'm trying to install with pip on a freshly installed Linux VMs that 
created for the purpose of trying Leo. I'm creating&activating a Python 
virtual environment (python -m venv leo-venv)

First, PyQt6 seems to be required (even for leo-console); but it isn't 
listed as a dependency (it doesn't matter if I follow the instructions for 
installing from PyPI or from the git repository), neither in the PyPI 
package nor in the setup.cfg on Github.

And if I manually install PyQt6 (for example, with pip install -r 
requirements.txt), then Qt doesn't find its dependencies - starting with 
libEGL.so.1, but after I install that library, it's missing some 
fontcontrol library or whatever. At this point, I give up.

What am *I* missing here?

Thanks a lot,
Thomas

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/db09a169-b3f4-421d-81a7-2ba7282debcdn%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-07 Thread User User
;en_US" instead
>>>> Use @string enchant_language to specify your language
>>>> Can not create empty workbook
>>>> Traceback (most recent call last):
>>>>
>>>>   File 
>>>> "C:\Users\user\Apps\Leo\leo-editor-6.3\leo\commands\spellCommands.py", 
>>>> line 
>>>> 353, in open_dict_file
>>>> d = enchant.DictWithPWL(language, fn)
>>>>
>>>>   File 
>>>> "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\__init__.py",
>>>>  
>>>> line 781, in __init__
>>>> super().__init__(tag, broker)
>>>>
>>>>   File 
>>>> "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\__init__.py",
>>>>  
>>>> line 542, in __init__
>>>> super().__init__()
>>>>
>>>> ...
>>>>
>>>> What else do I miss? It's hard to believe that Leo can't launch due to 
>>>> missing hunspell module.
>>>>
>>>> Thank you once again!
>>>>
>>>>
>>>> On Monday, October 3, 2022 at 2:36:17 PM UTC+2 tbp1...@gmail.com wrote:
>>>>
>>>>> This follows a very common convention.  A single-letter parameter on 
>>>>> the command line takes a single dash, longer parameters take a double 
>>>>> dash. 
>>>>> E.g., 
>>>>>
>>>>> -h
>>>>> --help
>>>>>
>>>>> Some programs don't quite follow the convention (java, for example, 
>>>>> understands java -version) but Python and Leo do.
>>>>>
>>>>> On Monday, October 3, 2022 at 8:30:48 AM UTC-4 Thomas Passin wrote:
>>>>>
>>>>>> I believe you need to type two dashes for the "editable" parameter:
>>>>>>
>>>>>> pip install --editable 
>>>>>>
>>>>>>
>>>>>> On Monday, October 3, 2022 at 7:23:41 AM UTC-4 uu86...@gmail.com 
>>>>>> wrote:
>>>>>>
>>>>>>> I also tried to avoid cloud storage and whitespace issues by copying 
>>>>>>> Leo to another folder, but it did not help either:
>>>>>>> C:\Users\user>pip install -editable 
>>>>>>> C:\Users\user\Apps\Leo\leo-editor-6.3
>>>>>>>
>>>>>>> ERROR: ditable is not a valid editable requirement. It should either 
>>>>>>> be a path to a local project or a VCS URL (beginning with bzr+http, 
>>>>>>> bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, 
>>>>>>> git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, 
>>>>>>> hg+ssh, 
>>>>>>> hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>>>>
>>>>>>> On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:
>>>>>>>
>>>>>>>> Update: trying to deal with whitespace in the path did not help:
>>>>>>>> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
>>>>>>>> User\Apps\Leo\leo-editor-6.3"
>>>>>>>> ERROR: ditable is not a valid editable requirement. It should 
>>>>>>>> either be a path to a local project or a VCS URL (beginning with 
>>>>>>>> bzr+http, 
>>>>>>>> bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, 
>>>>>>>> git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, 
>>>>>>>> hg+ssh, 
>>>>>>>> hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>>>>> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>>>>>>>>
>>>>>>>>> Hi everyone,
>>>>>>>>>
>>>>>>>>> many thanks to Edward and the community for beautiful Leo. Need 
>>>>>>>>> your help installing it on Windows.
>>>>>>>>>
>>>>>>>>> I usually work in Linux and install Leo successfully by 
>>>>>>>>> downloading and unpacking leo-editor-6.3.zip and running launchLeo.py 
>>>>>>>>> with 
>>>>>>>>> gui=qt key. However, it did not work for me in Windows.
>>>>>>>>>
>>>>>>>>> I already have Python and Qt on my PC. This is what I tried:
>>>>>>>>> C:\Users\user>python C:\Users\user\OneDrive - 
>>>>>>>>> User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
>>>>>>>>> It fails: can't find '__main__' module in 
>>>>>>>>> 'C:\\Users\\user\\OneDrive'
>>>>>>>>>
>>>>>>>>> When I try to run pip install according to Installing from sources 
>>>>>>>>> recommendations I get:
>>>>>>>>> C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
>>>>>>>>> User\Apps\Leo\leo-editor-6.3
>>>>>>>>> ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. 
>>>>>>>>> Neither 'setup.py' nor 'pyproject.toml' found.
>>>>>>>>>
>>>>>>>>> "Installing Leo with pip" recommendation did not work for me 
>>>>>>>>> either. Also, I prefer Leo 6.3.
>>>>>>>>>
>>>>>>>>> Appreciate any advice on how to install Leo (ideally, 6.3) on 
>>>>>>>>> Windows!
>>>>>>>>>
>>>>>>>>> Kind regards, Serhii
>>>>>>>>
>>>>>>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5beb781e-a641-47ea-8ca3-615fbddf03cbn%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-07 Thread Thomas Passin
10\site-packages\enchant\__init__.py",
>>>  
>>> line 542, in __init__
>>> super().__init__()
>>>
>>> ...
>>>
>>> What else do I miss? It's hard to believe that Leo can't launch due to 
>>> missing hunspell module.
>>>
>>> Thank you once again!
>>>
>>>
>>> On Monday, October 3, 2022 at 2:36:17 PM UTC+2 tbp1...@gmail.com wrote:
>>>
>>>> This follows a very common convention.  A single-letter parameter on 
>>>> the command line takes a single dash, longer parameters take a double 
>>>> dash. 
>>>> E.g., 
>>>>
>>>> -h
>>>> --help
>>>>
>>>> Some programs don't quite follow the convention (java, for example, 
>>>> understands java -version) but Python and Leo do.
>>>>
>>>> On Monday, October 3, 2022 at 8:30:48 AM UTC-4 Thomas Passin wrote:
>>>>
>>>>> I believe you need to type two dashes for the "editable" parameter:
>>>>>
>>>>> pip install --editable 
>>>>>
>>>>>
>>>>> On Monday, October 3, 2022 at 7:23:41 AM UTC-4 uu86...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> I also tried to avoid cloud storage and whitespace issues by copying 
>>>>>> Leo to another folder, but it did not help either:
>>>>>> C:\Users\user>pip install -editable 
>>>>>> C:\Users\user\Apps\Leo\leo-editor-6.3
>>>>>>
>>>>>> ERROR: ditable is not a valid editable requirement. It should either 
>>>>>> be a path to a local project or a VCS URL (beginning with bzr+http, 
>>>>>> bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, 
>>>>>> git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, 
>>>>>> hg+ssh, 
>>>>>> hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>>>
>>>>>> On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:
>>>>>>
>>>>>>> Update: trying to deal with whitespace in the path did not help:
>>>>>>> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
>>>>>>> User\Apps\Leo\leo-editor-6.3"
>>>>>>> ERROR: ditable is not a valid editable requirement. It should either 
>>>>>>> be a path to a local project or a VCS URL (beginning with bzr+http, 
>>>>>>> bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, 
>>>>>>> git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, 
>>>>>>> hg+ssh, 
>>>>>>> hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>>>> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>>>>>>>
>>>>>>>> Hi everyone,
>>>>>>>>
>>>>>>>> many thanks to Edward and the community for beautiful Leo. Need 
>>>>>>>> your help installing it on Windows.
>>>>>>>>
>>>>>>>> I usually work in Linux and install Leo successfully by downloading 
>>>>>>>> and unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt 
>>>>>>>> key. 
>>>>>>>> However, it did not work for me in Windows.
>>>>>>>>
>>>>>>>> I already have Python and Qt on my PC. This is what I tried:
>>>>>>>> C:\Users\user>python C:\Users\user\OneDrive - 
>>>>>>>> User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
>>>>>>>> It fails: can't find '__main__' module in 
>>>>>>>> 'C:\\Users\\user\\OneDrive'
>>>>>>>>
>>>>>>>> When I try to run pip install according to Installing from sources 
>>>>>>>> recommendations I get:
>>>>>>>> C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
>>>>>>>> User\Apps\Leo\leo-editor-6.3
>>>>>>>> ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. 
>>>>>>>> Neither 'setup.py' nor 'pyproject.toml' found.
>>>>>>>>
>>>>>>>> "Installing Leo with pip" recommendation did not work for me 
>>>>>>>> either. Also, I prefer Leo 6.3.
>>>>>>>>
>>>>>>>> Appreciate any advice on how to install Leo (ideally, 6.3) on 
>>>>>>>> Windows!
>>>>>>>>
>>>>>>>> Kind regards, Serhii
>>>>>>>
>>>>>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b4b3f3ae-05c0-4a84-91e3-e00089b0eb94n%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-07 Thread User User
gt;
>>>>> ERROR: ditable is not a valid editable requirement. It should either 
>>>>> be a path to a local project or a VCS URL (beginning with bzr+http, 
>>>>> bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, 
>>>>> git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, 
>>>>> hg+ssh, 
>>>>> hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>>
>>>>> On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:
>>>>>
>>>>>> Update: trying to deal with whitespace in the path did not help:
>>>>>> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
>>>>>> User\Apps\Leo\leo-editor-6.3"
>>>>>> ERROR: ditable is not a valid editable requirement. It should either 
>>>>>> be a path to a local project or a VCS URL (beginning with bzr+http, 
>>>>>> bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, 
>>>>>> git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, 
>>>>>> hg+ssh, 
>>>>>> hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>>> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>>>>>>
>>>>>>> Hi everyone,
>>>>>>>
>>>>>>> many thanks to Edward and the community for beautiful Leo. Need your 
>>>>>>> help installing it on Windows.
>>>>>>>
>>>>>>> I usually work in Linux and install Leo successfully by downloading 
>>>>>>> and unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt 
>>>>>>> key. 
>>>>>>> However, it did not work for me in Windows.
>>>>>>>
>>>>>>> I already have Python and Qt on my PC. This is what I tried:
>>>>>>> C:\Users\user>python C:\Users\user\OneDrive - 
>>>>>>> User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
>>>>>>> It fails: can't find '__main__' module in 'C:\\Users\\user\\OneDrive'
>>>>>>>
>>>>>>> When I try to run pip install according to Installing from sources 
>>>>>>> recommendations I get:
>>>>>>> C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
>>>>>>> User\Apps\Leo\leo-editor-6.3
>>>>>>> ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. 
>>>>>>> Neither 'setup.py' nor 'pyproject.toml' found.
>>>>>>>
>>>>>>> "Installing Leo with pip" recommendation did not work for me either. 
>>>>>>> Also, I prefer Leo 6.3.
>>>>>>>
>>>>>>> Appreciate any advice on how to install Leo (ideally, 6.3) on 
>>>>>>> Windows!
>>>>>>>
>>>>>>> Kind regards, Serhii
>>>>>>
>>>>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/34f23a8c-e705-429e-a7db-b9ddafe16338n%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-03 Thread Thomas Passin
gt; Uninstalling leo-6.6.4:
>   Successfully uninstalled leo-6.6.4
>   WARNING: The scripts leo-c.exe, leo-console.exe, leo-m.exe and 
> leo-messages.exe are installed in 
> 'C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts'
>  
> which is not on PATH.
>   Consider adding this directory to PATH or, if you prefer to suppress 
> this warning, use --no-warn-script-location.
> Successfully installed leo-6.3
>
>
> C:\Users\user\Apps\Leo\leo-editor-6.3>
>
> However, my attempt to launch Leo is unsuccessful:
> C:\Users\user>python C:\Users\user\Apps\Leo\leo-editor-6.3\launchLeo.py
>
>
> ** (python3.10.exe:8084): WARNING **: 15:22:23.005: Error loading plugin: 
> 'C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\data\mingw64/lib/enchant-2\enchant_hunspell.dll':
>  
> The specified module could not be found.
>
> Leo 6.3
> Invalid language code for Enchant 'en-US'
> Using "en_US" instead
> Use @string enchant_language to specify your language
> Can not create empty workbook
> Traceback (most recent call last):
>
>   File 
> "C:\Users\user\Apps\Leo\leo-editor-6.3\leo\commands\spellCommands.py", line 
> 353, in open_dict_file
> d = enchant.DictWithPWL(language, fn)
>
>   File 
> "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\__init__.py",
>  
> line 781, in __init__
> super().__init__(tag, broker)
>
>   File 
> "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\__init__.py",
>  
> line 542, in __init__
> super().__init__()
>
> ...
>
> What else do I miss? It's hard to believe that Leo can't launch due to 
> missing hunspell module.
>
> Thank you once again!
>
>
> On Monday, October 3, 2022 at 2:36:17 PM UTC+2 tbp1...@gmail.com wrote:
>
>> This follows a very common convention.  A single-letter parameter on the 
>> command line takes a single dash, longer parameters take a double dash. 
>> E.g., 
>>
>> -h
>> --help
>>
>> Some programs don't quite follow the convention (java, for example, 
>> understands java -version) but Python and Leo do.
>>
>> On Monday, October 3, 2022 at 8:30:48 AM UTC-4 Thomas Passin wrote:
>>
>>> I believe you need to type two dashes for the "editable" parameter:
>>>
>>> pip install --editable 
>>>
>>>
>>> On Monday, October 3, 2022 at 7:23:41 AM UTC-4 uu86...@gmail.com wrote:
>>>
>>>> I also tried to avoid cloud storage and whitespace issues by copying 
>>>> Leo to another folder, but it did not help either:
>>>> C:\Users\user>pip install -editable 
>>>> C:\Users\user\Apps\Leo\leo-editor-6.3
>>>>
>>>> ERROR: ditable is not a valid editable requirement. It should either be 
>>>> a path to a local project or a VCS URL (beginning with bzr+http, 
>>>> bzr+https, 
>>>> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, 
>>>> git+ssh, 
>>>> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
>>>> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>
>>>> On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:
>>>>
>>>>> Update: trying to deal with whitespace in the path did not help:
>>>>> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
>>>>> User\Apps\Leo\leo-editor-6.3"
>>>>> ERROR: ditable is not a valid editable requirement. It should either 
>>>>> be a path to a local project or a VCS URL (beginning with bzr+http, 
>>>>> bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, 
>>>>> git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, 
>>>>> hg+ssh, 
>>>>> hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>>> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>>>>>
>>>>>> Hi everyone,
>>>>>>
>>>>>> many thanks to Edward and the community for beautiful Leo. Need your 
>>>>>> help installing it on Windows.
>>>>>>
>>>>>> I usually work in Li

Re: Need help installing Leo on Windows

2022-10-03 Thread User User
Thank you very much! I used double dash and the installer worked 
successfully:
...
Successfully built leo
Installing collected packages: leo
  Attempting uninstall: leo
Found existing installation: leo 6.6.4
Uninstalling leo-6.6.4:
  Successfully uninstalled leo-6.6.4
  WARNING: The scripts leo-c.exe, leo-console.exe, leo-m.exe and 
leo-messages.exe are installed in 
'C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts'
 
which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this 
warning, use --no-warn-script-location.
Successfully installed leo-6.3

C:\Users\user\Apps\Leo\leo-editor-6.3>

However, my attempt to launch Leo is unsuccessful:
C:\Users\user>python C:\Users\user\Apps\Leo\leo-editor-6.3\launchLeo.py


** (python3.10.exe:8084): WARNING **: 15:22:23.005: Error loading plugin: 
'C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\data\mingw64/lib/enchant-2\enchant_hunspell.dll':
 
The specified module could not be found.

Leo 6.3
Invalid language code for Enchant 'en-US'
Using "en_US" instead
Use @string enchant_language to specify your language
Can not create empty workbook
Traceback (most recent call last):

  File 
"C:\Users\user\Apps\Leo\leo-editor-6.3\leo\commands\spellCommands.py", line 
353, in open_dict_file
d = enchant.DictWithPWL(language, fn)

  File 
"C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\__init__.py",
 
line 781, in __init__
super().__init__(tag, broker)

  File 
"C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\__init__.py",
 
line 542, in __init__
super().__init__()

...

What else do I miss? It's hard to believe that Leo can't launch due to 
missing hunspell module.

Thank you once again!


On Monday, October 3, 2022 at 2:36:17 PM UTC+2 tbp1...@gmail.com wrote:

> This follows a very common convention.  A single-letter parameter on the 
> command line takes a single dash, longer parameters take a double dash. 
> E.g., 
>
> -h
> --help
>
> Some programs don't quite follow the convention (java, for example, 
> understands java -version) but Python and Leo do.
>
> On Monday, October 3, 2022 at 8:30:48 AM UTC-4 Thomas Passin wrote:
>
>> I believe you need to type two dashes for the "editable" parameter:
>>
>> pip install --editable 
>>
>>
>> On Monday, October 3, 2022 at 7:23:41 AM UTC-4 uu86...@gmail.com wrote:
>>
>>> I also tried to avoid cloud storage and whitespace issues by copying Leo 
>>> to another folder, but it did not help either:
>>> C:\Users\user>pip install -editable C:\Users\user\Apps\Leo\leo-editor-6.3
>>>
>>> ERROR: ditable is not a valid editable requirement. It should either be 
>>> a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
>>> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
>>> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
>>> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>
>>> On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:
>>>
>>>> Update: trying to deal with whitespace in the path did not help:
>>>> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
>>>> User\Apps\Leo\leo-editor-6.3"
>>>> ERROR: ditable is not a valid editable requirement. It should either be 
>>>> a path to a local project or a VCS URL (beginning with bzr+http, 
>>>> bzr+https, 
>>>> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, 
>>>> git+ssh, 
>>>> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
>>>> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>>> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>>>>
>>>>> Hi everyone,
>>>>>
>>>>> many thanks to Edward and the community for beautiful Leo. Need your 
>>>>> help installing it on Windows.
>>>>>
>>>>> I usually work in Linux and install Leo successfully by downloading 
>>>>> and unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt 
>>>>> key. 
>>>>> However, it did not work for me in Windows.
>>>>>
>>>>> I al

Need help installing Leo on Windows

2022-10-03 Thread User User
Hi everyone,

many thanks to Edward and the community for beautiful Leo. Need your help 
installing it on Windows.

I usually work in Linux and install Leo successfully by downloading and 
unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt key. 
However, it did not work for me in Windows.

I already have Python and Qt on my PC. This is what I tried:
C:\Users\user>python C:\Users\user\OneDrive - 
User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
It fails: can't find '__main__' module in 'C:\\Users\\user\\OneDrive'

When I try to run pip install according to Installing from sources 
recommendations I get:
C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
User\Apps\Leo\leo-editor-6.3
ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. Neither 
'setup.py' nor 'pyproject.toml' found.

"Installing Leo with pip" recommendation did not work for me either. Also, 
I prefer Leo 6.3.

Appreciate any advice on how to install Leo (ideally, 6.3) on Windows!

Kind regards, Serhii

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/ab6b01e3-e9cd-4ccd-8768-13ae090cd135n%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-03 Thread User User
I also tried to avoid cloud storage and whitespace issues by copying Leo to 
another folder, but it did not help either:
C:\Users\user>pip install -editable C:\Users\user\Apps\Leo\leo-editor-6.3
ERROR: ditable is not a valid editable requirement. It should either be a 
path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
svn+ssh, svn+http, svn+https, svn+svn, svn+file).

On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:

> Update: trying to deal with whitespace in the path did not help:
> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
> User\Apps\Leo\leo-editor-6.3"
> ERROR: ditable is not a valid editable requirement. It should either be a 
> path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>
>> Hi everyone,
>>
>> many thanks to Edward and the community for beautiful Leo. Need your help 
>> installing it on Windows.
>>
>> I usually work in Linux and install Leo successfully by downloading and 
>> unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt key. 
>> However, it did not work for me in Windows.
>>
>> I already have Python and Qt on my PC. This is what I tried:
>> C:\Users\user>python C:\Users\user\OneDrive - 
>> User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
>> It fails: can't find '__main__' module in 'C:\\Users\\user\\OneDrive'
>>
>> When I try to run pip install according to Installing from sources 
>> recommendations I get:
>> C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
>> User\Apps\Leo\leo-editor-6.3
>> ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. Neither 
>> 'setup.py' nor 'pyproject.toml' found.
>>
>> "Installing Leo with pip" recommendation did not work for me either. 
>> Also, I prefer Leo 6.3.
>>
>> Appreciate any advice on how to install Leo (ideally, 6.3) on Windows!
>>
>> Kind regards, Serhii
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0001654a-924c-4dbe-b756-1c06a2df3c6fn%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-03 Thread User User
Update: trying to deal with whitespace in the path did not help:
C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
User\Apps\Leo\leo-editor-6.3"
ERROR: ditable is not a valid editable requirement. It should either be a 
path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
svn+ssh, svn+http, svn+https, svn+svn, svn+file).
On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:

> Hi everyone,
>
> many thanks to Edward and the community for beautiful Leo. Need your help 
> installing it on Windows.
>
> I usually work in Linux and install Leo successfully by downloading and 
> unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt key. 
> However, it did not work for me in Windows.
>
> I already have Python and Qt on my PC. This is what I tried:
> C:\Users\user>python C:\Users\user\OneDrive - 
> User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
> It fails: can't find '__main__' module in 'C:\\Users\\user\\OneDrive'
>
> When I try to run pip install according to Installing from sources 
> recommendations I get:
> C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
> User\Apps\Leo\leo-editor-6.3
> ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. Neither 
> 'setup.py' nor 'pyproject.toml' found.
>
> "Installing Leo with pip" recommendation did not work for me either. Also, 
> I prefer Leo 6.3.
>
> Appreciate any advice on how to install Leo (ideally, 6.3) on Windows!
>
> Kind regards, Serhii

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/58ca7c6d-607c-4eae-8b6c-5287dcc516b2n%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-03 Thread Thomas Passin
This follows a very common convention.  A single-letter parameter on the 
command line takes a single dash, longer parameters take a double dash. 
E.g., 

-h
--help

Some programs don't quite follow the convention (java, for example, 
understands java -version) but Python and Leo do.

On Monday, October 3, 2022 at 8:30:48 AM UTC-4 Thomas Passin wrote:

> I believe you need to type two dashes for the "editable" parameter:
>
> pip install --editable 
>
>
> On Monday, October 3, 2022 at 7:23:41 AM UTC-4 uu86...@gmail.com wrote:
>
>> I also tried to avoid cloud storage and whitespace issues by copying Leo 
>> to another folder, but it did not help either:
>> C:\Users\user>pip install -editable C:\Users\user\Apps\Leo\leo-editor-6.3
>>
>> ERROR: ditable is not a valid editable requirement. It should either be a 
>> path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
>> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
>> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
>> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>
>> On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:
>>
>>> Update: trying to deal with whitespace in the path did not help:
>>> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
>>> User\Apps\Leo\leo-editor-6.3"
>>> ERROR: ditable is not a valid editable requirement. It should either be 
>>> a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
>>> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
>>> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
>>> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>>> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>>>
>>>> Hi everyone,
>>>>
>>>> many thanks to Edward and the community for beautiful Leo. Need your 
>>>> help installing it on Windows.
>>>>
>>>> I usually work in Linux and install Leo successfully by downloading and 
>>>> unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt key. 
>>>> However, it did not work for me in Windows.
>>>>
>>>> I already have Python and Qt on my PC. This is what I tried:
>>>> C:\Users\user>python C:\Users\user\OneDrive - 
>>>> User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
>>>> It fails: can't find '__main__' module in 'C:\\Users\\user\\OneDrive'
>>>>
>>>> When I try to run pip install according to Installing from sources 
>>>> recommendations I get:
>>>> C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
>>>> User\Apps\Leo\leo-editor-6.3
>>>> ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. 
>>>> Neither 'setup.py' nor 'pyproject.toml' found.
>>>>
>>>> "Installing Leo with pip" recommendation did not work for me either. 
>>>> Also, I prefer Leo 6.3.
>>>>
>>>> Appreciate any advice on how to install Leo (ideally, 6.3) on Windows!
>>>>
>>>> Kind regards, Serhii
>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/787c8360-6714-403e-9a39-0452c325f435n%40googlegroups.com.


Re: Need help installing Leo on Windows

2022-10-03 Thread Thomas Passin
I believe you need to type two dashes for the "editable" parameter:

pip install --editable 


On Monday, October 3, 2022 at 7:23:41 AM UTC-4 uu86...@gmail.com wrote:

> I also tried to avoid cloud storage and whitespace issues by copying Leo 
> to another folder, but it did not help either:
> C:\Users\user>pip install -editable C:\Users\user\Apps\Leo\leo-editor-6.3
>
> ERROR: ditable is not a valid editable requirement. It should either be a 
> path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>
> On Monday, October 3, 2022 at 1:11:03 PM UTC+2 User User wrote:
>
>> Update: trying to deal with whitespace in the path did not help:
>> C:\Users\user>pip install -editable "C:\Users\user\OneDrive - 
>> User\Apps\Leo\leo-editor-6.3"
>> ERROR: ditable is not a valid editable requirement. It should either be a 
>> path to a local project or a VCS URL (beginning with bzr+http, bzr+https, 
>> bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, 
>> git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, 
>> svn+ssh, svn+http, svn+https, svn+svn, svn+file).
>> On Monday, October 3, 2022 at 1:07:11 PM UTC+2 User User wrote:
>>
>>> Hi everyone,
>>>
>>> many thanks to Edward and the community for beautiful Leo. Need your 
>>> help installing it on Windows.
>>>
>>> I usually work in Linux and install Leo successfully by downloading and 
>>> unpacking leo-editor-6.3.zip and running launchLeo.py with gui=qt key. 
>>> However, it did not work for me in Windows.
>>>
>>> I already have Python and Qt on my PC. This is what I tried:
>>> C:\Users\user>python C:\Users\user\OneDrive - 
>>> User\Apps\Leo\leo-editor-6.3\launchLeo.py --gui=qt
>>> It fails: can't find '__main__' module in 'C:\\Users\\user\\OneDrive'
>>>
>>> When I try to run pip install according to Installing from sources 
>>> recommendations I get:
>>> C:\Users\user>pip install -editable C:\Users\user\OneDrive - 
>>> User\Apps\Leo\leo-editor-6.3
>>> ERROR: Directory 'C:\\Users\\user\\OneDrive' is not installable. Neither 
>>> 'setup.py' nor 'pyproject.toml' found.
>>>
>>> "Installing Leo with pip" recommendation did not work for me either. 
>>> Also, I prefer Leo 6.3.
>>>
>>> Appreciate any advice on how to install Leo (ideally, 6.3) on Windows!
>>>
>>> Kind regards, Serhii
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/fd916e78-fcc3-48a1-ad2d-679f04c357c1n%40googlegroups.com.


Nice file to help with installing Leo

2020-07-23 Thread Félix
Hi! Just thought Id mentions this,

I've installed Leo many times, and when installing on many debian based 
linux distros (the most common) an xml "mimetype' file is often required to 
have icons and menu entries to access leo and open leo files by clicking on 
their icons, etc. 

The file I'm talking about is so small I might as well type it here, it's 
leo-outline.xml :
http://www.freedesktop.org/standards/shared-mime-info";>

leo-outline file




As a suggestion.,  I always thought this should be in the root folder of 
Leo as a helper file, for people to access easily at a whim when 
installing. (logical place to be for giving out to an end-user to use on 
his system/OS)
--
Félix

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/36a5d560-ede9-4ae6-ada5-d0827319df0fo%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-05-04 Thread Viktor Ransmayr
Hello Matt,

Am Di., 5. Mai 2020 um 01:25 Uhr schrieb Matt Wilkie :

> Doc fixes are always welcome! Good documentation is hard and rarely done
> well alone.
>
> Is there anything specific to Leo, that should be considered in addition
>> to the available information on GitHub on how to deliver PRs?
>>
>
> Nothing that I can think of. Anything that might bere there can be sorted
> out during the PR review process.
>

OK, then I'll reserve some time to work on my first PR.

With kind regards,

Viktor

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAAeSrG%2ByZiAuP8i2r_2LRk2UXix-W_orfkVvTvAKYwfC4_7_vw%40mail.gmail.com.


Re: Question related to 'Installing Leo with Git'?

2020-05-04 Thread Matt Wilkie
Doc fixes are always welcome! Good documentation is hard and rarely done 
well alone.

Is there anything specific to Leo, that should be considered in addition to 
> the available information on GitHub on how to deliver PRs?
>

Nothing that I can think of. Anything that might bere there can be sorted 
out during the PR review process.

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/8f15d90a-ae37-49e9-8b3f-4c221ed3bf7d%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-05-03 Thread Viktor Ransmayr
Am Sonntag, 26. April 2020 01:35:03 UTC+2 schrieb Matt Wilkie:
>
>
> As the footnoted reference says, If you install from Git, you can get the 
>> latest development versions.  What it does not say is that the latest 
>> development version is usually not in the "master" branch of the git 
>> repository.  It is usually in the "devel" branch.  
>>
>
> Good point, I added how to switch.
>

Thanks! - I've been able to check out the development branch from the 
cloned repository - and - install it using pip.

The logical next step would be to deliver a simple change, e.g. fixing the 
simple typo ``git chekout devel`` in

* .../leo-editor/leo/doc/LeoDocs.leo#Leo's Documentation-->Installing & 
running Leo-->@rst html/installing.html-->Installing Leo 
itself-->Installing Leo with git

as a pull request (PR) for leo-editor ...

Is there anything specific to Leo, that should be considered in addition to 
the available information on GitHub on how to deliver PRs?

With kind regards,

Viktor

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9d72336e-38c9-48c8-9dcb-56c95622b73c%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-27 Thread Edward K. Ream
On Sun, Apr 26, 2020 at 8:42 PM Matt Wilkie  wrote:

> Drat. You may have to add back those words.
>>
>
> Done :)
>

Thanks, Matt.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1vREsgUtHsYLWTpVg8ECFv8_MwgXmSS9cNhm-xY6nr7Q%40mail.gmail.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-26 Thread Matt Wilkie

>
> Drat. You may have to add back those words.
>

Done :)

matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f2291c7d-bd7f-4a60-a7bb-f8258f3a1c17%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-26 Thread Matt Wilkie

>
> 4. I get confused after a time when I set up more than a few virtual 
> environments, because I forget what they were all for and what the state of 
> their libraries and configuration is.  This way I don't need those virtual 
> environments.
>

Changing PYTHONPATH between d:\code\leo-devel or d:\code\leo-experiment12 
can be simpler than setting up different virtual enviroments for them, 
especially if they use all the same libraries. For me this doesn't solve 
the #4 problem though, forgetting what those folders are for! Switching 
venv or variable, it's the same end from different paths. *(haha! pun 
intended, but I didn't see until aftewards.)*

(BTW, I'm not trying to persuade you or anyone else to move away from what 
works for you. We each have our own best fitting clothes.)

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/045d93ae-6669-456d-bd37-28491cf18673%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-26 Thread Edward K. Ream
On Sat, Apr 25, 2020 at 6:35 PM Matt Wilkie  wrote:

>
> As the footnoted reference says, If you install from Git, you can get the
>> latest development versions.  What it does not say is that the latest
>> development version is usually not in the "master" branch of the git
>> repository.  It is usually in the "devel" branch.
>>
>
> Good point, I added how to switch.
>

Drat. You may have to add back those words.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1%3DX-f3B%3Da4ojx8e5210g-qroqzCLZq7%2BS9SCe9AdV6uw%40mail.gmail.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-25 Thread Thomas Passin
I am going to reiterate here something I posted in another thread.  If you 
want to use the git method (or indeed run from a downloaded unzipped 
archive), there is another way to set up your system besides virtual 
environments or pip install --editable.  I do it this way because I have 
the standard python installation I started with, and then later I wanted to 
use git clones since I was doing some development on a plugin.  Python uses 
an environmental variable just for purposes like this: PYTHONPATH.

Python will look for imports and library files in PYTHONPATH first.  So I 
set it to point to the location of my Leo git clone.  On my Windows 
machine, the command is:

set PYTHONPATH=d:\tom\git\leo-editor

(On Linux, of course,it would be more like

PYTHONPATH=
export $PYTHONPATH
)

I find this way very satisfactory, because:

1. I get all the benefits of using a git clone;
2. I can go back to my standard install simply by not setting the variable;
3. If I want to work with a clone of some other Python library (such as 
rst2pdf, which I did a bit of work on), I just set PYTHONPATH to point 
there instead;
4. I get confused after a time when I set up more than a few virtual 
environments, because I forget what they were all for and what the state of 
their libraries and configuration is.  This way I don't need those virtual 
environments.

On Saturday, April 25, 2020 at 2:38:34 PM UTC-4, Viktor Ransmayr wrote:
>
> Hello Matt,
>
> Thanks for this explanation!
>
> Am Sa., 25. Apr. 2020 um 20:27 Uhr schrieb Matt Wilkie  >:
>
>> Why should I prefer this method, if I don't get anything else than if I 
>>> would simple do a 'pip install leo'? - What am I missing?
>>>
>>
>>- Upgrades are faster and easier, a simple `git pull` and you're 
>>done. Only the new and changed files are downloaded. With a pip upgrade a 
>>full download, uninstall, reinstall cycle is needed.
>>- Switching between stable release and development versions or even 
>>downgrading is easy: `git checkout master`, `git 
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/797b955d-a3eb-4817-9f12-79a565ab22ac%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-25 Thread Matt Wilkie


> As the footnoted reference says, If you install from Git, you can get the 
> latest development versions.  What it does not say is that the latest 
> development version is usually not in the "master" branch of the git 
> repository.  It is usually in the "devel" branch.  
>

Good point, I added how to switch.
 
-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e5465c13-ae11-4ec0-a6da-f12b3b87f85f%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-25 Thread Thomas Passin
As the footnoted reference says, If you install from Git, you can get the 
latest development versions.  What it does not say is that the latest 
development version is usually not in the "master" branch of the git 
repository.  It is usually in the "devel" branch.  If you don't know Git a 
bit - so that you can switch the branch - or don't want to fuss with 
learning about it, you might as well not bother.  Also, installing with pip 
sets up some things that simply running from a Git clone does not.  This 
could explain some of the error messages, if you get them using the Git 
clone and not using the pip installation. (These messages are harmless, 
mostly about missing test-related components).


On Saturday, April 25, 2020 at 11:14:37 AM UTC-4, Viktor Ransmayr wrote:
>
> Hello Edward & Community,
>
> As I stated in my other message ( 
> https://groups.google.com/d/msg/leo-editor/gNXPxjD9Yvg/z4bW4CtNAwAJ ) I 
> now have successfully created a third PyVE, where I followed the method 
> described in [1].
>
> What's surprising to me - and - I'm taking the view of a Leo newbie here, 
> is that the installed Leo instance is
>
> [snip]
>
> Why should I prefer this method, if I don't get anything else than if I 
> would simple do a 'pip install leo'? - What am I missing?
>
> With kind regards,
>
> Viktor
>
> ---
> [1] https://leoeditor.com/installing.html#installing-leo-with-git
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/bd692318-3f10-41b8-be50-c9a5d48af11a%40googlegroups.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-25 Thread Viktor Ransmayr
Hello Matt,

Thanks for this explanation!

Am Sa., 25. Apr. 2020 um 20:27 Uhr schrieb Matt Wilkie :

> Why should I prefer this method, if I don't get anything else than if I
>> would simple do a 'pip install leo'? - What am I missing?
>>
>
>- Upgrades are faster and easier, a simple `git pull` and you're done.
>Only the new and changed files are downloaded. With a pip upgrade a full
>download, uninstall, reinstall cycle is needed.
>- Switching between stable release and development versions or even
>downgrading is easy: `git checkout master`, `git checkout devel` or `git
>checkout v6.0`.
>
> This is the main point (IMO) , that should be added to the description of
"Installing Leo with Git" [1].

>
>-
>- you have all the files in the root directory so when opening certain
>.leo files distributed with Leo there won't be complaints about missing
>files (as per in my reply to the other thread).
>
>
With kind regards,

Viktor
---
[1] https://leoeditor.com/installing.html#installing-leo-with-git

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAAeSrG%2B%2BwUCfnMdLGAnaR0LCiYFiaX30u%3DtsBk06D581%2Byo5vw%40mail.gmail.com.


Re: Question related to 'Installing Leo with Git'?

2020-04-25 Thread Matt Wilkie

>
> Why should I prefer this method, if I don't get anything else than if I 
> would simple do a 'pip install leo'? - What am I missing?
>

   - Upgrades are faster and easier, a simple `git pull` and you're done. 
   Only the new and changed files are downloaded. With a pip upgrade a full 
   download, uninstall, reinstall cycle is needed.
   - Switching between stable release and development versions or even 
   downgrading is easy: `git checkout master`, `git checkout devel` or `git 
   checkout v6.0`. 
   - you have all the files in the root directory so when opening certain 
   .leo files distributed with Leo there won't be complaints about missing 
   files (as per in my reply to the other thread).
   
-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e66ae2e4-0200-4070-87ba-fc4163069165%40googlegroups.com.


Question related to 'Installing Leo with Git'?

2020-04-25 Thread Viktor Ransmayr
Hello Edward & Community,

As I stated in my other message ( 
https://groups.google.com/d/msg/leo-editor/gNXPxjD9Yvg/z4bW4CtNAwAJ ) I now 
have successfully created a third PyVE, where I followed the method 
described in [1].

What's surprising to me - and - I'm taking the view of a Leo newbie here, 
is that the installed Leo instance is

###

Leo Log Window
*Leo 6.2.1 final, master branch, build 49c5e4fa3c*
2020-03-30 08:39:10 -0500
Python 3.7.6, PyQt version 5.14.2
linux
setting leoID from os.getenv('USER'): 'user'
current dir: /home/user/PyVE/Repo/Leo-Repo
...

###

Why should I prefer this method, if I don't get anything else than if I 
would simple do a 'pip install leo'? - What am I missing?

With kind regards,

Viktor

---
[1] https://leoeditor.com/installing.html#installing-leo-with-git

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/ea880a2d-05f6-451a-862b-31e091916f31%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-20 Thread Matt Wilkie

>
> I leave the technical details for Matt to explain - but - we now finally 
> reached a state, where the underlying issue is clearly identified :-)
>

https://github.com/leo-editor/leo-editor/issues/1415 - Leo crashes on 
startup with unexpected exception loading session and then unexpected 
reading empty workbook errors on startup. (I note an apparent missing word 
in 2nd message.) Both tracebacks complain that a .leo file doesn't exist. 
It doesn't, said file is in an old directory that doesn't exist anymore. 
After removing HOME\.leo folder Leo starts okay. Putting the problem .leo 
folder back is a reliable way of reproducing the crash.

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/05bee811-7f6e-4ec7-a1e0-7f95a72306ed%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-20 Thread Matt Wilkie
 
>
> I can demonstrate, that such an installation works, if the "Leo-devel" 
>> instance starts w/o an existing '~/.leo' directory - and - on the other 
>> hand consistently fails, when my existing '~/.leo' directory is used.
>>
>
> Well done, Viktor.  Thanks for your persistence.
>

Viktor's refusal to give up is indeed noteworthy. I would have given up 
long ago, and only persisted here myself because, well I wasn't going to 
stop if he wasn't! 

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/618ce6b3-5413-4b5c-b9cc-0f5dac99ae5d%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-19 Thread Edward K. Ream
On Sat, Oct 19, 2019 at 4:20 AM Viktor Ransmayr 
wrote:

I leave the technical details for Matt to explain - but - we now finally
> reached a state, where the underlying issue is clearly identified :-)
>
> I can demonstrate, that such an installation works, if the "Leo-devel"
> instance starts w/o an existing '~/.leo' directory - and - on the other
> hand consistently fails, when my existing '~/.leo' directory is used.
>

Well done, Viktor.  Thanks for your persistence.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1d-GxRvNS_dgHsa0g-%2Bkz1yF88S0MPw9vqKBmtGt2oxQ%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-19 Thread Viktor Ransmayr
Hello Edward,

Am Mo., 14. Okt. 2019 um 08:54 Uhr schrieb Edward K. Ream <
edream...@gmail.com>:

>
> Viktor, Matt,
>
> Please take this discussion offline, and summarize your results on
> leo-editor when you have resolved this.
>

I leave the technical details for Matt to explain - but - we now finally
reached a state, where the underlying issue is clearly identified :-)

I can demonstrate, that such an installation works, if the "Leo-devel"
instance starts w/o an existing '~/.leo' directory - and - on the other
hand consistently fails, when my existing '~/.leo' directory is used.

Note: With the content in this directory I don't have any issues at all
when using 'Leo-6.0-final' ...

With kind regards,

Viktor

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAAeSrGJLMohougHvJJEVh67%3DLFpX%3DANuUbTLqrHpJEMSh4XjQg%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-14 Thread Matt Wilkie


> Please take this discussion offline, and summarize your results on 
> leo-editor when you have resolved this.
>

Yeah, this is pretty noisy.

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/76743012-6306-4823-8e78-ffd572824f75%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-13 Thread Edward K. Ream
On Mon, Oct 14, 2019 at 12:51 AM Viktor Ransmayr 
wrote:

Viktor, Matt,

Please take this discussion offline, and summarize your results on
leo-editor when you have resolved this.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS11M%3DE9_FVc6k7O6QmvqQVW44%3DqOV9BTXt1M_EKonjwRg%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-13 Thread Viktor Ransmayr

Hello Matt;

Am Sonntag, 13. Oktober 2019 22:23:48 UTC+2 schrieb Matt Wilkie:
>
>
> Viktor does this work? (adjust to wherever launchLeo.py is):
>
> python C:\Users\Viktor\pyve\github\leo-devel\launchLeo.py
>

No. - See "Log-001"


> Pfad nicht finden: 
>> 'C:/users/viktor/pyve/ve4ileo/lib/site-packages/leo/doc/quickstart.leo'
>>
> [...]
>
>> (leo-devel) PS C:\Users\Viktor\pyve\github\leo-devel>  
>>
>
> The root of these paths don't match which indicates the VE is not clean, 
> that there is a prior install of Leo in the mix. Leo should be looking for 
> quickstart.leo under `github\leo-devel`
>
> I would try:
>
> (A) `pip unininstall leo`, inspect `PYTHONHOME\lib\site-packages` and 
> `PYTHONHOME\Scripts` for anything Leo, and delete them if found. Then try 
> `pip install --editable ...` again.
>
> Or: (B) Start from the top with a new VE.
>

I'll try that tonight & report back.

With kind regards,

Viktor

###



Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – 
https://aka.ms/pscore6

PS C:\Users\Viktor> cd pyve/github/leo-devel*
PS C:\Users\Viktor\pyve\github\leo-devel> ls


Verzeichnis: C:\Users\Viktor\pyve\github\leo-devel


ModeLastWriteTime Length Name
- -- 
d-   13.10.2019 21:02devel
d-   13.10.2019 20:42Include
d-   13.10.2019 20:42Lib
d-   13.10.2019 21:15Scripts
-a   13.10.2019 20:58   11728069 devel.zip
-a   13.10.2019 20:42 76 pyvenv.cfg


PS C:\Users\Viktor\pyve\github\leo-devel> cd devel
PS C:\Users\Viktor\pyve\github\leo-devel\devel> cd leo-editor-devel
PS C:\Users\Viktor\pyve\github\leo-devel\devel\leo-editor-devel> python 
./launchLeo.py

--global-docks: False

import-jupyter-notebook requires nbformat package
Can not Import Qt
PS C:\Users\Viktor\pyve\github\leo-devel\devel\leo-editor-devel>



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/58bd4780-f460-4069-a995-1cfa41d29d24%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-13 Thread Matt Wilkie

Viktor does this work? (adjust to wherever launchLeo.py is):

python C:\Users\Viktor\pyve\github\leo-devel\launchLeo.py

   

> Pfad nicht finden: 
> 'C:/users/viktor/pyve/ve4ileo/lib/site-packages/leo/doc/quickstart.leo'
>
[...]

> (leo-devel) PS C:\Users\Viktor\pyve\github\leo-devel>  
>

The root of these paths don't match which indicates the VE is not clean, 
that there is a prior install of Leo in the mix. Leo should be looking for 
quickstart.leo under `github\leo-devel`

I would try:

(A) `pip unininstall leo`, inspect `PYTHONHOME\lib\site-packages` and 
`PYTHONHOME\Scripts` for anything Leo, and delete them if found. Then try 
`pip install --editable ...` again.

Or: (B) Start from the top with a new VE.

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0db48764-4127-4c83-9dfb-d2532b9055ff%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-13 Thread Viktor Ransmayr
Hello Matt,

Am Samstag, 12. Oktober 2019 15:43:05 UTC+2 schrieb Viktor Ransmayr:
>
> Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:
>>
>> Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie > >:
>>
>>> I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains 
>>> generic install-from-source instructions for all platforms. It might need 
>>> some format tuning and perhaps other edting. I think it could replace or be 
>>> merged with a couple of the following nodes. Or at least something to 
>>> improve the flow and reduce redundancy. Have at 'er. ;-)
>>>
>>
>> @Matt: Thanks for this. - I'll provide my feedback in the context of my 
>> attempt to install a version of the Leo Developement Branch in a new Python 
>> Virtual Environment (PyVE) without the need to use git as a Leo Newbie / 
>> Non Leo Developer ...
>>
>
> Here's an **intermediate** status report, which show very nicely how 
> difficult it is to create correct & precise documentation.
>
> TL;DR : I ran into unforseen problems, since I don't use theWindows 
> Command Prompt but use PowerShell as my default console in Windows.
>
> Longer version of the story:
>
> I tried to follow your instructions as closely as possible:
>
> ::
>
> Assumes **Python 3.6+** is installed and in PATH.
>
> Installing from source code into a new environment must be done in 
> discrete steps: **download**, **unpack archive**, and **install as 
> editable** mode.
>
> Example::
>
> wget https://github.com/leo-editor/leo-editor/archive/devel.zip
> 7z x devel.zip -o C:\apps
> pip install --editable C:\apps\leo-editor-devel
>

I now adjusted my approach. - That is I tried to follow your instructions 
as closely as possible - but - take explicitely into account that I'm using 
Powershell 5 & Windows 10 ...

Here are the steps that I used for my second attempt :

   1. Create & activate a new PyVE. - OK. - See "Log-001"
   2. Use 'Invoke-WebRequest' to download the current version of 
   'devel.zip' from GitHub. - OK. - See "Log-002"
   3. Use 'Expand-Archive' to extract the downloaded archive. - OK. - See 
   "Log-003"
   4. Use 'pip' to install 'leo-devel'. - OK. - See "Log-004"
   5. Start 'leo-devel' - Not OK. - No further information available ...
   6. Close the 'leo-master' instance and retry to start 'leo-devel' using 
   'leo-m' ...
   7. Start 'leo-devel' again. - Not OK. - See "Log-005"

I'm just reporting the content of 'Log-005' here.

Now I really need your feedback on what the problem is ...

With kind regards,

Viktor

###



(leo-devel) PS C:\Users\Viktor\pyve\github\leo-devel\devel> cd 
..   
(leo-devel) PS C:\Users\Viktor\pyve\github\leo-devel> 
leo-m 
--global-docks: False

Leo 6.1-devel
leo_excepthook Uncaught Python exception: [WinError 3] Das System kann den 
angegebenen Pfad nicht finden: 
'C:/users/viktor/pyve/ve4ileo/lib/site-packages/leo/doc/quickstart.leo'

NoneType: None

(leo-devel) PS C:\Users\Viktor\pyve\github\leo-devel>  



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5df201af-c47d-4459-aec3-b8f9818551fe%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Edward K. Ream
On Sat, Oct 12, 2019 at 7:10 AM Viktor Ransmayr 
wrote:

>
> @Edward: Has been a deliberate design decision of your side &  if yes,
> please explain why?
>

I'm delegating all choices to Matt.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0%3DeOnswway21LuWU8njx2URoLDKPLz2UxVGhKYjhh%2BeA%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Matt Wilkie

>
> PS C:\Users\Viktor\pyve\github\leo-devel> pip install --editable ./devel   
>  
> ERROR: File "setup.py" not found. Directory cannot be installed in 
> editable mode: C:\Users\Viktor\pyve\github\leo-devel\devel
>

1 dir too deep. The path needs to be to folder that contains setup.py.

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d1956174-4ebe-4b46-8e01-4eb707ccf7b9%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Matt Wilkie

>
> Direct ``pip install 
>> https://github.com/leo-editor/leo-editor/archive/devel.zip`` 
>>  does *not* 
>> work. For proper operation Leo relies on presence of certain files outside 
>> of the standard Python `site-packages` folder structure.
>>
>> @Edward: Has been a deliberate design decision of your side &  if yes, 
>> please explain why?
>>
>
> The question should read: Has this been a deliberate design decision on 
> your side &  if yes, please explain why?
>
 
No, not deliberate. It's a result from Python's package evolution and how 
pip works. 

Leo is both a Library and an Application and python packaging is designed 
mostly around the Library part. We could make it work and there are a 
couple good reasons aside from unwanted pip results to do it, but it is a 
major effort that would make every developer who uses Leo have to adjust 
their workflow and tooling. The source code tree structure would change at 
root, breaking many many scripts. Not gonna happen anytime soon. ;-) 

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/bc88a011-b570-4d3f-947c-77417a714c46%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt,

Am Samstag, 12. Oktober 2019 17:10:17 UTC+2 schrieb Viktor Ransmayr:
>
> Am Sa., 12. Okt. 2019 um 15:43 Uhr schrieb Viktor Ransmayr <
> viktor.ransm...@gmail.com>:
>
>> Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:
>>>
>>> Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie >> >:
>>>
 I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains 
 generic install-from-source instructions for all platforms. It might need 
 some format tuning and perhaps other edting. I think it could replace or 
 be 
 merged with a couple of the following nodes. Or at least something to 
 improve the flow and reduce redundancy. Have at 'er. ;-)

>>>
>>> @Matt: Thanks for this. - I'll provide my feedback in the context of my 
>>> attempt to install a version of the Leo Developement Branch in a new Python 
>>> Virtual Environment (PyVE) without the need to use git as a Leo Newbie / 
>>> Non Leo Developer ...
>>>
>>
>> Here's an **intermediate** status report, which show very nicely how 
>> difficult it is to create correct & precise documentation.
>>
>> TL;DR : I ran into unforseen problems, since I don't use theWindows 
>> Command Prompt but use PowerShell as my default console in Windows.
>>
>
> Here's a follow-up status report, which shows the limited progress I made:
>
>1. Use 'wget' alias w/i PS. - OK. - See "Log-004"
>2. Use 'extract-archive' w/i PS. - OK. - See "Log-005"
>3. Use 'pip' w/i PS. - Not OK. - See "Log-006"
>
> Do you have an explanation, why pip fails in this context?
>

Please ignore my question! - The problem was in front of the terminal ;-) 

With kind regards,

Viktor

PS: I'll report back, when I have the complete process properly documented 
...

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d6ecbb26-35df-4ac1-8bd2-1d4bc837b3f2%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt,

Am Sa., 12. Okt. 2019 um 15:43 Uhr schrieb Viktor Ransmayr <
viktor.ransm...@gmail.com>:

> Hello Matt,
>
> Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:
>>
>> Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie > >:
>>
>>> I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains
>>> generic install-from-source instructions for all platforms. It might need
>>> some format tuning and perhaps other edting. I think it could replace or be
>>> merged with a couple of the following nodes. Or at least something to
>>> improve the flow and reduce redundancy. Have at 'er. ;-)
>>>
>>
>> @Matt: Thanks for this. - I'll provide my feedback in the context of my
>> attempt to install a version of the Leo Developement Branch in a new Python
>> Virtual Environment (PyVE) without the need to use git as a Leo Newbie /
>> Non Leo Developer ...
>>
>
> Here's an **intermediate** status report, which show very nicely how
> difficult it is to create correct & precise documentation.
>
> TL;DR : I ran into unforseen problems, since I don't use theWindows
> Command Prompt but use PowerShell as my default console in Windows.
>

Here's a follow-up status report, which shows the limited progress I made:

   1. Use 'wget' alias w/i PS. - OK. - See "Log-004"
   2. Use 'extract-archive' w/i PS. - OK. - See "Log-005"
   3. Use 'pip' w/i PS. - Not OK. - See "Log-006"

Do you have an explanation, why pip fails in this context?

For the moment I'll stop here - and - restart my activities concerning the
usage of a 'usable' dark theme in a/ my Windows 10 environment.

With kind regards,

Viktor

###



PS C:\Users\Viktor\pyve\github\leo-devel> wget -OutFile ./devel.zip
https://github.com/leo-editor/leo-editor/archive/devel.zip

 PS C:\Users\Viktor\pyve\github\leo-devel> ls


Verzeichnis: C:\Users\Viktor\pyve\github\leo-devel


ModeLastWriteTime Length Name
- -- 
d-   12.10.2019 14:30Include
d-   12.10.2019 14:30Lib
d-   12.10.2019 14:30Scripts
-a   12.10.2019 16:41   11727380 devel.zip
-a   12.10.2019 14:30 85 pyvenv.cfg


PS C:\Users\Viktor\pyve\github\leo-devel>





PS C:\Users\Viktor\pyve\github\leo-devel> expand-archive ./devel.zip

 PS
C:\Users\Viktor\pyve\github\leo-devel> ls



Verzeichnis: C:\Users\Viktor\pyve\github\leo-devel


ModeLastWriteTime Length Name
- -- 
d-   12.10.2019 16:48devel
d-   12.10.2019 14:30Include
d-   12.10.2019 14:30Lib
d-   12.10.2019 14:30Scripts
-a   12.10.2019 16:41   11727380 devel.zip
-a   12.10.2019 14:30 85 pyvenv.cfg


PS C:\Users\Viktor\pyve\github\leo-devel>





PS C:\Users\Viktor\pyve\github\leo-devel> pip install --editable ./devel

ERROR: File "setup.py" not found. Directory cannot be installed in editable
mode: C:\Users\Viktor\pyve\github\leo-devel\devel
PS C:\Users\Viktor\pyve\github\leo-devel>



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAAeSrG%2BMbG0N6E4p_kJTu0VkifCViTf4jWumY4rW4OEq34%2BfRQ%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt,

Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:
>
> Hello Matt, hello Edward,
>
> Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie :
>
>> I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains 
>> generic install-from-source instructions for all platforms. It might need 
>> some format tuning and perhaps other edting. I think it could replace or be 
>> merged with a couple of the following nodes. Or at least something to 
>> improve the flow and reduce redundancy. Have at 'er. ;-)
>>
>
> @Matt: Thanks for this. - I'll provide my feedback in the context of my 
> attempt to install a version of the Leo Developement Branch in a new Python 
> Virtual Environment (PyVE) without the need to use git as a Leo Newbie / 
> Non Leo Developer ...
>

Here's an **intermediate** status report, which show very nicely how 
difficult it is to create correct & precise documentation.

TL;DR : I ran into unforseen problems, since I don't use theWindows Command 
Prompt but use PowerShell as my default console in Windows.

Longer version of the story:

I tried to follow your instructions as closely as possible:

::

Assumes **Python 3.6+** is installed and in PATH.

Installing from source code into a new environment must be done in 
discrete steps: **download**, **unpack archive**, and **install as 
editable** mode.

Example::

wget https://github.com/leo-editor/leo-editor/archive/devel.zip
7z x devel.zip -o C:\apps
pip install --editable C:\apps\leo-editor-devel

Here are the steps that I performed:

1) Create & activate a new PyVE. - OK. - See "Log-001"
2) Download & install wget. - Not OK. - See "Log-002"
3) It looks like you don't even have to install 'wget' if you are a PS 
user. - Partially OK. - See "Log-003"

I'll only publish Log-002 & Log-003 here, since they contain the 
interesting content ...

Now I'll continue to try to get a version of the Leo Developement Branch in 
a new Python Virtual Environment (PyVE) working without the need to use git 
as a Leo User ...

With kind regards,

Viktor

###



* Verify availability of 'wget' in the PyVE - No OK. - See below:

::

Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – 
https://aka.ms/pscore6

PS C:\Users\Viktor> cd pyve/github/leo-devel

PS C:\Users\Viktor\pyve\github\leo-devel> wget --version
wget : Der Remotename konnte nicht aufgelöst werden: '--version'
In Zeile:1 Zeichen:1
+ wget --version
+ ~~
+ CategoryInfo  : InvalidOperation: 
(System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : 
WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

PS C:\Users\Viktor\pyve\github\leo-devel>





PS C:\Users\Viktor\pyve\github\leo-devel> wget

Cmdlet Invoke-WebRequest an der Befehlspipelineposition 1
Geben Sie Werte für die folgenden Parameter an:
Uri: https://github.com/leo-editor/leo-editor/archive/devel.zip


StatusCode: 200
StatusDescription : OK
Content   : {80, 75, 3, 4...}
RawContent: HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Origin: 
https://render.githubusercontent.com
Content-Security-Policy: default-src 'none'; style-src 
'unsafe-inline'; sandbox
Strict-...
Headers   : {[Transfer-Encoding, chunked], 
[Access-Control-Allow-Origin,
https://render.githubusercontent.com], 
[Content-Security-Policy, default-src 'none'; style-src
'unsafe-inline'; sandbox], [Strict-Transport-Security, 
max-age=31536000]...}
RawContentLength  : 11727380



PS C:\Users\Viktor\pyve\github\leo-devel> 
ls


Verzeichnis: C:\Users\Viktor\pyve\github\leo-devel


ModeLastWriteTime Length Name
- -- 
d-   12.10.2019 14:30Include
d-   12.10.2019 14:30Lib
d-   12.10.2019 14:30Scripts
-a   12.10.2019 14:30 85 pyvenv.cfg


PS C:\Users\Viktor\pyve\github\leo-devel>  

###

It is unclear where to 'devel.zip' got copied to? - Investigate ...



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d0b74ff5-8e5b-4fd1-ab2f-960f677d54c6%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Edward,

Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:

>
> ...
>
> Direct ``pip install 
> https://github.com/leo-editor/leo-editor/archive/devel.zip`` 
>  does *not* 
> work. For proper operation Leo relies on presence of certain files outside 
> of the standard Python `site-packages` folder structure.
>
> @Edward: Has been a deliberate design decision of your side &  if yes, 
> please explain why?
>

The question should read: Has this been a deliberate design decision of 
your side &  if yes, please explain why?

Viktor

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/30c5000c-48bf-4ea5-be78-a9e2fa061e45%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt, hello Edward,

Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie :

> I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains
> generic install-from-source instructions for all platforms. It might need
> some format tuning and perhaps other edting. I think it could replace or be
> merged with a couple of the following nodes. Or at least something to
> improve the flow and reduce redundancy. Have at 'er. ;-)
>

@Matt: Thanks for this. - I'll provide my feedback in the context of my
attempt to install a version of the Leo Developement Branch in a new Python
Virtual Environment (PyVE) without the need to use git as a Leo Newbie /
Non Leo Developer ...

Direct ``pip install
> https://github.com/leo-editor/leo-editor/archive/devel.zip``
>  does *not*
> work. For proper operation Leo relies on presence of certain files outside
> of the standard Python `site-packages` folder structure.
>

@Edward: Has been a deliberate design decision of your side &  if yes,
please explain why?

With kind regards,

Viktor

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAAeSrG%2BcNobwghdFBF%3DAmE4jrcrJ3CJ72rtVM3i3boKYb06CHA%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-10 Thread Edward K. Ream
On Thu, Oct 10, 2019 at 3:30 AM Matt Wilkie  wrote:

I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains
> generic install-from-source instructions for all platforms. It might need
> some format tuning and perhaps other editing. I think it could replace or
> be merged with a couple of the following nodes. Or at least something to
> improve the flow and reduce redundancy. Have at 'er. ;-)
>
>
> *.../leo-editor/leo/doc/LeoDocs.leo#Leo's Documentation-->Installing &
> running Leo-->@rst html/installing.html-->Installing Leo
> itself-->Installing Leo from sources (all platforms)*
>
> QQQ
> Generic recipe for all platforms. Adjustment for local norms is expected.
>
[snip]

Many thanks for this work.  Nobody knows better than I how picky these
instructions are.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3RDX2Btn9Uf%3DsM3MjbHZuPb5dsDKZmgbFXJHQ6eD_Y3Q%40mail.gmail.com.


docs: Installing Leo from sources (all platforms)

2019-10-10 Thread Matt Wilkie
I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains 
generic install-from-source instructions for all platforms. It might need 
some format tuning and perhaps other edting. I think it could replace or be 
merged with a couple of the following nodes. Or at least something to 
improve the flow and reduce redundancy. Have at 'er. ;-)


*.../leo-editor/leo/doc/LeoDocs.leo#Leo's Documentation-->Installing & 
running Leo-->@rst html/installing.html-->Installing Leo 
itself-->Installing Leo from sources (all platforms)*

QQQ
Generic recipe for all platforms. Adjustment for local norms is expected. 
For example `7z` could be `unzip` or interactive extraction and `wget` 
could be a browser download. 

Linux: it's generally advised to use pip ``--user`` flag instead of `sudo`.

Assumes **Python 3.6+** is installed and in PATH.

Installing from source code into a new environment must be done in discrete 
steps: **download**, **unpack archive**, and **install as editable** mode.

Example::

wget https://github.com/leo-editor/leo-editor/archive/devel.zip
7z x devel.zip -o C:\apps
pip install --editable C:\apps\leo-editor-devel

For easier upgrading substitute ``git clone`` for wget & 7z steps::

git clone --single-branch -b devel --depth=200 
https://github.com/leo-editor/leo-editor.git
pip install --editable leo-editor

time passes, upgrade desired::

pushd c:\apps\leo-editor
git pull
pip uninstall leo
pip install --editable .

`single-branch`, `b` and `depth` are all optional, but will dramatically 
speed up download time as it only grabs the latest development branch and 
skips all but the last couple weeks or months of history.

###
Note
###

Direct ``pip install 
https://github.com/leo-editor/leo-editor/archive/devel.zip`` does *not* 
work. For proper operation Leo relies on presence of certain files outside 
of the standard Python `site-packages` folder structure.


See `Running Leo`_ for how to run Leo after installing it.

QQQ

-matt

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/32599d20-2144-4fe5-a879-95f29997f1c0%40googlegroups.com.


Re: problem installing Leo on Linux

2019-08-05 Thread Matt Wilkie
 you're welcome geoff, and welcome aboard too :)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b27fc166-b681-4cc9-a875-219954af6124%40googlegroups.com.


Re: problem installing Leo on Linux

2019-08-05 Thread Geoff Evans
That worked!  Leo starts nicely now.
Many thanks Matt and Vitalije.

geoff

On Monday, 5 August 2019 13:33:44 UTC-2:30, Matt Wilkie wrote:
>
> PyQt v5.13.0 should work, it does for sure on Windows. Is PyQtWebEngine 
> installed? Try `pip show PyQtWebEngine`. If not then try `pip install 
> PyQtWebEngine`.
>
> It's supposed to be installed automatically but adding it as a distinct 
> package was a change added recently 
>  and it hasn't been 
> widely tested.
>
> -matt
>
>
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/33e1e59a-871b-4164-ada2-51e16322fdcb%40googlegroups.com.


Re: problem installing Leo on Linux

2019-08-05 Thread Matt Wilkie
PyQt v5.13.0 should work, it does for sure on Windows. Is PyQtWebEngine 
installed? Try `pip show PyQtWebEngine`. If not then try `pip install 
PyQtWebEngine`.

It's supposed to be installed automatically but adding it as a distinct 
package was a change added recently 
 and it hasn't been 
widely tested.

-matt




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/27ce5201-e309-48aa-b4b9-10f69cc82537%40googlegroups.com.


Re: problem installing Leo on Linux

2019-08-05 Thread Geoff Evans
Thanks Vitalje
I get:
5.13.0

On Monday, 5 August 2019 08:24:03 UTC-2:30, vitalije wrote:
>
> Most probably it is the PyQt5 version that is newer than Leo expects.
> Try executing the following line in the terminal.
> python -c "from PyQt5 import Qt;print(Qt.qVersion())"
>
> And report here what is the output you get.
>
> I remember having to install an older version of PyQt5 in order to make 
> Leo work.
>
> Vitalije
>
> On Monday, August 5, 2019 at 11:59:47 AM UTC+2, Geoff Evans wrote:
>>
>> I'm using Leo happily on different computers and operating systems, but 
>> when I try to install on a new Linux computer I run into trouble.
>> I started by installing Anaconda (version current as of the week before 
>> last) as Edward suggests, and then followed instructions on the 
>> leoeditor.com web site.  I first tried "pip install leo", and then 
>> downloaded the source code and tried to run "python pathname/launchLeo.py" 
>> and got the same error messages both times:
>>
>> cannot import name 'QtWebKit' from 'PyQt5'
>>
>> additional error:
>> ...
>>
>> from PyQt5 import QtWebEngineCore as QtWebKit
>> PyCapsule_GetPointer called with an incorrect name
>>
>> Can anyone help?  (1) What did I do wrong?  (2) How can I fix it?  (3) 
>> How should I have been able to use the documentation to find out for myself?
>>
>> Thanks,   geoff evans
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/68b7cdb1-69d0-4456-8e82-cc2632bbdce6%40googlegroups.com.


Re: problem installing Leo on Linux

2019-08-05 Thread vitalije
Most probably it is the PyQt5 version that is newer than Leo expects.
Try executing the following line in the terminal.
python -c "from PyQt5 import Qt;print(Qt.qVersion())"

And report here what is the output you get.

I remember having to install an older version of PyQt5 in order to make Leo 
work.

Vitalije

On Monday, August 5, 2019 at 11:59:47 AM UTC+2, Geoff Evans wrote:
>
> I'm using Leo happily on different computers and operating systems, but 
> when I try to install on a new Linux computer I run into trouble.
> I started by installing Anaconda (version current as of the week before 
> last) as Edward suggests, and then followed instructions on the 
> leoeditor.com web site.  I first tried "pip install leo", and then 
> downloaded the source code and tried to run "python pathname/launchLeo.py" 
> and got the same error messages both times:
>
> cannot import name 'QtWebKit' from 'PyQt5'
>
> additional error:
> ...
>
> from PyQt5 import QtWebEngineCore as QtWebKit
> PyCapsule_GetPointer called with an incorrect name
>
> Can anyone help?  (1) What did I do wrong?  (2) How can I fix it?  (3) How 
> should I have been able to use the documentation to find out for myself?
>
> Thanks,   geoff evans
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f4db8af0-b92a-4708-9256-b0f41ecf1645%40googlegroups.com.


problem installing Leo on Linux

2019-08-05 Thread Geoff Evans
I'm using Leo happily on different computers and operating systems, but 
when I try to install on a new Linux computer I run into trouble.
I started by installing Anaconda (version current as of the week before 
last) as Edward suggests, and then followed instructions on the 
leoeditor.com web site.  I first tried "pip install leo", and then 
downloaded the source code and tried to run "python pathname/launchLeo.py" 
and got the same error messages both times:

cannot import name 'QtWebKit' from 'PyQt5'

additional error:
...

from PyQt5 import QtWebEngineCore as QtWebKit
PyCapsule_GetPointer called with an incorrect name

Can anyone help?  (1) What did I do wrong?  (2) How can I fix it?  (3) How 
should I have been able to use the documentation to find out for myself?

Thanks,   geoff evans

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/04a653a2-1d05-41d6-8cb4-45d35162350e%40googlegroups.com.


Re: Problem installing Leo under 18.04

2019-02-27 Thread Brian Theado
Vitalije,

On Fri, Feb 15, 2019 at 12:57 PM vitalije  wrote:

> By the way, two days ago I have installed Ubuntu 18.04 on the new
> computer, and full anaconda distribution of Python3. Then I have cloned Leo
> repository and when I tried to start it, Leo exited with the core dump each
> time. But when I started it with the debugger using:
> python3 -m pdb launchLeo.py
>
> Afterwards in the debugger prompt, 'c' for continuing program execution,
> Leo started normaly. The strange thing is that after that, launching Leo
> using usual 'python3 launchLeo.py' worked without problems.
>

This sounds similar to the issue with the python_terminal plugin which I
wrote up here:
https://groups.google.com/d/msg/leo-editor/ghiIN7irzY0/2wreFgcYDQAJ

See also https://github.com/leo-editor/leo-editor/issues/1009

Brian

-- 
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: Problem installing Leo under 18.04

2019-02-16 Thread Matt Wilkie

>
> Thanks to you and Matt for all the help.
>

You're welcome :)  

The world of command line incantations and the intricate web of software 
and platform dependencies is indeed a strange one. It's easy to forget that 
after being here so long. I'm sure you'll get your sea legs; you have 
perseverance. The good news is that you don't *need* that to use Leo -- 
after getting started, which you done. 

 

> BTW, I am reading *The Entrepreneurial State *by Mariana Mazzucato and 
> the book's front cover has a lion that looks a lot like Leo.
>

The intro  has me 
intrigued. Thanks for the reference.

Matt

-- 
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: Problem installing Leo under 18.04

2019-02-15 Thread John Kane


On Friday, February 15, 2019 at 12:57:16 PM UTC-5, vitalije wrote:
>
>
>
>> Is *python3* an integral part of the command or does it mean I should 
>> run it in  *Python3*?
>>
>
> Yes python3 is a program that will execute python scripts. You should 
> supply your path to the folder you installed Leo in. Replace 
> 'path/to/leo-editor'  in the above command with the real path on your 
> computer. The rest of this path '/launchLeo.py' is file located inside Leo 
> folder.
>
> *python3: can't open file 'path/to/leo-editor/launchLeo.py': [Errno 2] No 
>> such file or directory*
>>
>> By the way, two days ago I have installed Ubuntu 18.04 on the new 
> computer, and full anaconda distribution of Python3. Then I have cloned Leo 
> repository and when I tried to start it, Leo exited with the core dump each 
> time. But when I started it with the debugger using:
> python3 -m pdb launchLeo.py
>
> Afterwards in the debugger prompt, 'c' for continuing program execution, 
> Leo started normaly. The strange thing is that after that, launching Leo 
> using usual 'python3 launchLeo.py' worked without problems.
>
> Perhaps you are seeing the same issue. 
>
> Vitalije
>

Stunningly obvious once someone explains it. I really should have seen it 
myself. My lack of knowledge of Python is making me miss the obvious 
sometimes.

   *python3 ~/leo-editor/launchLeo.py*  loaded Leo with no problem. 

A simple john@jonh-T510:~$ *leo* seems to be working fine. 

Thanks to you and Matt for all the help.

BTW, I am reading *The Entrepreneurial State *by Mariana Mazzucato and the 
book's front cover has a lion that looks a lot like Leo.

 

-- 
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: Problem installing Leo under 18.04

2019-02-15 Thread vitalije


>
> Is *python3* an integral part of the command or does it mean I should run 
> it in  *Python3*?
>

Yes python3 is a program that will execute python scripts. You should 
supply your path to the folder you installed Leo in. Replace 
'path/to/leo-editor'  in the above command with the real path on your 
computer. The rest of this path '/launchLeo.py' is file located inside Leo 
folder.

*python3: can't open file 'path/to/leo-editor/launchLeo.py': [Errno 2] No 
> such file or directory*
>
> By the way, two days ago I have installed Ubuntu 18.04 on the new 
computer, and full anaconda distribution of Python3. Then I have cloned Leo 
repository and when I tried to start it, Leo exited with the core dump each 
time. But when I started it with the debugger using:
python3 -m pdb launchLeo.py

Afterwards in the debugger prompt, 'c' for continuing program execution, 
Leo started normaly. The strange thing is that after that, launching Leo 
using usual 'python3 launchLeo.py' worked without problems.

Perhaps you are seeing the same issue. 

Vitalije

-- 
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: Problem installing Leo under 18.04

2019-02-15 Thread John Kane
Thanks Matt, but where or how do I run  *python3
path/to/leo-editor/launchLeo.py *?

Is *python3* an integral part of the command or does it mean I should run
it in  *Python3*?

I have *no *idea how Python works. I once managed to write a four–line
Python program but that is about it.


At Root or in /leo-editor I get errors. Example




*john@jonh-T510:~$ python3 path/to/leo-editor/launchLeo.pypython3: can't
open file 'path/to/leo-editor/launchLeo.py': [Errno 2] No such file or
directory*
Within Python3




*>>> path/to/leo-editor/launchLeo.pyTraceback (most recent call last):
File "", line 1, in NameError: name 'path' is not defined>>>
*

Thanks for all the help and patience




On Fri, 15 Feb 2019 at 03:07, Matt Wilkie  wrote:

>
>> john@jonh-T510:~$ leo
>> Command 'leo' not found, but can be installed with:
>> sudo apt install libwww-dict-leo-org-perl
>> john@jonh-T510:~$
>>
>>
>
> Try this:
>
> python3 path/to/leo-editor/launchLeo.py
>
> I think Leo is installing the launch wrapper scripts to a
> PYTHONHOME/Scripts directory that is not in your PATH
>
>
>  matt
>
> --
> 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.
>


-- 
John Kane
Kingston ON Canada

-- 
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: Problem installing Leo under 18.04

2019-02-15 Thread Matt Wilkie

>
>
> john@jonh-T510:~$ leo
> Command 'leo' not found, but can be installed with:
> sudo apt install libwww-dict-leo-org-perl
> john@jonh-T510:~$ 
>
>

Try this:

python3 path/to/leo-editor/launchLeo.py

I think Leo is installing the launch wrapper scripts to a 
PYTHONHOME/Scripts directory that is not in your PATH


 matt

-- 
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: Problem installing Leo under 18.04

2019-02-14 Thread John Kane
I have returned.
Due to some slightly stupid things I did (not in Leo!) I decided on a new 
install of Ubuntu 18.04

Here is the installation script I am using for Leo

Install Python

sudo apt update
sudo apt install python3-pip
sudo apt-get install python3-pyqt5


# Combination of instructions from Matt Wilkie & Vitalije Milosevic 
(vitalije) on Googlee Groups leo-editor.

sudo apt install git
 
wget http://github.com/leo-editor/leo-editor/zipball/devel/ --output-file 
leo-editor-devel.zip

unzip leo-editor-devel.zip # Note problem

# rename the resultant folder something reasonable
mv leo-editor-leo-editor-ca0c671 leo-editor

cd ~/leo.editor

cd leo-editor
pip3 install --editable ./

I am now back to where I was about Feb 7. 

On Thursday, February 7, 2019 at 9:24:47 AM UTC-6, John Kane wrote:

> *YES!*
>
The Cowardly Lion Logo has appeared!
>

> Thank you and Matt for all the time and help. 
>

> In theory, with  pip3  and git installed, this should work?
>
===
>
wget http://github.com/leo-editor/leo-editor/zipball/devel/ --output-file 
> leo-editor-devel.zip
>

> unzip leo-editor-devel.zip
>

> # rename the resultant folder something reasonable
>
mv leo-editor-leo-editor-96b7679 leo-editor
>

> cd ~/leo.editor
>
pip3 install --editable ./
>
*Results *

john@jonh-T510:~$ leo

Command 'leo' not found, but can be installed with:

sudo apt install libwww-dict-leo-org-perl

john@jonh-T510:~$ 


I also tried using  Neil Becker's cmd with no success 

 python3 setup.py install --user


Would anyone have a suggestion where I am going wrong?

Thanks

Note I am still getting the strange behaviour, after a clean Ubuntu 
install, that when I download * leo-editor-devel.zip *ArchiveManager 
reports that the file is corrupt. A repeat of the wget command, without 
trashing * leo-editor-devel.zip, * gives me a zip file *index.htms.1* which 
unzips into the leo folder.

I seem to have both Python Python 2.7.15rc1 &  Python 3.6.7-1~18.04 
installed. I also have pip installed. 
 

> =
>
>
> On Thu, 7 Feb 2019 at 10:05, vitalije  wrote:
>
>>
>>
>>> I got Leo to install after I installed* python3-pyqt5 *as Vitalije 
>>> suggested but Leo seems only willing to load in the GNOME console. 
>>>
>>> Also I used pip rather than *pip3*
>>>
>>  
>> It seems like there is an error in setup.py. I hope Matt will fix that. 
>> In the meantime try running install command from the unzipped leo-editor 
>> folder.
>> cd leo-editor
>> pip3 install --editable ./
>>
>> There was suggestion earlier in this thread to do like this. Perhaps now, 
>> when you already have python3-pyqt5 installed, it will work.
>> HTH Vitalije
>>
>> -- 
>> 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.
>>
>
>
> -- 
> John Kane
> Kingston ON Canada
>

-- 
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: Problem installing Leo under 18.04

2019-02-08 Thread Matt Wilkie


> Nope, still no good.  I did a fresh zip download, then:
> [nbecker@nbecker2 leo-editor]$ pip3 install --user --editable .
> [...] 
>
  Running setup.py develop for leo
> Complete output from command /usr/bin/python3 -c "import setuptools, 
> tokenize;__file__='/home/nbecker/leo-editor/setup.py';f=getattr(tokenize, 
> 'open', open)(__file__);code=f.read().replace('\r\n', 
> '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps 
> --user --prefix=: 
> [...] 
>
error: option --user not recognized
>

Interesting. I get the same error on Windows. 

[Later] It seems the `--user` and `--editable` options are incompatible 
(`pip3 install --editable .` works). Looks like a bug in pip. I didn't find 
anything in their tracker, though a comment in #4296 
<https://github.com/pypa/pip/issues/4296> might indicate why, *"...`--user` 
with `--editable` is something almost no one does as most people install 
editable packages in virtualenvs I guess.".*

Curious that when I copy paste the specific command listed in the error it 
does work:

> python -c "import setuptools, 
tokenize;__file__='c:/users/mattw/code/leo-editor/setup.py';f=getattr(tokenize, 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps 
--user --prefix=:

Removing build, dist and egg directories
Creating entry_points for [OS name - system]: nt - Windows
[...]
Installing leo-script.pyw script to 
C:\Users\mattw\AppData\Roaming\Python/Python36/Scripts
Installing leo.exe script to 
C:\Users\mattw\AppData\Roaming\Python/Python36/Scripts

Installed c:\users\mattw\code\leo-editor

Matt

-- 
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: Problem installing Leo under 18.04

2019-02-08 Thread Neal Becker
But python3 setup.py install --user did succeed.

On Fri, Feb 8, 2019 at 6:55 AM Neal Becker  wrote:

> Nope, still no good.  I did a fresh zip download, then:
> [nbecker@nbecker2 leo-editor]$ pip3 install --user --editable .
> Obtaining file:///home/nbecker/leo-editor
>   Installing build dependencies ... done
>   Getting requirements to build wheel ... done
> ...
> Installing collected packages: leo
>   Running setup.py develop for leo
> Complete output from command /usr/bin/python3 -c "import setuptools,
> tokenize;__file__='/home/nbecker/leo-editor/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
> --user --prefix=:
>
> Removing build, dist and egg directories
> Creating entry_points for [OS name - system]: posix - Linux
>
> /tmp/pip-build-env-cv1by6pl/overlay/lib/python3.7/site-packages/setuptools/dist.py:484:
> UserWarning: The version specified ('5.8.1-b2-devel') is an invalid
> version, this may not work as expected with newer versions of setuptools,
> pip, and PyPI. Please see PEP 440 for more details.
>   "details." % self.metadata.version
> usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>or: -c --help [cmd1 cmd2 ...]
>or: -c --help-commands
>or: -c cmd --help
>
> error: option --user not recognized
>
> 
> Command "/usr/bin/python3 -c "import setuptools,
> tokenize;__file__='/home/nbecker/leo-editor/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
> --user --prefix=" failed with error code 1 in /home/nbecker/leo-editor/
>
>
> On Fri, Feb 8, 2019 at 3:08 AM Matt Wilkie  wrote:
>
>>
>>
>> On Thursday, 7 February 2019 22:18:51 UTC-8, Matt Wilkie wrote:
>>>
>>> @Matt line 13-14 of the setup.py
 import leo.core.leoGlobals as g
 import leo.core.leoVersion as leoVersion
 won't work if setup.py is executed outside of the leo-editor folder.
 You need to add leo-editor folder to sys.path.

>>>
>>> Thank you! It would never have occurred to me that setup.py would be run
>>> from somewhere else.
>>>
>>
>> Fixed in https://github.com/leo-editor/leo-editor/issues/1079. Thanks
>> for pointing me in the right direction. I was off in a totally different
>> direction.
>>
>>
>> Neal:  If you rename `pyproject,toml` or move it out of the way pip
>> install will probably work without having to download a new copy of leo.
>>
>> Matt
>>
>> --
>> 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: Problem installing Leo under 18.04

2019-02-08 Thread Neal Becker
Nope, still no good.  I did a fresh zip download, then:
[nbecker@nbecker2 leo-editor]$ pip3 install --user --editable .
Obtaining file:///home/nbecker/leo-editor
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
...
Installing collected packages: leo
  Running setup.py develop for leo
Complete output from command /usr/bin/python3 -c "import setuptools,
tokenize;__file__='/home/nbecker/leo-editor/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
--user --prefix=:

Removing build, dist and egg directories
Creating entry_points for [OS name - system]: posix - Linux

/tmp/pip-build-env-cv1by6pl/overlay/lib/python3.7/site-packages/setuptools/dist.py:484:
UserWarning: The version specified ('5.8.1-b2-devel') is an invalid
version, this may not work as expected with newer versions of setuptools,
pip, and PyPI. Please see PEP 440 for more details.
  "details." % self.metadata.version
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: -c --help [cmd1 cmd2 ...]
   or: -c --help-commands
   or: -c cmd --help

error: option --user not recognized


Command "/usr/bin/python3 -c "import setuptools,
tokenize;__file__='/home/nbecker/leo-editor/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
--user --prefix=" failed with error code 1 in /home/nbecker/leo-editor/


On Fri, Feb 8, 2019 at 3:08 AM Matt Wilkie  wrote:

>
>
> On Thursday, 7 February 2019 22:18:51 UTC-8, Matt Wilkie wrote:
>>
>> @Matt line 13-14 of the setup.py
>>> import leo.core.leoGlobals as g
>>> import leo.core.leoVersion as leoVersion
>>> won't work if setup.py is executed outside of the leo-editor folder. You
>>> need to add leo-editor folder to sys.path.
>>>
>>
>> Thank you! It would never have occurred to me that setup.py would be run
>> from somewhere else.
>>
>
> Fixed in https://github.com/leo-editor/leo-editor/issues/1079. Thanks for
> pointing me in the right direction. I was off in a totally different
> direction.
>
>
> Neal:  If you rename `pyproject,toml` or move it out of the way pip
> install will probably work without having to download a new copy of leo.
>
> Matt
>
> --
> 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: Problem installing Leo under 18.04

2019-02-08 Thread Matt Wilkie


On Thursday, 7 February 2019 22:18:51 UTC-8, Matt Wilkie wrote:
>
> @Matt line 13-14 of the setup.py 
>> import leo.core.leoGlobals as g
>> import leo.core.leoVersion as leoVersion
>> won't work if setup.py is executed outside of the leo-editor folder. You 
>> need to add leo-editor folder to sys.path.
>>
>
> Thank you! It would never have occurred to me that setup.py would be run 
> from somewhere else. 
>

Fixed in https://github.com/leo-editor/leo-editor/issues/1079. Thanks for 
pointing me in the right direction. I was off in a totally different 
direction.


Neal:  If you rename `pyproject,toml` or move it out of the way pip install 
will probably work without having to download a new copy of leo.

Matt

-- 
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: Problem installing Leo under 18.04

2019-02-07 Thread Matt Wilkie

>
> @Matt line 13-14 of the setup.py 
> import leo.core.leoGlobals as g
> import leo.core.leoVersion as leoVersion
> won't work if setup.py is executed outside of the leo-editor folder. You 
> need to add leo-editor folder to sys.path.
>

Thank you! It would never have occurred to me that setup.py would be run 
from somewhere else. 

Matt


-- 
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: Problem installing Leo under 18.04

2019-02-07 Thread John Kane
*YES!*
The Cowardly Lion Logo has appeared!

Thank you and Matt for all the time and help.

In theory, with  pip3  and git installed, this should work?
===
wget http://github.com/leo-editor/leo-editor/zipball/devel/ --output-file
leo-editor-devel.zip

unzip leo-editor-devel.zip

# rename the resultant folder something reasonable
mv leo-editor-leo-editor-96b7679 leo-editor

cd ~/leo.editor
pip3 install --editable ./
=


On Thu, 7 Feb 2019 at 10:05, vitalije  wrote:

>
>
>> I got Leo to install after I installed* python3-pyqt5 *as Vitalije
>> suggested but Leo seems only willing to load in the GNOME console.
>>
>> Also I used pip rather than *pip3*
>>
>
> It seems like there is an error in setup.py. I hope Matt will fix that. In
> the meantime try running install command from the unzipped leo-editor
> folder.
> cd leo-editor
> pip3 install --editable ./
>
> There was suggestion earlier in this thread to do like this. Perhaps now,
> when you already have python3-pyqt5 installed, it will work.
> HTH Vitalije
>
> --
> 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.
>


-- 
John Kane
Kingston ON Canada

-- 
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: Problem installing Leo under 18.04

2019-02-07 Thread vitalije
@Matt line 13-14 of the setup.py 
import leo.core.leoGlobals as g
import leo.core.leoVersion as leoVersion
won't work if setup.py is executed outside of the leo-editor folder. You 
need to add leo-editor folder to sys.path.

Vitalije

-- 
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: Problem installing Leo under 18.04

2019-02-07 Thread vitalije


>
> I got Leo to install after I installed* python3-pyqt5 *as Vitalije 
> suggested but Leo seems only willing to load in the GNOME console. 
>
> Also I used pip rather than *pip3*
>
 
It seems like there is an error in setup.py. I hope Matt will fix that. In 
the meantime try running install command from the unzipped leo-editor 
folder.
cd leo-editor
pip3 install --editable ./

There was suggestion earlier in this thread to do like this. Perhaps now, 
when you already have python3-pyqt5 installed, it will work.
HTH Vitalije

-- 
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: Problem installing Leo under 18.04

2019-02-07 Thread John Kane


On Thursday, February 7, 2019 at 8:18:49 AM UTC-5, Neal Becker wrote:
>
> I tried also - doesn't work for me either:
>
> [nbecker@nbecker2 ~]$ pip3 install --editable leo-editor
> Obtaining file:///home/nbecker/leo-editor
>   Installing build dependencies ... done
>   Getting requirements to build wheel ... error
>   Complete output from command /usr/bin/python3 
> /home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py
>  
> get_requires_for_build_wheel /tmp/tmpsprl2inm:
>   Traceback (most recent call last):
> File 
> "/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
>  
> line 207, in 
>   main()
> File 
> "/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
>  
> line 197, in main
>   json_out['return_val'] = hook(**hook_input['kwargs'])
> File 
> "/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
>  
> line 54, in get_requires_for_build_wheel
>   return hook(config_settings)
> File 
> "/tmp/pip-build-env-1gxx3quj/overlay/lib/python3.7/site-packages/setuptools/build_meta.py",
>  
> line 130, in get_requires_for_build_wheel
>   return self._get_build_requires(config_settings, 
> requirements=['wheel'])
> File 
> "/tmp/pip-build-env-1gxx3quj/overlay/lib/python3.7/site-packages/setuptools/build_meta.py",
>  
> line 112, in _get_build_requires
>   self.run_setup()
> File 
> "/tmp/pip-build-env-1gxx3quj/overlay/lib/python3.7/site-packages/setuptools/build_meta.py",
>  
> line 126, in run_setup
>   exec(compile(code, __file__, 'exec'), locals())
> File "setup.py", line 13, in 
>   import leo.core.leoGlobals as g
>   ModuleNotFoundError: No module named 'leo'
>

I got Leo to install after I installed* python3-pyqt5 *as Vitalije 
suggested but Leo seems only willing to load in the GNOME console. 

Also I used pip rather than *pip3*
 


  
>   
> Command "/usr/bin/python3 
> /home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py
>  
> get_requires_for_build_wheel /tmp/tmpsprl2inm" failed with error code 1 in 
> /home/nbecker/leo-editor
>
>
> On Thu, Feb 7, 2019 at 6:47 AM John Kane > 
> wrote:
>
>>
>>
>> On Thursday, February 7, 2019 at 4:44:09 AM UTC-5, vitalije wrote:
>>>
>>> I did a *sudo apt install qt5-default *but I am getting the same error. 

>>>
>>> You should install python3-pyqt5:
>>>
>>> sudo apt-get install python3-pyqt5
>>>
>>> This should be enough for running Leo.
>>>
>>> HTH
>>> Vitalije
>>>
>>
>> Hi Vitalije, hi Matt; 
>>
>> Some success, loading with* leo-console* but is there a way to load a 
>> GUI. The GNOME terminal does not look all that user-friendly—see attached 
>> image.
>>
>> Something I forgot to mention in my last post: when I executed the wget 
>> command it downloaded a corrupted .zip file. I executed the command again, 
>> expecting that the old file would be overwritten. No, instead I got a zip 
>> file named* index.html.1* no file extension. I extracted it and got the 
>> functioning *leo-editor-leo-editor-96b7679* file.
>>
>> Thanks for all the help. I am feeling a lot more positive about this.
>>
>> -- 
>> 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: Problem installing Leo under 18.04

2019-02-07 Thread Neal Becker
I tried also - doesn't work for me either:

[nbecker@nbecker2 ~]$ pip3 install --editable leo-editor
Obtaining file:///home/nbecker/leo-editor
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  Complete output from command /usr/bin/python3
/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py
get_requires_for_build_wheel /tmp/tmpsprl2inm:
  Traceback (most recent call last):
File
"/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
line 207, in 
  main()
File
"/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
line 197, in main
  json_out['return_val'] = hook(**hook_input['kwargs'])
File
"/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
line 54, in get_requires_for_build_wheel
  return hook(config_settings)
File
"/tmp/pip-build-env-1gxx3quj/overlay/lib/python3.7/site-packages/setuptools/build_meta.py",
line 130, in get_requires_for_build_wheel
  return self._get_build_requires(config_settings,
requirements=['wheel'])
File
"/tmp/pip-build-env-1gxx3quj/overlay/lib/python3.7/site-packages/setuptools/build_meta.py",
line 112, in _get_build_requires
  self.run_setup()
File
"/tmp/pip-build-env-1gxx3quj/overlay/lib/python3.7/site-packages/setuptools/build_meta.py",
line 126, in run_setup
  exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 13, in 
  import leo.core.leoGlobals as g
  ModuleNotFoundError: No module named 'leo'

  
Command "/usr/bin/python3
/home/nbecker/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py
get_requires_for_build_wheel /tmp/tmpsprl2inm" failed with error code 1 in
/home/nbecker/leo-editor


On Thu, Feb 7, 2019 at 6:47 AM John Kane  wrote:

>
>
> On Thursday, February 7, 2019 at 4:44:09 AM UTC-5, vitalije wrote:
>>
>> I did a *sudo apt install qt5-default *but I am getting the same error.
>>>
>>
>> You should install python3-pyqt5:
>>
>> sudo apt-get install python3-pyqt5
>>
>> This should be enough for running Leo.
>>
>> HTH
>> Vitalije
>>
>
> Hi Vitalije, hi Matt;
>
> Some success, loading with* leo-console* but is there a way to load a
> GUI. The GNOME terminal does not look all that user-friendly—see attached
> image.
>
> Something I forgot to mention in my last post: when I executed the wget
> command it downloaded a corrupted .zip file. I executed the command again,
> expecting that the old file would be overwritten. No, instead I got a zip
> file named* index.html.1* no file extension. I extracted it and got the
> functioning *leo-editor-leo-editor-96b7679* file.
>
> Thanks for all the help. I am feeling a lot more positive about this.
>
> --
> 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: Problem installing Leo under 18.04

2019-02-07 Thread John Kane


On Thursday, February 7, 2019 at 4:44:09 AM UTC-5, vitalije wrote:
>
> I did a *sudo apt install qt5-default *but I am getting the same error. 
>>
>
> You should install python3-pyqt5:
>
> sudo apt-get install python3-pyqt5
>
> This should be enough for running Leo.
>
> HTH
> Vitalije
>

Hi Vitalije, hi Matt; 

Some success, loading with* leo-console* but is there a way to load a GUI. 
The GNOME terminal does not look all that user-friendly—see attached image.

Something I forgot to mention in my last post: when I executed the wget 
command it downloaded a corrupted .zip file. I executed the command again, 
expecting that the old file would be overwritten. No, instead I got a zip 
file named* index.html.1* no file extension. I extracted it and got the 
functioning *leo-editor-leo-editor-96b7679* file.

Thanks for all the help. I am feeling a lot more positive about this.

-- 
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: Problem installing Leo under 18.04

2019-02-07 Thread vitalije

>
> I did a *sudo apt install qt5-default *but I am getting the same error. 
>

You should install python3-pyqt5:

sudo apt-get install python3-pyqt5

This should be enough for running Leo.

HTH
Vitalije

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread Matt Wilkie
Thanks for the details. The Leo console tkinter errors might be worth 
opening an issue but will need to wait for Edward to get back. At any rate 
it's not a problem I would pursue. Tkinter isn't used for Qt gui mode. 
Console mode works, but is not very much fun relative to the real thing and 
I don't recommend it for someone just getting started. I probably shouldn't 
have muddied the waters by bringing it up. ;-)

matt

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread John Kane
Well the *leo-console* was not happy. See code below.

I installed* python-tk* as requested. No luck and a simple *leo* returns
the same error as I got yesterday.

No idea of what is going on at the moment.

I saw the *pyqt-??* package mentioned yesterday. I will have a go at
tracking it down tomorrow. It is just late enough here that I am likely to
make stupid mistakes and miss things tonight.

Thanks for all the help.
===L*eo Console* ==

jrkrideau@john-T510:~$ leo-console

setting leoID from os.getenv('USER'): 'jrkrideau'
cursesGui.py: Tk required for clipboard handling.
Traceback (most recent call last):

  File "/home/jrkrideau/leo-editor/leo/core/leoApp.py", line 1020, in
createCursesGui
import leo.plugins.cursesGui2 as cursesGui2

  File "/home/jrkrideau/leo-editor/leo/plugins/cursesGui2.py", line 39, in

from Tkinter import Tk # Python 2

  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in 
raise ImportError, str(msg) + ', please install the python-tk package'

ImportError: No module named _tkinter, please install the  package

can not create curses gui.


===*leo-console after installing python-tk*
===
rkrideau@john-T510:~$ leo-console

setting leoID from os.getenv('USER'): 'jrkrideau'
loading npyscreen
Leo 5.8.1-b2 devel, build 20190201162150, Fri Feb  1 16:21:50 EST 2019
Traceback (most recent call last):
  File "/home/jrkrideau/.local/bin/leo-console", line 11, in 
load_entry_point('leo', 'console_scripts', 'leo-console')()
  File "/home/jrkrideau/leo-editor/leo/core/runLeo.py", line 78, in
run_console
run(*args, **keywords)
  File "/home/jrkrideau/leo-editor/leo/core/runLeo.py", line 72, in run
g.app.loadManager.load(fileName, pymacs)
  File "/home/jrkrideau/leo-editor/leo/core/leoApp.py", line 2294, in load
g.app.gui.runMainLoop()
  File "/home/jrkrideau/leo-editor/leo/plugins/cursesGui2.py", line 1585,
in runMainLoop
self.curses_app.run()
  File
"/home/jrkrideau/leo-editor/leo/external/npyscreen/apNPSApplication.py",
line 46, in run
return npyssafewrapper.wrapper(self.__remove_argument_call_main)
  File
"/home/jrkrideau/leo-editor/leo/external/npyscreen/npyssafewrapper.py",
line 47, in wrapper
wrapper_no_fork(call_function)
  File
"/home/jrkrideau/leo-editor/leo/external/npyscreen/npyssafewrapper.py",
line 106, in wrapper_no_fork
return_code = call_function(_SCREEN)
  File
"/home/jrkrideau/leo-editor/leo/external/npyscreen/apNPSApplication.py",
line 37, in __remove_argument_call_main
return self.main()
  File "/home/jrkrideau/leo-editor/leo/plugins/cursesGui2.py", line 2775,
in main
g.app.gui.run()
  File "/home/jrkrideau/leo-editor/leo/plugins/cursesGui2.py", line 1600,
in run
self.top_form = self.createCursesTop()
  File "/home/jrkrideau/leo-editor/leo/plugins/cursesGui2.py", line 1327,
in createCursesTop
self.createCursesBody(c, form)
  File "/home/jrkrideau/leo-editor/leo/plugins/cursesGui2.py", line 1354,
in createCursesBody
slow_scroll=True,
  File "/home/jrkrideau/leo-editor/leo/external/npyscreen/fmForm.py", line
450, in add_widget
*args, **keywords)
  File "/home/jrkrideau/leo-editor/leo/external/npyscreen/wgboxwidget.py",
line 118, in __init__
self.make_contained_widget()
  File "/home/jrkrideau/leo-editor/leo/external/npyscreen/wgboxwidget.py",
line 152, in make_contained_widget
max_height=self.height-2,
  File "/home/jrkrideau/leo-editor/leo/plugins/cursesGui2.py", line 2783,
in __init__
super(LeoBody, self).__init__(*args, **kwargs)
  File "/home/jrkrideau/leo-editor/leo/external/npyscreen/wgmultiline.py",
line 90, in __init__
self.height, str(self)))
npyscreen.wgwidget.NotEnoughSpaceForWidget: Height of 1 allocated. Not
enough space allowed for 
jrkrideau@john-T510:

On Wed, 6 Feb 2019 at 21:19, Matt Wilkie  wrote:

> I'm curious: also try `*leo-console*`, which will use the ncurses console
> gui instead of qt.
>
> --
> 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.
>


-- 
John Kane
Kingston ON Canada

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread Matt Wilkie
I'm curious: also try `*leo-console*`, which will use the ncurses console 
gui instead of qt.

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread Matt Wilkie

>
> *can not import Qt*

*jrkrideau@john-T510:~$*
>
> I did a *sudo apt install qt5-default *but I am getting the same error. 
>

Closer! It needs to be *pyqt*, though I'm not sure what the actual package 
name would be.

matt

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread John Kane


On Wednesday, February 6, 2019 at 1:19:47 PM UTC-5, Matt Wilkie wrote:
>
> No go. I had already tried that based on your earlier post.  
>
>
> Hmm. I don't get it (but there's a great many things I don't get about 
> git. I wish something else had won the revision control developer mind 
> share.) Anyway a git clone isn't essential, it just makes future updates 
> easier. Try this:
>
> wget http://github.com/leo-editor/leo-editor/zipball/devel/ --output 
> leo-editor-devel.zip
>
> unzip leo-editor-devel.zip
>
> # rename the resultant folder something reasonable
> mv leo-editor-leo-editor-96b7679 leo-editor
>
> pip install --editable leo-editor
>
>
> Matt
> (btw, don't mistake sometimes brief responses for irritation. It's just 
> time and attention conservation.)
>

Looks like we are closer but not quite. Looked like a successful 
installation—I did have to install *python-pip* but I am getting:
*jrkrideau@john-T510:~$ leo*

*setting leoID from os.getenv('USER'): 'jrkrideau'*
*Traceback (most recent call last):*

*  File "/home/jrkrideau/leo-editor/leo/core/leoApp.py", line 1081, in 
createQtGui*
*assert Qt*

*AssertionError*

*can not import Qt*
*jrkrideau@john-T510:~$*

I did a *sudo apt install qt5-default *but I am getting the same error. 

Re brevity, I am a long-time denizen of the R-help mailing lists where 
replies such as *FAQ 7.11  *or *Don't post in HTML* or* ?set.seed* are not 
uncommon.  

Thanks for all the time and help.


 

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread Matt Wilkie

>
> No go. I had already tried that based on your earlier post.  


Hmm. I don't get it (but there's a great many things I don't get about git. 
I wish something else had won the revision control developer mind share.) 
Anyway a git clone isn't essential, it just makes future updates easier. 
Try this:

wget http://github.com/leo-editor/leo-editor/zipball/devel/ --output 
leo-editor-devel.zip

unzip leo-editor-devel.zip

# rename the resultant folder something reasonable
mv leo-editor-leo-editor-96b7679 leo-editor

pip install --editable leo-editor


Matt
(btw, don't mistake sometimes brief responses for irritation. It's just 
time and attention conservation.)

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread John Kane


On Wednesday, February 6, 2019 at 6:37:49 AM UTC-5, Matt Wilkie wrote:
>
> Try this (`git fetch` is the new part):
>
> cd ~
> sudo apt install git
> git clone --depth=200 https://github.com/leo-editor/leo-editor.git
> cd ~/leo-editor
> *git fetch*
> git checkout devel
> pip3 install --editable ~/leo-editor
>

No go. I had already tried that based on your earlier post.  

Thanks 

jrkrideau@john-T510:~$ cd ~/leo-editor
jrkrideau@john-T510:~/leo-editor$ git fetch
jrkrideau@john-T510:~/leo-editor$ git checkout devel
error: pathspec 'devel' did not match any file(s) known to git.
jrkrideau@john-T510:


-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread Matt Wilkie


> Try this (`git fetch` is the new part):
>
> cd ~
> sudo apt install git
> git clone --depth=200 https://github.com/leo-editor/leo-editor.git
> cd ~/leo-editor
> *git fetch*
> git checkout devel
> pip3 install --editable ~/leo-editor
>

at which running `leo` in any terminal window should work. Adding desktop 
and system menu links is an additional exercise (that I don't have 
instructions for) 

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread Matt Wilkie
Try this (`git fetch` is the new part):

cd ~
sudo apt install git
git clone --depth=200 https://github.com/leo-editor/leo-editor.git
cd ~/leo-editor
*git fetch*
git checkout devel
pip3 install --editable ~/leo-editor

-- 
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: Problem installing Leo under 18.04

2019-02-06 Thread John Kane


On Wednesday, February 6, 2019 at 12:44:50 AM UTC-5, Matt Wilkie wrote:
>
>
> I am having a problem with installing Leo under Ubuntu 18.04 using the 
>>> debian instructions at  
>>> http://leoeditor.com/installing.html#installing-from-a-debian-package 
>>> <http://www.google.com/url?q=http%3A%2F%2Fleoeditor.com%2Finstalling.html%23installing-from-a-debian-package&sa=D&sntz=1&usg=AFQjCNEYHrMcg61NWyjNt6g6Q1L0AGjq2A>
>>>
>>
> Unfortunately the debian packaging is no longer maintained and this 
> install method flat out doesn't work. The install instructions had that 
> section removed a couple weeks ago (
> https://github.com/leo-editor/leo-editor/issues/1063 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fleo-editor%2Fleo-editor%2Fissues%2F1063&sa=D&sntz=1&usg=AFQjCNF9UAEgZY6516mY5o8fm4qYbhU9Wg>).
>  
> When I visit http://leoeditor.com/installing.html today I don't see 
> debian mentioned. Do you? (I'm wondering if there's a page cache issue).
>
> Matt
>

No I don't see anything about debian in  the install instructions. If the 
debian install package is broken, should I assume that the instructions for 
using Anaconda or Miniconda are outdated or that they are worth a try?  I 
did notice in the Anaconda instructions there is the command *pip install 
leo*. Is this outdated? I have* pip3* installed, not *pip*.

Given my abysmally low level of knowledge of Linux I am at a loss as to 
what might be the best "new" approach. 

Thanks for your time and patience.






-- 
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: Problem installing Leo under 18.04

2019-02-05 Thread Matt Wilkie


> I am having a problem with installing Leo under Ubuntu 18.04 using the 
>> debian instructions at  
>> http://leoeditor.com/installing.html#installing-from-a-debian-package 
>> <http://www.google.com/url?q=http%3A%2F%2Fleoeditor.com%2Finstalling.html%23installing-from-a-debian-package&sa=D&sntz=1&usg=AFQjCNEYHrMcg61NWyjNt6g6Q1L0AGjq2A>
>>
>
Unfortunately the debian packaging is no longer maintained and this install 
method flat out doesn't work. The install instructions had that section 
removed a couple weeks ago 
(https://github.com/leo-editor/leo-editor/issues/1063). When I visit 
http://leoeditor.com/installing.html today I don't see debian mentioned. Do 
you? (I'm wondering if there's a page cache issue).

Matt

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


  1   2   3   >