Zoom.Quiet <zoom.qu...@gmail.com> 于2022年5月7日周六 08:42写道:
>
> Edward K. Ream <edream...@gmail.com> 于2022年5月6日周五 22:14写道:
> >
> > On Fri, May 6, 2022 at 7:51 AM tbp1...@gmail.com <tbp100...@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
beautifulsoup4                4.11.1
bs4                           0.0.1
certifi                       2020.6.20
charset-normalizer            2.0.12
commonmark                    0.9.1
dialite                       0.5.3
dill                          0.3.5.1
docutils                      0.17.1
fastjsonschema                2.15.3
flexx                         0.8.4
future                        0.18.2
idna                          3.3
imagesize                     1.3.0
importlib-metadata            4.11.4
importlib-resources           5.7.1
isort                         5.10.1
Jinja2                        3.1.2
jsonschema                    4.5.1
jupyter-core                  4.10.0
lazy-object-proxy             1.7.1
leo                           5.9
MarkupSafe                    2.1.1
mccabe                        0.7.0
nbformat                      5.4.0
packaging                     21.3
pip                           21.2.4
pip-search                    0.0.12
platformdirs                  2.5.2
pscript                       0.7.7
pyflakes                      2.4.0
Pygments                      2.12.0
pylint                        2.13.9
pyparsing                     3.0.9
PyQt3D                        5.15.5
PyQt5                         5.15.6
PyQt5-sip                     12.9.0
PyQtChart                     5.15.5
PyQtDataVisualization         5.15.5
PyQtNetworkAuth               5.15.5
PyQtPurchasing                5.15.5
pyrsistent                    0.18.1
pytz                          2022.1
requests                      2.27.1
rich                          12.4.4
setuptools                    61.2.0
six                           1.16.0
snowballstemmer               2.2.0
soupsieve                     2.3.2.post1
Sphinx                        4.5.0
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        2.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
webruntime                    0.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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    from leo.core.leoQt import Qsci, QtGui, QtWidgets
  File 
"/opt/homebrew/Caskroom/miniconda/base/envs/leo3811/lib/python3.8/site-packages/leo/core/leoQt.py",
line 88, in <module>
    qt_version = QtCore.QT_VERSION_STR
NameError: name 'QtCore' is not defined

what i miss?


> > Edward


-- 
----------------
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/CAAFijRc3T4sh3WBVCEeoSs2ypKF1H35WEab4s_m9m6Tb0O28aA%40mail.gmail.com.

Reply via email to