I recently installed Anaconda on my Xubuntu 16.04 system. To launch the application from a terminal, I simply use anaconda-navigator
and it works brilliantly.
Now I wanted to create a desktop launcher for the same and add it to my xfce Whisker menu as well. So I created a desktop launcher with the following content.
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific PYthon Development EnviRonment - Python3
Exec=/home/meghana/anaconda3/bin/anaconda-navigator
Categories=Development;Science;IDE;Qt;
Icon=spyder3
Terminal=false
StartupNotify=true
MimeType=text/x-python;
But when I try to open the application from the launcher, I get directed to a local HTML file with the following error message:
Navigator Error
An unexpected error occurred on Navigator start-up
Report
Please report this issue in the anaconda issue tracker
Main Error
byte indices must be integers or slices, not str
Traceback
Traceback (most recent call last):
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/app/start.py", line 115, in start_app
window = run_app(splash)
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/app/start.py", line 58, in run_app
window = MainWindow(splash=splash)
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/widgets/main_window.py", line 160, in __init__
self.api = AnacondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/anaconda_api.py", line 1205, in AnacondaAPI
ANACONDA_API = _AnacondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/anaconda_api.py", line 65, in __init__
self._conda_api = CondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/conda_api.py", line 1622, in CondaAPI
CONDA_API = _CondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/conda_api.py", line 340, in __init__
self.set_conda_prefix()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/conda_api.py", line 489, in set_conda_prefix
self.ROOT_PREFIX = info['root_prefix']
TypeError: byte indices must be integers or slices, not str
I cannot for the life of me figure out why this is happening, or what I should do.
Kindly advise.
NOTE:
Before reporting this question as a duplicate (such as of this one), please note that I am not asking instructions on how to create desktop launchers. I have searched a zillion times through several online forums in order to find a solution, but I have failed.
Icon=spyder3
for me, had to do alocate -i 'anaconda-logo'
and use the result as Icon. – Aristu Sep 11 '17 at 16:43export
statement. @Royi there is a project named ContinuumIO/menuinst on github to make a cross platform menu item installation but it's not mature yet. For now we should wait for a port in some future update. – ResilientBit Mar 19 '18 at 03:32/usr/share/applications/
you can simply runsudo desktop-file-install Anaconda.desktop
on the file. – addohm Nov 08 '18 at 07:01