Installing Leo from PyPI?

102 views
Skip to first unread message

Viktor Ransmayr

unread,
Aug 7, 2016, 5:25:31 AM8/7/16
to leo-editor
Hello Edward & Community,

Now that PyQt 5.7 is available as a wheel from https://pypi.python.org/pypi/PyQt5 I tried to install Leo from PyPI into a dedicated virtual environment using Python 3.5.

What I found out is not what I had expected:

* It did not install Leo 5.3 but Leo 5.0b2  - See <Log-1>
* I'm getting the same error that I reported already a while ago - See <Log-2>
* I even re-did everything with PyPI cache disabled - See <Log-3>

Two questions:

1) Has anyone successfullly installed Leo 5.3 from PyPI?
2) Since I have reset my PC - and - I'm now running Windows 10 (Version 1607) I'd be really interested in tracking down the 'Value Error' issue. - Any ideas?

With kind regards,

Viktor

<Log-1>

(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo> pip list
pip (8.1.2)
PyQt5 (5.7)
setuptools (20.10.1)
sip (4.18.1)
(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo> pip install leo
Collecting leo
  Using cached leo-5.0b2.zip
Installing collected packages: leo
  Running setup.py install for leo ... done
Successfully installed leo-5.0b2
(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo>

</Log-1>

<Log-2>

(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo\Scripts> ./leoc

** isPython3: True
Leo 5.0b2, build 20141117141110, Mon Nov 17 14:11:10 CST 2014
Not running from a git repo
Python 3.5.2, PyQt version 5.7.0
Windows 10 AMD64 (build 10.0.14393) SP0
leoID=VIRA2015 (in C:\Users\Viktor\.leo)
reading settings in C:\users\viktor\pyve\ve4leo\lib\site-packages\leo\config\leoSettings.leo
reading settings in C:\Users\Viktor\.leo\myLeoSettings.leo
Using default leo file name:
C:\Users\Viktor\.leo\workbook.leo
Traceback (most recent call last):
  File "C:\Users\Viktor\PyVE\VE4Leo\Scripts\leoc-script.py", line 9, in <module>
    load_entry_point('leo==5.0b2', 'console_scripts', 'leoc')()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\runLeo.py", line 81, in run
    g.app.loadManager.load(fileName,pymacs)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 1963, in load
    ok = lm.doPostPluginsInit()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2310, in doPostPluginsInit
    c1 = lm.openEmptyWorkBook()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2368, in openEmptyWorkBook
    c = lm.loadLocalFile(fn,gui=g.app.gui,old_c=None)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2564, in loadLocalFile
    c = lm.openFileByName(fn,gui,old_c,previousSettings)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2621, in openFileByName
    lm.createMenu(c,fn)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2632, in createMenu
    g.app.recentFilesManager.updateRecentFiles(fn)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 3207, in updateRecentFiles
    if (munge(fileName) == munge(name) or
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 3198, in munge
    return g.os_path_finalize(name or '').lower()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoGlobals.py", line 6193, in os_path_finalize
    path = os.path.abspath(path)
  File "C:\Users\Viktor\Programs\Python\Python35\lib\ntpath.py", line 535, in abspath
    path = _getfullpathname(path)
ValueError: _getfullpathname: embedded null character
(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo\Scripts>

</Log-2>

<Log-3>

(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo> pip list
pip (8.1.2)
PyQt5 (5.7)
setuptools (20.10.1)
sip (4.18.1)
(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo> pip install leo --no-cache-dir
Collecting leo
  Downloading leo-5.0b2.zip (6.6MB)
    100% |################################| 6.6MB 2.0MB/s
Installing collected packages: leo
  Running setup.py install for leo ... done
Successfully installed leo-5.0b2
(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo> ./Scripts/leoc

** isPython3: True
Leo 5.0b2, build 20141117141110, Mon Nov 17 14:11:10 CST 2014
Not running from a git repo
Python 3.5.2, PyQt version 5.7.0
Windows 10 AMD64 (build 10.0.14393) SP0
leoID=VIRA2015 (in C:\Users\Viktor\.leo)
reading settings in C:\users\viktor\pyve\ve4leo\lib\site-packages\leo\config\leoSettings.leo
reading settings in C:\Users\Viktor\.leo\myLeoSettings.leo
Using default leo file name:
C:\Users\Viktor\.leo\workbook.leo
Traceback (most recent call last):
  File "C:\Users\Viktor\PyVE\VE4Leo\Scripts\leoc-script.py", line 9, in <module>
    load_entry_point('leo==5.0b2', 'console_scripts', 'leoc')()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\runLeo.py", line 81, in run
    g.app.loadManager.load(fileName,pymacs)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 1963, in load
    ok = lm.doPostPluginsInit()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2310, in doPostPluginsInit
    c1 = lm.openEmptyWorkBook()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2368, in openEmptyWorkBook
    c = lm.loadLocalFile(fn,gui=g.app.gui,old_c=None)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2564, in loadLocalFile
    c = lm.openFileByName(fn,gui,old_c,previousSettings)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2621, in openFileByName
    lm.createMenu(c,fn)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 2632, in createMenu
    g.app.recentFilesManager.updateRecentFiles(fn)
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 3207, in updateRecentFiles
    if (munge(fileName) == munge(name) or
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoApp.py", line 3198, in munge
    return g.os_path_finalize(name or '').lower()
  File "c:\users\viktor\pyve\ve4leo\lib\site-packages\leo\core\leoGlobals.py", line 6193, in os_path_finalize
    path = os.path.abspath(path)
  File "C:\Users\Viktor\Programs\Python\Python35\lib\ntpath.py", line 535, in abspath
    path = _getfullpathname(path)
ValueError: _getfullpathname: embedded null character
(VE4Leo) PS C:\Users\Viktor\PyVE\VE4Leo>

</Log-3>

lewis

unread,
Aug 9, 2016, 8:22:53 AM8/9/16
to leo-editor
Hi Viktor,

Answers to your questions:
1) Has anyone successfullly installed Leo 5.3 from PyPI?

No but I tried :)
I created a python 3.5 virtual environment using the python pyvenv script, installed leo from PyPI and confirmed it installs Leo 5.0b2, despite it being listed as Leo 5.3 at pypi.


2) ... I'm now running Windows 10 (Version 1607) I'd be really interested in tracking down the 'Value Error' issue. - Any ideas?

I don't see the 'Value Error' issue you have. I only had to disable a few plugins for a clean log.

Leo Log Window
Leo 5.0b2, build 20141117141110, Mon Nov 17 14:11:10 CST 2014
Not running from a git repo
Python 3.5.2, PyQt version 5.7.0
Windows 10 AMD64 (build 10.0.10586) SP0
leoID=lewis (in C:\Users\lewis\.leo)
load dir: C:\users\lewis\vepy35\lib\site-packages\leo\core
[snip]

Regards
Lewis


On Sunday, 7 August 2016 19:25:31 UTC+10, Viktor Ransmayr wrote:

What I found out is not what I had expected:

* It did not install Leo 5.3 but Leo 5.0b2  - See <Log-1>

Viktor Ransmayr

unread,
Aug 9, 2016, 2:44:12 PM8/9/16
to leo-editor
Hello Lewis


Am Dienstag, 9. August 2016 14:22:53 UTC+2 schrieb lewis:
Answers to your questions:
1) Has anyone successfullly installed Leo 5.3 from PyPI?

No but I tried :)
I created a python 3.5 virtual environment using the python pyvenv script, installed leo from PyPI and confirmed it installs Leo 5.0b2, despite it being listed as Leo 5.3 at pypi.

Thanks for confirming this issue.

2) ... I'm now running Windows 10 (Version 1607) I'd be really interested in tracking down the 'Value Error' issue. - Any ideas?

I don't see the 'Value Error' issue you have. I only had to disable a few plugins for a clean log.

Leo Log Window
Leo 5.0b2, build 20141117141110, Mon Nov 17 14:11:10 CST 2014
Not running from a git repo
Python 3.5.2, PyQt version 5.7.0
Windows 10 AMD64 (build 10.0.10586) SP0
leoID=lewis (in C:\Users\lewis\.leo)
load dir: C:\users\lewis\vepy35\lib\site-packages\leo\core
[snip]

That's interesting & confusing (at least to me ;-)

As I said: I have reset my PC - and - I'm running the latest version of Windows 10, i.e. "1607".

Two differences I see to my configuration is that you running an older version of Windows 10, possibly "1511" - and - I assume an english version of it and not a german version like I do.

I'm puzzled ...

With kind regards,

Viktor

Viktor Ransmayr

unread,
Aug 9, 2016, 2:45:54 PM8/9/16
to leo-editor
Hello Edward


Am Dienstag, 9. August 2016 14:22:53 UTC+2 schrieb lewis:
Answers to your questions:
1) Has anyone successfullly installed Leo 5.3 from PyPI?

No but I tried :)
I created a python 3.5 virtual environment using the python pyvenv script, installed leo from PyPI and confirmed it installs Leo 5.0b2, despite it being listed as Leo 5.3 at pypi.

Shall I create a Leo issue for that?

With kind regards,

Viktor

Matt Wilkie

unread,
Aug 12, 2016, 2:31:05 AM8/12/16
to leo-e...@googlegroups.com

Pyqt available as wheel? That's really good news!

I'm about to start holidays but will dig in to this in September and see what i can figure out. (I built the first pypi Leo release packages, and may have some insight or experience I neglected to document for Edward and others.)

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+unsubscribe@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.

lewis

unread,
Oct 21, 2016, 6:04:49 AM10/21/16
to leo-editor
Hi Matt,

Have you had any success in preparing a later Leo version for PyPI? It would be nice to have a stable 5.4 release available.
 
Regards
Lewis
Reply all
Reply to author
Forward
0 new messages