I've messed around so much now that I forget if I used homebrew to install 
python3.9. Mind has poor retention these days, specially since I'm over my 
head in these waters anyway. Should take notes.  Is there a way I can get a 
history of terminal commands to see what I've done?
I did decide not to try homebrew to install Leo, but did it with python3.9, 
being sort of fed up with homebrew since it seemed to mess me up pretty 
good.
Well, thanks much for all your help.  I'll keep wrestling with it.  Might 
be getting another used Mac given to me in a couple of weeks, so may have 
the opportunity to start fresh.

On Sunday, December 20, 2020 at 1:27:12 PM UTC-5 tbp1...@gmail.com wrote:

> I don't think I can help you much here, not having a Mac to try things out 
> with. I can see something is going wrong, because something is expecting to 
> find a Python3.7 version and run it during the install, but not finding 
> it.  You are running the install with Python 3.9, so Python 3.7 shouldn't 
> be getting invoked.  This makes me think that Python 3.7 is being invoked 
> by some script that perhaps is trying to use an old (now non-existent) 
> default version of Python.
>
> You could look for all versions of Python on your system with:
>
> find  / -name python*  -type f 2>/dev/null |grep /bin/
>
> This will give you a lot of hits, most of which will be of no interest.  
> You might find some path that looks similar to the one that didn't exist, 
> but with a different version:
>
> /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python
>  
>
>
> The Cellar is a location created by Homebrew, so something about Homebrew 
> must be using a broken script.  But I don't have any knowledge about this 
> subject.  Did you use Homebrew to install Python 3.9?  If not, this might 
> be the cause of the problems, even if I don't see why just now.  I would 
> say that the chances are good that some environmental variable is being set 
> wrong and that some script is using it.  How to fix that is not something I 
> can answer.
>
> It could be time to go to the Homebrew site and ask how to straighten this 
> out.  Alternatively maybe the Python site might be a good choice.  Someone 
> there probably knows a lot about installing with Homebrew on a Mac.
> On Sunday, December 20, 2020 at 12:13:32 PM UTC-5 andyjim wrote:
>
>> I am finally making some progress.  Seems something got broken in my 
>> system and I don’t quite have it fully repaired yet.  The following might 
>> give the best clues as to what I need to do.  After finally getting pip 
>> upgraded, and learning that I have to use $ python3.9 command in the 
>> terminal, every time, I was finally able to start installing Leo 6.3 (I 
>> think my old version was 5.6 or something).  But it seems even Python3.9 is 
>> looking the wrong place for something.  Not sure what I need to do next, 
>> and how to make sure Python3.9 runs the show top to bottom.
>> Andrews-iMac:~ jam$ pip --version
>> -bash: /Library/Frameworks/Python.framework/Versions/3.9/bin/pip: 
>> /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/:
>>  
>> bad interpreter: No such file or directory [This is after finally 
>> successfully upgrading pip, but $ pip --version  command could not find]
>> Andrews-iMac:~ jam$ python3.9 -m pip --version
>> pip 20.3.3 from 
>> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip
>>  
>> (python 3.9) 
>> Andrews-iMac:~ jam$ python3.9 -m pip install leo
>> Collecting leo
>>   Downloading leo-6.3-py3-none-any.whl (9.7 MB)
>>      |████████████████████████████████| 9.7 MB 6.4 kB/s 
>> Collecting PyQt5>=5.12
>>   Downloading 
>> PyQt5-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-abi3-macosx_10_13_intel.whl 
>> (47.6 MB)
>>      |████████████████████████████████| 47.6 MB 761 kB/s 
>> Collecting PyQt5-sip<13,>=12.8
>>   Downloading PyQt5_sip-12.8.1-cp39-cp39-macosx_10_9_x86_64.whl (63 kB)
>>      |████████████████████████████████| 63 kB 428 kB/s 
>> Collecting pyshortcuts>=1.7
>>   Downloading pyshortcuts-1.8.0.tar.gz (933 kB)
>>      |████████████████████████████████| 933 kB 759 kB/s 
>>     ERROR: Error [Errno 2] No such file or directory: 
>> '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python'
>>  
>> while executing command python setup.py egg_info
>> ERROR: Could not install packages due to an EnvironmentError: [Errno 2] 
>> No such file or directory: 
>> '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python'
>>
>> On Thursday, December 17, 2020 at 1:20:39 PM UTC-5 tbp1...@gmail.com 
>> wrote:
>>
>>> You left off the "m":
>>>
>>> python3.9 -m leo.core.runLeo
>>>
>>>
>>>
>>> On Thursday, December 17, 2020 at 10:39:21 AM UTC-5 andyjim wrote:
>>>
>>>> Andrews-iMac:~ jam$ python3.9 - leo.core.runLeo
>>>> Python 3.9.1 (v3.9.1:1e5d33e9b9, Dec  7 2020, 12:44:01) 
>>>> [Clang 12.0.0 (clang-1200.0.32.27)] on darwin
>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>> >>> 
>>>>
>>>> not sure what's supposed to happen here
>>>>
>>>> On Thursday, December 17, 2020 at 9:51:45 AM UTC-5 tbp1...@gmail.com 
>>>> wrote:
>>>>
>>>>> On Thursday, December 17, 2020 at 9:30:29 AM UTC-5 andyjim wrote:
>>>>>
>>>>>> Despite the glitch with pip, it appears I have python3.9, so I went 
>>>>>>> ahead with:
>>>>>>>
>>>>>>> Andrews-iMac:~ jam$ python 3.9 - leo.core.runLeo python: can't open 
>>>>>>> file '3.9': [Errno 2] No such file or directory
>>>>>>>
>>>>>>  No space after "python" - use python3.9. The way you typed it, 
>>>>> Python tried to open a file named "3.9".
>>>>>
>>>>> There was no glitch with pip.  It's just telling you that there is an 
>>>>> update available for pip itself, not that anything is wrong.  Update it 
>>>>> when it's convenient; the message tells you the command line to use.
>>>>>
>>>>

-- 
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/035882f1-cecc-47f1-8d9a-1663a77f8a78n%40googlegroups.com.

Reply via email to