just today, i can not running Leo5.0-final through old scrip:

$ python /opt/bin/leo/launchLeo.py
leoQt.py: can not import either PyQt4 or PyQt5.
Traceback (most recent call last):
  File "/opt/bin/leo/launchLeo.py", line 7, in <module>
    import leo.core.runLeo
  File "/opt/bin/Leo5.0-final/leo/core/runLeo.py", line 28, in <module>
    leoGlobals.app = leoApp.LeoApp()
  File "/opt/bin/Leo5.0-final/leo/core/leoApp.py", line 144, in __init__
    import leo.core.leoFrame as leoFrame
  File "/opt/bin/Leo5.0-final/leo/core/leoFrame.py", line 15, in <module>
    import leo.core.leoColorizer as leoColorizer
  File "/opt/bin/Leo5.0-final/leo/core/leoColorizer.py", line 17, in <module>
    from leo.core.leoQt import isQt5,Qsci,QtCore,QtGui,QtWidgets
  File "/opt/bin/Leo5.0-final/leo/core/leoQt.py", line 24, in <module>
    from PyQt4 import Qt
ImportError: cannot import name Qt

and try:

$ pip install PyQt4
Collecting PyQt4
  Could not find any downloads that satisfy the requirement PyQt4
  No distributions at all found for PyQt4


My env:

- OS X Yosemite 10.10.2 (14C109)
    Darwin Kernel Version 14.1.0
- brew upgraded:
    Python 2.7.9 (default, Feb 10 2015, 03:28:08)
    [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
- $ brew info pyqt
pyqt: stable 4.11.3 (bottled)
http://www.riverbankcomputing.co.uk/software/pyqt
/usr/local/Cellar/pyqt/4.11.1 (63 files, 16M)
  Poured from bottle
/usr/local/Cellar/pyqt/4.11.3 (560 files, 19M)
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/pyqt.rb
==> Dependencies
Required: qt ✔, sip ✔
==> Options
--with-python3
    Build with python3 support
--without-python
    Build without python 2 support
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'getusersitepackages'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'getusersitepackages'
==> Caveats
Phonon support is broken.

Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p
  echo 'import site;
site.addsitedir("/usr/local/lib/python2.7/site-packages")' >>
homebrew.pth


and now
- i not understand how to fixed brew installed pyqt
- how to usage the "homebrew.pth" ?




On Wed, Jan 28, 2015 at 6:59 AM, Todd Mars <[email protected]> wrote:
> Trying to install on a new windows system.
> I installed Python34 which goes into C:\Python34
> I installed DocUtils
> PyQt GPL v5.4 for Python v3.4 (x64) Setup reports an error and if I install
> it anyway Leo has an error.
> "This copy of PyQt has been built against Python v3.4 (x64) which doesn't
> seem to be installed.  Do you wish to continue with the installation?
>
> So I say yes anyway.  (I have a C:\Python34 folder)
>
> Installing the new Leo, it now goes into C:\Program Files
> (x86)\Leo-5.0-final
>
> But it does not run.
> Python lauchLeo.py
> outputs:
> can not import either PyQt4 or PyQt5
> ImportError: No module named 'PyQt5'
> During handling of the above exception, another exception occurred:
> ...etc.
> any idea what I should do?
> Thanks!
> Todd.


-- 
Life's Pathetic, Let's Pythonic! 人生苦短, Python是岸!
俺: http://zoomquiet.io
授: http://creativecommons.org/licenses/by-sa/2.5/cn/
怒: 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization be learnning!

-- 
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to