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)QQQGeneric recipe for all platforms. Adjustment for local norms is expected.
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. ;-)
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.
...
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?
Hello Matt, hello Edward,Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie <map...@gmail.com>: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 ...
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 <map...@gmail.com>: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.
Am Sa., 12. Okt. 2019 um 15:43 Uhr schrieb Viktor Ransmayr <viktor....@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 <map...@gmail.com>: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:
- Use 'wget' alias w/i PS. - OK. - See "Log-004"
- Use 'extract-archive' w/i PS. - OK. - See "Log-005"
- Use 'pip' w/i PS. - Not OK. - See "Log-006"
Do you have an explanation, why pip fails in this context?
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?
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
@Edward: Has been a deliberate design decision of your side & if yes, please explain why?
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 <map...@gmail.com>: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 used for my second attempt :
python C:\Users\Viktor\pyve\github\leo-devel\launchLeo.pyPfad nicht finden: 'C:/users/viktor/pyve/ve4ileo/lib/site-packages/leo/doc/quickstart.leo'
(leo-devel) PS C:\Users\Viktor\pyve\github\leo-devel>
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.
Please take this discussion offline, and summarize your results on leo-editor when you have resolved this.
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.
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.
I leave the technical details for Matt to explain - but - we now finally reached a state, where the underlying issue is clearly identified :-)
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.