Re: Installation on MacOS (10.10)

2018-08-07 Thread Edward K. Ream
On Mon, Aug 6, 2018 at 10:50 PM, matelot  wrote:

> thanks for the replies folks. Leo is running now:
>

Excellent.  And thanks to you for not giving up.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Installation on MacOS (10.10)

2018-08-06 Thread matelot
thanks for the replies folks. Leo is running now:

Leo 5.7.3, build 20180525162844, Fri May 25 16:28:44 CDT 2018
Not running from a git repo
Python 3.6.6, PyQt version 5.9.6
darwin
** isPython3: True
** caching enabled



I simply did an "update-all" and these are the output relevant to Leo & its 
dependencies:
I don't see nothing new from the paste in my original paste. Strange.  
Maybe the error was due to maybe my starting leo in the same cmd session 
right after installing all the stuff 

The following packages will be downloaded:

package|build
---|-
qt-5.9.6   |   h74ce4d9_078.6 MB
sip-4.19.8 |   py36h0a44026_0 252 KB
pyqt-5.9.2 |   py36h62a_0 4.7 MB


The following packages will be UPDATED:

pyqt:5.9.2-py36h62a_0  anaconda --> 5.9.2-py36h62a_0
qt:  5.9.6-h74ce4d9_0  anaconda --> 5.9.6-h74ce4d9_0
scikit-learn:0.19.0-np112py36_0 --> 
0.19.1-py36hffbff8c_0
scipy:   0.19.1-np112py36_0 --> 1.1.0-py36hcaad992_0
sip: 4.19.8-py36h0a44026_0 anaconda --> 
4.19.8-py36h0a44026_0
twisted: 17.5.0-py36_0 anaconda --> 17.5.0-py36_0

Proceed ([y]/n)? y


 
Thanks for your help 

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Installation on MacOS (10.10)

2018-08-06 Thread Terry Brown
On Mon, 6 Aug 2018 19:16:58 -0700 (PDT)
matelot  wrote:

> nobody runs Leo on Mac, really ?

People do, I think Brian's one of them.

Brian's suggestion was the first step to answering the question.  You
appear to have PyQt installed, but it fails to import.  So entering

python

and then

from PyQt5 import QtCore

in the same command line environment you're running Leo in would be
very informative.

For example just now I got:

leo-editor:0> python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import QtCore
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named PyQt5

because I only have PyQt5 installed for python3

I notice you list:

pyqt  5.9.2py36h62a_0anaconda
PyQt5 5.11.2

which makes it seem like there might be two versions installed, not
necessarily an issues, but again, `from PyQt5 import QtCore` would be
really interesting.

An aside, when did GCC hit version 7?  Yikes :-}

Cheers -Terry

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Installation on MacOS (10.10)

2018-08-06 Thread matelot
nobody runs Leo on Mac, really ?

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Installation on MacOS (10.10)

2018-08-05 Thread Brian Theado
matelot,

Can you try to run python and manually run some import statements? The leo
code currently suppresses the details of PyQt import errors. Hopefully
manually running the imports will give those suppressed details.

Here's what I mean (using the setup from
https://groups.google.com/forum/#!topic/leo-editor/ghiIN7irzY0 which gives
the same error message you are seeing but almost surely for a different
reason):

$ *python*
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> *from PyQt5 import QtCore*
Traceback (most recent call last):
  File "", line 1, in 
ImportError: [...]/lib/python3.5/site-packages/PyQt5/QtCore.so: undefined
symbol: PySlice_AdjustIndices


If you get an error from the above import (likely different from the error
above), then it might help give a clue. If you don't get an error from that
one, then also try all of the following:

from PyQt5 import QtGui
from PyQt5 import QtWidgets
from PyQt5.QtCore import QUrl

Brian

On Sun, Aug 5, 2018 at 5:56 PM matelot  wrote:

>
> hi *how exactly should one install on MacOS ?*
>
> I followed the guide on the conda section.
> but has error when running leo:
>
> https://paste.ubuntu.com/p/HcVJyCNj7f/
>
> should I follow this part
> 
>  instead
> ?
>
> leoQt.py: can not fully import PyQt5.
> Traceback (most recent call last):
>   File "/Users/matelot/miniconda/envs/py3/bin/leo", line 7, in 
> from leo.core.runLeo import run
>   File 
> "/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/runLeo.py",
>  line 27, in 
> leoGlobals.app = leoApp.LeoApp()
>   File 
> "/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoApp.py",
>  line 324, in __init__
> import leo.core.leoFrame as leoFrame
>   File 
> "/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoFrame.py",
>  line 13, in 
> import leo.core.leoColorizer as leoColorizer
>   File 
> "/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoColorizer.py",
>  line 9, in 
> from leo.core.leoQt import Qsci, QtGui, QtWidgets # isQt5, QtCore
>   File 
> "/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoQt.py",
>  line 76, in 
> qt_version = QtCore.QT_VERSION_STR
> NameError: name 'QtCore' is not defined
>
> | $ conda list
> # packages in environment at /Users/matelot/miniconda/envs/py3:
> #
> # NameVersion   Build  Channel
> alabaster 0.7.11
> appdirs   1.4.3py36h28b3542_0
> appnope   0.1.0py36hf537a9a_0
> asn1crypto0.24.0   py36_0
> astroid   2.0.2 
> attrs 18.1.0   py36_0
> automat   0.7.0py36_0
> Babel 2.6.0 
> backcall  0.1.0py36_0
> backports_abc 0.5  py36_0
> bleach2.1.3py36_0
> ca-certificates   2018.03.070anaconda
> certifi   2018.4.16py36_0anaconda
> cffi  1.11.5   py36h342bebf_0
> chardet   3.0.4py36_1
> constantly15.1.0   py36h28b3542_0
> cryptography  2.2.2py36h1de35cc_0
> dbus  1.13.2   h760590f_1anaconda
> decorator 4.3.0py36_0
> docutils  0.14  
> entrypoints   0.2.3py36_2
> expat 2.2.5hb8e80ba_0anaconda
> gettext   0.19.8.1 h15daf44_3anaconda
> glib  2.56.1   h35bc53a_0anaconda
> html5lib  1.0.1py36_0
> hyperlink 18.0.0   py36_0
> icu   58.2 h4b95b61_1anaconda
> idna  2.7  py36_0
> imagesize 1.0.0 
> incremental   17.5.0   py36_0
> intel-openmp  2018.0.0 h8158457_8
> ipykernel 4.8.2py36_0
> ipython   6.5.0py36_0
> ipython_genutils  0.2.0py36h241746c_0
> ipywidgets7.3.1py36_0
> isort 4.3.4 
> jedi  0.12.1   py36_0
> jinja22.10 py36_0
> jpeg  

