Occasional incomplete installs (from pip)

25 views
Skip to first unread message

Matt Wilkie

unread,
Jul 30, 2019, 11:44:38 AM7/30/19
to leo-editor
Note to self/world for possible future troubleshooting. Sometimes the python environment gets into a state where Leo (or presumably any python package) is incompletely (un)installed. The fix is simple, just `pip install -e .` again (and then uninstall if that's the true intention). I'm unsure of the recipe that lands here but it's happened to me several times. I'm bothering to make a note about it now because I've hunch this will crop up again later somewhere as a bonafide bug/issue.


$ leo-m
Traceback (most recent call last):
 
File "c:\tools\miniconda3\envs\leo-dev\Scripts\leo-m-script.py", line 6, in <module>
   
from pkg_resources import load_entry_point
 
File "c:\tools\miniconda3\envs\leo-dev\lib\site-packages\pkg_resources\__init__.py", line 3126, in <module>
   
@_call_aside
 
File "c:\tools\miniconda3\envs\leo-dev\lib\site-packages\pkg_resources\__init__.py", line 3110, in _call_aside
    f
(*args, **kwargs)
 
File "c:\tools\miniconda3\envs\leo-dev\lib\site-packages\pkg_resources\__init__.py", line 3139, in _initialize_master_working_set
    working_set
= WorkingSet._build_master()
 
File "c:\tools\miniconda3\envs\leo-dev\lib\site-packages\pkg_resources\__init__.py", line 581, in _build_master
    ws
.require(__requires__)
 
File "c:\tools\miniconda3\envs\leo-dev\lib\site-packages\pkg_resources\__init__.py", line 898, in require
    needed
= self.resolve(parse_requirements(requirements))
 
File "c:\tools\miniconda3\envs\leo-dev\lib\site-packages\pkg_resources\__init__.py", line 784, in resolve
   
raise DistributionNotFound(req, requirers)
pkg_resources
.DistributionNotFound: The 'leo' distribution was not found and is required by the application

(leo-dev) D:\code-maphew\leo-editor
$ pip show leo

(leo-dev) D:\code-maphew\leo-editor
$ pip uninstall leo
Skipping leo as it is not installed.

-matt

Edward K. Ream

unread,
Jul 30, 2019, 4:02:40 PM7/30/19
to leo-editor
On Tue, Jul 30, 2019 at 10:44 AM Matt Wilkie <map...@gmail.com> wrote:
Note to self/world for possible future troubleshooting.

Please create an issue for this, if you haven't done so.  Issues are Leo's permanent memory.

Edward

Matt Wilkie

unread,
Aug 1, 2019, 7:14:39 PM8/1/19
to leo-editor


Note to self/world for possible future troubleshooting.

Please create an issue for this, if you haven't done so.  Issues are Leo's permanent memory.

yabut too many Opens are demoralizing. If it happens once and seems hard to reproduce or too localized I just note it. When I run into it again it's time to make a case out of it. ;-)

-matt
Reply all
Reply to author
Forward
0 new messages