The problem is:
I cannot launch applications like Spyder, Glueviz, Jupyter Notebook and JupyterLab from Anaconda.
I however can launch VS code but I suspect this is because I already had it previously installed.
However typing "jupyter notebook" or "jupyter lab" on the windows command prompt would launch it well, but this is not using Anaconda. I think this is because I have previously installed jupyter using pip.
First time I installed Anaconda, I checked the add to path option and a while later I had to uninstall it because I couldn't run python applications outside of anaconda. I checked my environment path variables and there are no references to Anaconda in it. So I guess this solution is out of the way.
This time when installing Anaconda, I made sure not to check the add to path option.
Sometimes, I would think this is an installation error, let's uninstall it then reinstall it, but that didn't work. I am using a freshly installed version of Anaconda now and the problem is persisting.
Here is an error that displays when I try to launch Spyder
Traceback (most recent call last):
File "C:\Users\saife\anaconda3\Scripts\spyder-script.py", line 6, in
from spyder.app.start import main
File "C:\Users\saife\anaconda3\lib\site-packages\spyder\app\start.py", line 22, in
import zmq
File "C:\Users\saife\AppData\Roaming\Python\Python37\site-packages\zmq\__init__.py", line 47, in
from zmq import backend
File "C:\Users\saife\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 40, in
reraise(*exc_info)
File "C:\Users\saife\AppData\Roaming\Python\Python37\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\saife\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 27, in
_ns = select_backend(first)
File "C:\Users\saife\AppData\Roaming\Python\Python37\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\saife\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py", line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from 'zmq.backend.cython' (C:\Users\saife\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py)
Try this instead of pip, conda install -c anaconda "IDE you want"
Related
I ran jupyter notebook and I'm getting the following error. Please help!
I checked the conda version, it's working fine. I added paths in the environment variables. I don't know why it isn't working. Previously it worked fine I recently uninstalled it and installed it again.
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\Admin\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 51, in <module>
from zmq.eventloop import ioloop
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
getting this error,
please help!
There can be an issue with the 64bit version of Anaconda, Try these steps:
Install Anaconda 32 Bit for windows.
Add \Anaconda3 and \Anaconda3\Script to Path in Environment variables.
Open Anaconda Prompt and Create an Environment and activate it.
Once you activate the Environment, you will into it. Then write the command JUPYTER
NOTEBOOK, it should run on your Browser.
If that dose not work you can go back and install a bit older version of Anaconda and try doing the same.
Here for more help (:
I am trying to work with my Jupyter notebook. I have done so for the last 6 six years or so. Now I am getting the following error message:
Python Anaconda ImportError No module named menuinst.knownfolders
I checked several posts on the internet but nothing has helped: “conda install menuinst”. see here:
Python Anaconda ImportError No module named menuinst.knownfolders
I now have uninstalled and re-installed it three times but did not solve the issue.
When I go to my anaconda prompt and type in “jupyter notebook”, these are the error message I am getting:
C:\Users\User\anaconda3\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
_cffi_ext.c
AppData\Roaming\Python\Python38\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(268): fatal error C1083:
Cannot open include file: 'zmq.h': No such file or directory
Traceback (most recent call last):
File "C:\Users\User\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\User\anaconda3\lib\site-packages\notebook\notebookapp.py", line 49, in <module>
from zmq.eventloop import ioloop
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\backend\cython\__init__.py)
Just another piece of information, my anaconda prompt starts with (base) before it says C:\user\user>. Is that relevant or this issue?
You should try
conda remove zeromq
conda install zeromq
Solution-1
Please try to reinstall jupyter notebook from anaconda navigator it will definitely work
Solution-2
Please update jupyter notebook from anaconda prompt with below commands.
pip install notebook --upgrade
conda update notebook
I face the same issue..
1)Open anaconda prompt and type
conda list
2)Check terminado and
terminado 0.8.3
zeromq 4.3.2
3)In same anaconda prompt and check if python is working, type below code
python
if yes then
quit()
5)if no update python accordingly.
6)Type,
anaconda-navigator
This will open navigator and try to install jupyter notebook.
While setting up my new system, I am trying to run my notebook file on VS Code but as soon as I open VS Code it give me this error
Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command
in the output:
Unable to determine version of Jupyter, Traceback (most recent call last):
File "C:\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 46, in <module>
from zmq.eventloop import ioloop
File "C:\Anaconda3\lib\site-packages\zmq\__init__.py", line 47, in <module>
from zmq import backend
File "C:\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Anaconda3\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed: The specified module could not be found.
I have installed all the plugins which were necessary, ran various commands, I also updated the notebook.
conda install notebook
I am using:
anaconda 3
vs code 1.26.1
windows 10
I cant start new notebooks or use an existing one either.
Please help, and let me know if any more information is required.
Check the required extensions installed in vscode.
install jupyter and ipython packages in your python venv using pip:
pip install jupyter
pip install ipython
If its still not working try to change the python kernal in the top right corner of ipynb notebook.
This is due to running jupyter without first activating the environment for Python 3.7. This was fixed in the 2018.12.0 release of the extension.
When it fails with this response you can uninstall conda and jupyter and install python from VS Code and then update. Don't necessarily install conda and jupyter.
I'm doing work in a conda environment. Today when I entered the environment, IPython failed to run, with the following error:
Traceback (most recent call last):
File "/home/d04/jayat/miniconda3/envs/umiopy/bin/ipython", line 4, in <module>
import IPython
File "/home/d04/jayat/miniconda3/envs/umiopy/lib/python2.7/site-packages/IPython/__init__.py", line 48, in <module>
from .core.application import Application
File "/home/d04/jayat/miniconda3/envs/umiopy/lib/python2.7/site-packages/IPython/core/application.py", line 25, in <module>
from IPython.core import release, crashhandler
File "/home/d04/jayat/miniconda3/envs/umiopy/lib/python2.7/site-packages/IPython/core/crashhandler.py", line 28, in <module>
from IPython.core import ultratb
File "/home/d04/jayat/miniconda3/envs/umiopy/lib/python2.7/site-packages/IPython/core/ultratb.py", line 127, in <module>
from IPython.utils.data import uniq_stable
ImportError: cannot import name uniq_stable
IPython is up to date:
ipython 5.3.0 py27_0
It seems to be searching in the right place:
$ which ipython
~/miniconda3/envs/umiopy/bin/ipython
I'm using conda 4.3.14.
I've not changed anything in the environment but it's possible something has been updated by the system administrators (though it's hard to understand how that could affect my environment). What could be causing this problem? For similar errors on StackOverflow it seems like I'll need to update some module through conda.
If anyone ever experiences this issue, after some period of time, reinstalling iPython resulted in it working. I have no idea what broke it in the first place, and why reinstalling didn't help previously. Some sort of conda-related problem I suppose.
It's this simple:
conda remove ipython
conda install ipython
I've recently just installed Anaconda 3 (for Python 3.4) on a fresh Ubuntu 14.04 installation.
When I go to launch the spyder IDE, I receive following error message:
No module named 'version'
Traceback (most recent call last):
File "/home/daniel/anaconda3/bin/spyder", line 3, in <module>
start_app.main()
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/start_app.py", line 91, in main
from spyderlib import spyder
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/spyder.py", line 158, in <module>
from spyderlib.utils.environ import WinUserEnvDialog
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/utils/environ.py", line 17, in <module>
from spyderlib.widgets.dicteditor import DictEditor
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/widgets/dicteditor.py", line 28, in <module>
from spyderlib.utils.qthelpers import mimedata2url
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/utils/qthelpers.py", line 24, in <module>
from spyderlib.guiconfig import get_shortcut
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/guiconfig.py", line 24, in <module>
from spyderlib.widgets.sourcecode import syntaxhighlighters as sh
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/widgets/sourcecode/syntaxhighlighters.py", line 32, in <module>
required_version=PYGMENTS_REQVER)
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/dependencies.py", line 70, in add
installed_version)]
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/dependencies.py", line 32, in __init__
self.installed_version = programs.get_module_version(modname)
File "/home/daniel/anaconda3/lib/python3.4/site-packages/spyderlib/utils/programs.py", line 218, in get_module_version
mod = __import__(module_name)
File "/home/daniel/qiime_software/sphinx-1.0.4-release/lib/python2.7/site-packages/Pygments-1.6-py2.7.egg/pygments/init.py", line 46
except TypeError, err:
^
SyntaxError: invalid syntax
I installed Conda 3.7 by downloading the .sh file through http://continuum.io/downloads#py34 and then installing it through the terminal with "bash Anaconda3-2.1.0-Linux-x86_64.sh"
What could be the issue?
I may have spotted the issue but still need some help:
When I first made this Ubuntu installation, I put QIIME on here (which is a suite of programs that have been made to work in their own environment for bioinformatics).
I see that in the list of file calls, everything is coming from .../anaconda3/... until the very last line, something is mistakenly (?) called from .../qiime_software/...
I'm assuming this is from both software suites containing python in their PATHs... how may this be fixed? Granted when I check "which python" in the terminal, it (correctly) outputs:
/home/daniel/anaconda3/bin/python
I almost thought a prior question asked here: Anaconda Spyder Qt library error on launch would lead me on the right path but I hit a deadend.
Update:
echo $PYTHONPATH spits out:
/home/daniel/qiime_software/qiime-galaxy-0.0.1-repository-c2814c3c/lib/:/home/daniel/qiime_software/qiime-1.8.0-release/lib/python2.7/site-packages:/home/daniel/qiime_software/qiime-1.8.0-release/lib/:/home/daniel/qiime_software/matplotlib-1.3.1-release/lib/python2.7/site-packages:/home/daniel/qiime_software/pprospector-1.0.1-release/lib/python2.7/site-packages:/home/daniel/qiime_software/tax2tree-1.0-release/lib/python2.7/site-packages:/home/daniel/qiime_software/pynast-1.2.2-release/lib/python2.7/site-packages:/home/daniel/qiime_software/emperor-0.9.3-release/lib/python2.7/site-packages:/home/daniel/qiime_software/pycogent-1.5.3-release/lib/python2.7/site-packages:/home/daniel/qiime_software/biom-format-1.3.1-release/lib/python2.7/site-packages:/home/daniel/qiime_software/ipython-latest-repository-184467d4/lib/python2.7/site-packages:/home/daniel/qiime_software/sphinx-1.0.4-release/lib/python2.7/site-packages:/home/daniel/qiime_software/pyqi-0.3.1-release/lib/python2.7/site-packages:/home/daniel/qiime_software/MySQL-python-1.2.3-release/lib/python2.7/site-packages:/home/daniel/qiime_software/mpi4py-1.2.2-release/lib/python2.7/site-packages:/home/daniel/qiime_software/setuptools-0.6c11-release/lib/python2.7/site-packages:/home/daniel/qiime_software/gdata-2.0.17-release/lib/python2.7/site-packages:/home/daniel/qiime_software/pysqlite-2.6.3-release/lib/python2.7/site-packages:/home/daniel/qiime_software/qcli-0.1.0-release/lib/python2.7/site-packages:/home/daniel/qiime_software/tornado-3.1.1-release/lib/python2.7/site-packages:/home/daniel/qiime_software/SQLAlchemy-0.7.1-release/lib/python2.7/site-packages:/home/daniel/qiime_software/pyzmq-2.1.11-release/lib/python2.7/site-packages:/home/daniel/qiime_software/numpy-1.7.1-release/lib/python2.7/site-packages:
Any help is appreciated.
Python looks up modules in the environment variable PYTHONPATH, so try echo $PYTHONPATH on the shell. Normally, this should be empty.
Otherwise you can try to run spyder from a dedicated environment, so try something like:
$ conda create -n spydertest spyder
$ source activate spydertest
$ spyder