Installation on MacOS (10.10)

2018-08-05 Thread matelot

hi *how exactly should one install on MacOS ?*

I followed the guide on the conda section.
but has error when running leo: 

https://paste.ubuntu.com/p/HcVJyCNj7f/

should I follow this part 

 instead 
?

leoQt.py: can not fully import PyQt5.
Traceback (most recent call last):
  File "/Users/matelot/miniconda/envs/py3/bin/leo", line 7, in 
from leo.core.runLeo import run
  File 
"/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/runLeo.py",
 line 27, in 
leoGlobals.app = leoApp.LeoApp()
  File 
"/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoApp.py",
 line 324, in __init__
import leo.core.leoFrame as leoFrame
  File 
"/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoFrame.py",
 line 13, in 
import leo.core.leoColorizer as leoColorizer
  File 
"/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoColorizer.py",
 line 9, in 
from leo.core.leoQt import Qsci, QtGui, QtWidgets # isQt5, QtCore
  File 
"/Users/matelot/miniconda/envs/py3/lib/python3.6/site-packages/leo/core/leoQt.py",
 line 76, in 
qt_version = QtCore.QT_VERSION_STR
NameError: name 'QtCore' is not defined

| $ conda list
# packages in environment at /Users/matelot/miniconda/envs/py3:
#
# NameVersion   Build  Channel
alabaster 0.7.11
appdirs   1.4.3py36h28b3542_0
appnope   0.1.0py36hf537a9a_0
asn1crypto0.24.0   py36_0
astroid   2.0.2 
attrs 18.1.0   py36_0
automat   0.7.0py36_0
Babel 2.6.0 
backcall  0.1.0py36_0
backports_abc 0.5  py36_0
bleach2.1.3py36_0
ca-certificates   2018.03.070anaconda
certifi   2018.4.16py36_0anaconda
cffi  1.11.5   py36h342bebf_0
chardet   3.0.4py36_1
constantly15.1.0   py36h28b3542_0
cryptography  2.2.2py36h1de35cc_0
dbus  1.13.2   h760590f_1anaconda
decorator 4.3.0py36_0
docutils  0.14  
entrypoints   0.2.3py36_2
expat 2.2.5hb8e80ba_0anaconda
gettext   0.19.8.1 h15daf44_3anaconda
glib  2.56.1   h35bc53a_0anaconda
html5lib  1.0.1py36_0
hyperlink 18.0.0   py36_0
icu   58.2 h4b95b61_1anaconda
idna  2.7  py36_0
imagesize 1.0.0 
incremental   17.5.0   py36_0
intel-openmp  2018.0.0 h8158457_8
ipykernel 4.8.2py36_0
ipython   6.5.0py36_0
ipython_genutils  0.2.0py36h241746c_0
ipywidgets7.3.1py36_0
isort 4.3.4 
jedi  0.12.1   py36_0
jinja22.10 py36_0
jpeg  9b   he5867d9_2anaconda
jsonschema2.6.0py36hb385e00_0
jupyter   1.0.0py36_4
jupyter_client5.2.3py36_0
jupyter_console   5.2.0py36_1
jupyter_core  4.4.0py36_0
keyring   13.2.1
lazy-object-proxy 1.3.1 
leo   5.7.3 
libcxx4.0.1h579ed51_0
libcxxabi 4.0.1hebd6815_0
libedit   3.1.20170329 hb402a30_2
libffi3.2.1h475c297_4
libiconv  1.15 hdd342a3_7anaconda
libpng1.6.34   he12f830_0anaconda
libprotobuf   3.5.2h2cd40f5_0
libsodium 1.0.16   h3efe00b_0
markupsafe1.0  py36h1de35cc_1
mccabe0.6.1 
mistune   0.8.3py36h1de35cc_1
mkl   2017.0.4 h1fae6ae_0
mock  2.0.0py36hd48142b_0
nbconvert