Re: [error] under m1 chip's macOS 12.3.1 with homebrew
Zoom.Quiet 于2022年5月7日周六 08:42写道: > > Edward K. Ream 于2022年5月6日周五 22:14写道: > > > > On Fri, May 6, 2022 at 7:51 AM tbp1...@gmail.com > > wrote: > >> > >> this looks like a problem with Qt or PyQt, not leo per se. possibilities: > >> > >> - try to install PyQt6 on its own (without the rest of leo); > >> - try to install an earlier version of PyQt6, if you can figure out which > >> ones are available; > >> - try installing PyQt5 instead of PyQt6 (Leo can use either one); > >> - install python 3.9 and see whether PyQt6 or PyQt5 will install without > >> errors. > > > > > > Sounds like good advice. Thanks. > > > sure, i will try them all. > my macOS is transform old macOS 10.12 into M1 chip macOS 12.* i guess old python env. is compiled by intel chip, and new env. base arm chip, so everything is chaos; so try some time, find can work way: + base new arm homebrew install miniconda + usage this conda env, create py 3.8.11 + and also base abrew(brew for arm chip) install qt@5 pyqt@5 + copy all packet from hombrew into conda 's env, for me is: /opt/homebrew/Cellar/pyqt@5/5.15.6/lib/python3.9/site-packages/ => /opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/ for now leo can install succeed all installed packets is: $ pip list Package Version - --- alabaster 0.7.12 astroid 2.11.5 attrs 21.4.0 Babel 2.10.1 beautifulsoup44.11.1 bs4 0.0.1 certifi 2020.6.20 charset-normalizer2.0.12 commonmark0.9.1 dialite 0.5.3 dill 0.3.5.1 docutils 0.17.1 fastjsonschema2.15.3 flexx 0.8.4 future0.18.2 idna 3.3 imagesize 1.3.0 importlib-metadata4.11.4 importlib-resources 5.7.1 isort 5.10.1 Jinja23.1.2 jsonschema4.5.1 jupyter-core 4.10.0 lazy-object-proxy 1.7.1 leo 5.9 MarkupSafe2.1.1 mccabe0.7.0 nbformat 5.4.0 packaging 21.3 pip 21.2.4 pip-search0.0.12 platformdirs 2.5.2 pscript 0.7.7 pyflakes 2.4.0 Pygments 2.12.0 pylint2.13.9 pyparsing 3.0.9 PyQt3D5.15.5 PyQt5 5.15.6 PyQt5-sip 12.9.0 PyQtChart 5.15.5 PyQtDataVisualization 5.15.5 PyQtNetworkAuth 5.15.5 PyQtPurchasing5.15.5 pyrsistent0.18.1 pytz 2022.1 requests 2.27.1 rich 12.4.4 setuptools61.2.0 six 1.16.0 snowballstemmer 2.2.0 soupsieve 2.3.2.post1 Sphinx4.5.0 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp2.0.0 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 tomli 2.0.1 tornado 6.1 traitlets 5.2.1.post0 typing_extensions 4.2.0 urllib3 1.26.9 webruntime0.5.8 wheel 0.37.1 wrapt 1.14.1 zipp 3.8.0 but when i try run leo under this env, is error: ༄ leo leoQt.py: can not fully import PyQt5. Traceback (most recent call last): File "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/leoQt.py", line 55, in from PyQt5 import QtCore ModuleNotFoundError: No module named 'PyQt5.sip' Traceback (most recent call last): File "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/bin/leo", line 5, in from leo.core.runLeo import run File "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/runLeo.py", line 27, in leoGlobals.app = leoApp.LeoApp() File "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/leoApp.py", line 334, in __init__ import leo.core.leoFrame as leoFrame File "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/leoFrame.py", line 13, in import leo.core.leoColorizer as leoColorizer File "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/leoColorizer.py", line 18, in from leo.core.leoQt import
Re: [error] under m1 chip's macOS 12.3.1 with homebrew
Zoom.Quiet 于2022年5月28日周六 00:52写道: > Zoom.Quiet 于2022年5月7日周六 08:42写道: > > Edward K. Ream 于2022年5月6日周五 22:14写道: > > > On Fri, May 6, 2022 at 7:51 AM tbp1...@gmail.com > > > wrote: > > >> this looks like a problem with Qt or PyQt, not leo per se. possibilities: > > >> > > >> - try to install PyQt6 on its own (without the rest of leo); > > >> - try to install an earlier version of PyQt6, if you can figure out > > >> which ones are available; > > >> - try installing PyQt5 instead of PyQt6 (Leo can use either one); > > >> - install python 3.9 and see whether PyQt6 or PyQt5 will install without > > >> errors. > > > > > > > > > Sounds like good advice. Thanks. > > > > > sure, i will try them all. > > > my macOS is transform old macOS 10.12 into M1 chip macOS 12.* > i guess old python env. is compiled by intel chip, > and new env. base arm chip, so everything is chaos; > > so try some time, find can work way: > > + base new arm homebrew install miniconda > + usage this conda env, create py 3.8.11 > + and also base abrew(brew for arm chip) install qt@5 pyqt@5 > + copy all packet from hombrew into conda 's env, for me is: > /opt/homebrew/Cellar/pyqt@5/5.15.6/lib/python3.9/site-packages/ > => > /opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/ > > for now leo can install succeed > all installed packets is: > > $ pip list > Package Version > - --- > alabaster 0.7.12 > astroid 2.11.5 > attrs 21.4.0 > Babel 2.10.1 > beautifulsoup44.11.1 > bs4 0.0.1 > certifi 2020.6.20 > charset-normalizer2.0.12 > commonmark0.9.1 > dialite 0.5.3 > dill 0.3.5.1 > docutils 0.17.1 > fastjsonschema2.15.3 > flexx 0.8.4 > future0.18.2 > idna 3.3 > imagesize 1.3.0 > importlib-metadata4.11.4 > importlib-resources 5.7.1 > isort 5.10.1 > Jinja23.1.2 > jsonschema4.5.1 > jupyter-core 4.10.0 > lazy-object-proxy 1.7.1 > leo 5.9 > MarkupSafe2.1.1 > mccabe0.7.0 > nbformat 5.4.0 > packaging 21.3 > pip 21.2.4 > pip-search0.0.12 > platformdirs 2.5.2 > pscript 0.7.7 > pyflakes 2.4.0 > Pygments 2.12.0 > pylint2.13.9 > pyparsing 3.0.9 > PyQt3D5.15.5 > PyQt5 5.15.6 > PyQt5-sip 12.9.0 > PyQtChart 5.15.5 > PyQtDataVisualization 5.15.5 > PyQtNetworkAuth 5.15.5 > PyQtPurchasing5.15.5 > pyrsistent0.18.1 > pytz 2022.1 > requests 2.27.1 > rich 12.4.4 > setuptools61.2.0 > six 1.16.0 > snowballstemmer 2.2.0 > soupsieve 2.3.2.post1 > Sphinx4.5.0 > sphinxcontrib-applehelp 1.0.2 > sphinxcontrib-devhelp 1.0.2 > sphinxcontrib-htmlhelp2.0.0 > sphinxcontrib-jsmath 1.0.1 > sphinxcontrib-qthelp 1.0.3 > sphinxcontrib-serializinghtml 1.1.5 > tomli 2.0.1 > tornado 6.1 > traitlets 5.2.1.post0 > typing_extensions 4.2.0 > urllib3 1.26.9 > webruntime0.5.8 > wheel 0.37.1 > wrapt 1.14.1 > zipp 3.8.0 > > > > but when i try run leo under this env, is error: > > ༄ leo > leoQt.py: can not fully import PyQt5. > Traceback (most recent call last): > > File > "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/leoQt.py", > line 55, in > from PyQt5 import QtCore > > ModuleNotFoundError: No module named 'PyQt5.sip' > > > Traceback (most recent call last): > File "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/bin/leo", > line 5, in > from leo.core.runLeo import run > File > "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/runLeo.py", > line 27, in > leoGlobals.app = leoApp.LeoApp() > File > "/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/leoApp.py", > line 334, in __init__ > import leo.core.leoFrame as leoFrame > File > "/opt/homebrew/Caskroom/miniconda/bas
Re: [error] under m1 chip's macOS 12.3.1 with homebrew
On Fri, May 27, 2022 at 12:25 PM Zoom.Quiet wrote: > fixed, i guess the pip install leo auto install old verion, > so i download lasted leo and base conda env. call launchLeo.py, and > working now ;-) > later, i will write the M1 chip macOS install Leo handbook... > Many thanks for your testing. There are no calls to time.clock in Leo's core. time.clock was removed in Python 3.8. Edward -- 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/CAMF8tS07ZagmiLk_vsKPoTNU1rfQz4%2B51WvEydvjEAusO_ikDg%40mail.gmail.com.
Re: [error] under m1 chip's macOS 12.3.1 with homebrew
Edward K. Ream 于2022年5月28日周六 06:04写道: > On Fri, May 27, 2022 at 12:25 PM Zoom.Quiet wrote: >> >> fixed, i guess the pip install leo auto install old verion, >> so i download lasted leo and base conda env. call launchLeo.py, and >> working now ;-) >> later, i will write the M1 chip macOS install Leo handbook... > > > Many thanks for your testing. > > There are no calls to time.clock in Leo's core. time.clock was removed in > Python 3.8. > Yea, base this, i guess E.K.R must not miss this, the error must in old version, but in miniconda env. auto installed too old Leo; so change call leo base download packet, everything is right now ;-) > Edward > > -- > 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/CAMF8tS07ZagmiLk_vsKPoTNU1rfQz4%2B51WvEydvjEAusO_ikDg%40mail.gmail.com. -- life is pathetic, go Pythonic. 人生苦短, Python当歌 ;-) 课: https://py.101.camp/ 怼: https://du.101.camp/ 俺: http://zoomquiet.io 许: http://creativecommons.org/licenses/by-sa/2.5/cn/ 怒: 冗余不做,日子甭过!备份不做,十恶不赦. KM keep growing environment culture which promoting organization learning ;-) -- 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/CAAFijRffhZXLj5ksYMx0tKWgRcC406r38W95Odf%2BO%2BnJXtS9WQ%40mail.gmail.com.