Error when running Anaconda navigator - linux

I get this error when running anaconda-navigator on Linux Mint 18.1:
QApplication: invalid style override passed, ignoring it.
2018-03-20 19:54:36,039 - ERROR anaconda_api.is_vscode_available:871
''
Traceback (most recent call last):
File "/home/daniel/anaconda3/lib/python3.5/site-packages/anaconda_navigator/
api/anaconda_api.py", line 368, in _conda_info_processed
processed_info = self._process_conda_info(info)
File "/home/daniel/anaconda3/lib/python3.5/site-packages/anaconda_navigator/
api/anaconda_api.py", line 479, in _process_conda_info
processed_info = info.copy()
AttributeError: 'bytes' object has no attribute 'copy'
...
I updated using:
conda update conda
conda update anaconda-navigator
conda update navigator-updater
The versions are:
conda 4.5.0
anaconda Command line client (version 1.6.14)

I have no idea how or why this works, but if you delete the .condarc file in your user folder, it starts to work fine. At least for me and some users here:
https://github.com/ContinuumIO/anaconda-issues/issues/11734#issuecomment-638591004
Putting this here in case anyone else runs into the same problem.

For me, It was only the fact that I modified too much my file .condarc.
I restored back and solved my issue

Related

I tried pip installing spyder terminal in windows and now spyder 4.1.3 won't open

I have used matlab, but I am only 2 weeks into Python. I downloaded anaconda 3.7 and am using spyder 4.1.3. I was following a youtube tutorial on python. I was doing well until the guy access the cmd prompt (I use Windows 10) from within his IDE.
I didn't know how to so I googled it and to do so I found on pypi.org that all I had to do was run pip install spyder-terminal in the cmd prompt. I tried this but at the end it said that I had a permissions error and to try the --user option. I copied and pasted the exact error and saw on git hub, to create an environment or run python -m pip install --user [INSERT PACKAGE NAME].
I don't really understand hat an environment is so I did the second --user way. I ran python -m pip install --user spyder terminal I got an error about a location not being in the path variable, so i just copied the file location that it referenced and copied it the the path. I then went to open up spyder 4.1.3 and i got the error
Traceback (most recent call last):
File "C:\Users\Aaron\anaconda3\lib\site-packages\qtpy\__init__.py", line 204, in
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Aaron\anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\Aaron\anaconda3\lib\site-packages\spyder\app\start.py", line 201, in main
from spyder.app import mainwindow
File "C:\Users\Aaron\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 53, in
requirements.check_qt()
File "C:\Users\Aaron\anaconda3\lib\site-packages\spyder\requirements.py", line 41, in check_qt
import qtpy
File "C:\Users\Aaron\anaconda3\lib\site-packages\qtpy\__init__.py", line 210, in
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found"
I tried opening it again and got the same error. I then tried uninstalling an dre-installing spyder in the anaconda navigator and got the same error. I tried removing the location I added to path and running "pip uninstall spyder-terminal", it said it was removed and I go the same error.
If possible, I am seeking specific steps in layman's terms, because all my knowledge thus far has come from the first 2 hours of a "cool things in python" type video.

Anaconda Navigator 1.9.7 - Environments - Update Index Error - Ubuntu 16.04 LTS

I recently updated Anaconda to the most recent release (Anaconda3-2019.03-Linux-x86_64) within Ubuntu 16.04 LTS. Unfortunately, when I attempt to "Update Index" in the Environments tab, it hangs and never completes. So, I am not able to make any package updates through A-N. I did not have this problem with the previous version. I reviewed the terminal window and found the following error immediately after trying to run "Update Index":
Traceback (most recent call last):
File "/home/heisenberg/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/anaconda_api.py", line 674, in _model_data_ready
data = output[:]
TypeError: 'NoneType' object is not subscriptable
Any idea why this is happening?
I tried to completely removed anaconda and reinstalled to no effect. However, reverting back to the previous version I was then able to Update Index as expected (just in the old version...)
Receives this error in the terminal window:
Traceback (most recent call last):
File "/home/heisenberg/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/anaconda_api.py", line 674, in _model_data_ready
data = output[:]
TypeError: 'NoneType' object is not subscriptable

Unable to launch anaconda navigator in windows after tensor flow installation

