Conda environment problems

23 views
Skip to first unread message

Edward K. Ream

unread,
Mar 26, 2020, 7:18:38 AM3/26/20
to leo-editor
I'm starting a new thread for this. The problems have nothing to do with holoviews.

I created two new conda environments, py26 and py28:

conda create -n py36 python=3.6
conda create
-n py38 python=3.8

In each of these envs, when I tried to start Leo I got:

leoQt.py: can not fully import PyQt5.
Traceback (most recent call last):

 
File "c:\leo.repo\leo-editor\leo\core\leoQt.py", line 52, in <module>
   
from PyQt5 import QtCore

ImportError: Module use of python37.dll conflicts with this version of Python.

Traceback (most recent call last):
 
File "c:\leo.repo\leo-editor\launchLeo.py", line 7, in <module>
   
import leo.core.runLeo
 
File "c:\leo.repo\leo-editor\leo\core\runLeo.py", line 25, in <module>
    g
.app = leoApp.LeoApp()
 
File "c:\leo.repo\leo-editor\leo\core\leoApp.py", line 338, in __init__
   
import leo.core.leoFrame as leoFrame
 
File "c:\leo.repo\leo-editor\leo\core\leoFrame.py", line 13, in <module>
   
import leo.core.leoColorizer as leoColorizer
 
File "c:\leo.repo\leo-editor\leo\core\leoColorizer.py", line 18, in <module>
   
from leo.core.leoQt import Qsci, QtGui, QtWidgets
 
File "c:\leo.repo\leo-editor\leo\core\leoQt.py", line 82, in <module>
    qt_version
= QtCore.QT_VERSION_STR
NameError: name 'QtCore' is not defined

I think this can be called good news :-) Note that my base env uses Python 3.7.6.

It seems strange that conda isn't upgrading qt! Somehow I must upgrade qt in the each env so that qt uses a compatible dll.

Any comments or suggestions?

Edward
Reply all
Reply to author
Forward
0 new messages