I have learned how to avoid this problem. I recently installed qScintilla using pip. It installed PyQt5 as a prerequisite. This broke Leo (segfault at start-up).
Rolling this back proved to be challenging. Probably because I didn't really understand what had happened until after I "fixed" it. This install changed my default Anaconda environment so that python = python2 and python3 = python3. It made the default python2 and Leo didn't like that, not with the version of PyQt5 that was the default (5.10). I "fixed" it by reinstalling Anaconda. Now I keep a cloned conda environment of my base install handy so that my workflow doesn't get disrupted unexpectedly. I have it automated to create a new back-up once a week to keep it up to date. In my experience, the distributions do not do a great job with python installation. It is much less confusing to let Anaconda (or Miniconda) do the heavy lifting and then to fine tune from there. Chris On 2/24/18, Matt Wilkie <[email protected]> wrote: > > >> @Edward K Ream: I might suggest that (at least in the near term) some >>> popular linux distros (including Debian) are shipping systems that >>> contain >>> both python v2 and python v3 and therefore this issue is probably going >>> to >>> crop up often for linux users. Subsequently, it might be worth noting >>> this >>> issue in the leo documentation dealing with installation? >>> >> >> That section is already too long and difficult. Perhaps Matt can come up >> >> with an automatic solution. >> > > This must be a common problem, so there must be an idiomatic solution. I'll > > see what I can learn, but after fixing the pip install problems. It might > be as simple as `#!/usr/bin/env python3` in the script header (but not that > > precisely because then py2 isn't used for the people who want that). > > 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 [email protected]. > To post to this group, send email to [email protected]. > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