I tried to install tensor flow library in anaconda and after that I am unable to launch anaconda navigator. I am using windows machine and anaconda was working fine before. Error is as below:
An unexpected error occurred on Navigator start-up
Psutil.AccessDenied(pid=9636)
Traceback (most recent call last):
File "C:\Users\india\AppData\Local\Continuum\Anaconda3\lib\site-packages\psutil\_pswindows.py", line 620, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\india\AppData\Local\Continuum\Anaconda3\lib\site-packages\psutil\_pswindows.py", line 690, in cmdline
ret = cext.proc_cmdline(self.pid)
PermissionError: [WinError 5] Access is denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\india\AppData\Local\Continuum\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\india\AppData\Local\Continuum\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 108, in start_app
if misc.load_pid() is None: # A stale lock might be around
File "C:\Users\india\AppData\Local\Continuum\Anaconda3\lib\site-packages\anaconda_navigator\utils\misc.py", line 384, in load_pid
cmds = process.cmdline()
File "C:\Users\india\AppData\Local\Continuum\Anaconda3\lib\site-packages\psutil\__init__.py", line 701, in cmdline
return self._proc.cmdline()
File "C:\Users\india\AppData\Local\Continuum\Anaconda3\lib\site-packages\psutil\_pswindows.py", line 623, in wrapper
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=9636)
I have uninstalled and then installed anaconda, still facing same issue.
I could fix it by simply resetting the navigator via Command Prompt:
C:\Anaconda3\anaconda-navigator --reset
I use the anaconda in win10 x64 (python3.x) and I got this problem this morning as well. All the things had been done in anaconda was that I installed a package called pywinauto, then I turned off the computer and went home.
I follow the suggestion from https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/4hBTDOcDzgo by lan, I update the anaconda by using the command.
conda update anaconda-navigator
However, the error occurred the same.
Then I reboot the computer and restart the anaconda, magic thing happens! the anaconda works fine!
I think maybe some configuration has been changed when I install the new package, and this change is conflicted with the current configuration which you need to reboot the computer to take effect. you should note that turn off computer then restart it is not equal to reboot it.
So, just reboot the computer and it will be fine.
I solved this issue by running in the anaconda prompt :
anaconda-navigator --reset

Standard Enthought Canopy Install on Linux Not Working

I am trying to install 32 bit Enthought Canopy on 64 bit Linux, Ubuntu 14.10 specifically. I followed the installation instructions here: http://docs.enthought.com/canopy/quick-start/install_linux.html
After downloading the file, I ran the command (without sudo):
bash canopy-1.4.1-rh5-32.sh
After accepting the license terms, I accepted the default install location but got the following error message:
[/home/userX/Canopy32] >>>
Installing to /home/userX/Canopy32 ... please wait
The databases in [/usr/share/ubuntu/applications, /usr/share/gnome/applications, /usr/local/share/applications, /usr/share/applications] could not be updated.
done.
I did not know what to make of the error and proceeded to cd back to the home directory from the directory where I had saved the downloaded install file. Per Enthought's instructions, I ran the command:
Canopy32/canopy
Note that Enthought's instructions call for Canopy/canopy to be used. I am either in the wrong place or there is only a 'Canopy32' folder, not a 'Canopy' folder.
After running the 'Canopy32/canopy' command, I got the following error message:
userX#userX-laptop:~$ Canopy32/canopy
No handlers could be found for logger "canopy.app.bootstrap"
Traceback (most recent call last):
File "/home/userX/Canopy32/appdata/canopy-1.4.1.1975.rh5-x86/__boot__.py", line 9, in <module>
sys.exit(main())
File "build/bdist.linux-x86_64/egg/canopy/app/bootstrap.py", line 2220, in main
File "build/bdist.linux-x86_64/egg/canopy/app/bootstrap.py", line 2186, in send_bug_report
AttributeError: 'NoneType' object has no attribute 'run_factory_reset'
When I use the Unity Dash to search for Canopy, the Canopy icon with the blue rainbow above it appears but when I click it, nothing happens. What am I doing wrong?

ipython notebook inline matplotlib not working after upgrade to 2.0

I recently upgraded ipython to 2.0.0 and can't get inline plots to work. If I try
%pylab inline
plot([1,2],[1,2])
I get the following output:
Populating the interactive namespace from numpy and matplotlib
[<matplotlib.lines.Line2D at 0x10ffcf080>]
/usr/local/lib/python3.4/site-packages/IPython/core/formatters.py:239: FormatterWarning: Exception in image/png formatter: _image_module::readpng: png_create_read_struct failed
FormatterWarning,
<matplotlib.figure.Figure at 0x10e77ca58>
And in the console, I have the following error:
ERROR:tornado.application:Uncaught exception in /api/kernels/0a214dee-3143-4d34-89cb-9d65ce154fe6/shell
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/tornado/websocket.py", line 322, in wrapper
return callback(*args, **kwargs)
File "/usr/local/lib/python3.4/site-packages/IPython/html/services/kernels/handlers.py", line 122, in on_message
self.session.send(self.zmq_stream, msg)
File "/usr/local/lib/python3.4/site-packages/IPython/kernel/zmq/session.py", line 646, in send
stream.send_multipart(to_send, copy=copy)
AttributeError: 'NoneType' object has no attribute 'send_multipart'
Any idea what's going on here?
Edit: I'm on python 3.4.0, ipython 2.0.0, and matplotlib 1.3.1
As tcaswell mentioned, the easiest way of dealing with issues with dependencies of individual python modules is to test them in a virtual environment- effectively giving you a clean install. If nothing else, this helps the debugging process.
Make a virtual environment called myenv by running this in your
terminal: $ virtualenv myenv
Activate the environment by running from terminal: $ source
myenv/bin/activate.
Install ipython (the name of your virtualenvironment is now in
parentheses at your prompt: (myenv)$ pip install ipython notebook
Once you're done with the virtual environment, run $ deactivate or
close your terminal session.
There are a variety of good guides for virtual environments; I'd recommend starting here. If installing within a virtual environment doesn't fix things, there might be a bigger issue. Once you're done using the virtual environment, you can simply delete the folder created with its name (in this case myenv).
And finally, I'd recommend using %matplotlib inline over %pylab inline as discussed in this question.

Resources