Hi,
As you can see from your traceback, you’re mixing packages from two
Python installations: the ones in your system
|/usr/lib/python3/dist-packages/spyderlib |
and the ones in Anaconda
|/home/derek/miniconda3/envs/coastops/lib/python3.6 |
I don’t know how you came up with, but you need to find how to fix it.
The most probable cause is that you’re calling |spyder3|, which is not
the name of Spyder executable in Anaconda (it’s simple |spyder|).
Cheers,
Carlos
El 28/08/18 a las 03:33, Derek Hohls escribió:
This post:
https://groups.google.com/forum/#!topic/spyderlib/NWGlu7r7xxo
suggests you can launch Spyder with a conda virtual environment activated:
spyder3 activate myenv
However, when I try this it throws an error with one of the Python
libraries:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line
2331, in main
mainwindow = run_spyder(app, options, args)
File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line
2215, in run_spyder
main.setup()
File "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 730,
in setup
from spyderlib.plugins.console import Console
File "/usr/lib/python3/dist-packages/spyderlib/plugins/console.py",
line 31, in <module>
from spyderlib.widgets.internalshell import InternalShell
File
"/usr/lib/python3/dist-packages/spyderlib/widgets/internalshell.py",
line 40, in <module>
from spyderlib.widgets.shell import PythonShellWidget
File "/usr/lib/python3/dist-packages/spyderlib/widgets/shell.py",
line 35, in <module>
from spyderlib.widgets.sourcecode.base import ConsoleBaseWidget
File
"/usr/lib/python3/dist-packages/spyderlib/widgets/sourcecode/base.py",
line 29, in <module>
from spyderlib.widgets.mixins import BaseEditMixin
File "/usr/lib/python3/dist-packages/spyderlib/widgets/mixins.py",
line 18, in <module>
from xml.sax.saxutils import escape
File
"/home/derek/miniconda3/envs/coastops/lib/python3.6/xml/sax/saxutils.py",
line 6, in <module>
import os, urllib.parse, urllib.request
File
"/home/derek/miniconda3/envs/coastops/lib/python3.6/urllib/request.py",
line 88, in <module>
import http.client
File
"/home/derek/miniconda3/envs/coastops/lib/python3.6/http/client.py",
line 1063
chunk = f'{len(chunk):X}\r\n'.encode('ascii') + chunk \
(My actual project runs just fine, so there is no inherent problem
with these libraries.)
--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"spyder" 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 https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.