ContinuumIO / anaconda-issues

Anaconda issue tracking
647 stars 220 forks source link

anaconda navigator problems #1234

Closed nklever closed 7 years ago

nklever commented 7 years ago

executing anaconda-navigator in a normal terminal, it runs fine, but running it from a user-defined command terminal profile it brings the following error:

File "~/anaconda3/lib/python3.5/site-packages/anaconda_navigator/api/conda_api.py", line 374, in set_root_prefix self.ROOT_PREFIX = info['root_prefix'] TypeError: byte indices must be integers or slices, not str

The same problem arrives, if you set up anaconda-navigator into the ubuntu starter dashboard

goanpeca commented 7 years ago

@nklever could you open a terminal and type

$ conda info and paste the result here and then

$ conda list and paste the result here again.

Cheers

goanpeca commented 7 years ago

It seems that a a user-defined command terminal profile does not include conda on the PATH which is a requirement for conda and Navigator to work properly.

nklever commented 7 years ago

You might be right - but this implies that anaconda navigator is not usable via the ubunta starter dashboard. The dashboard is built upon the Freedesktop Spec. Might be that a solution would be to start anaconda navigator using a shell script to extend the environment path and therefore wrapping the python script.

goanpeca commented 7 years ago

There is a new release available for Anaconda. You can download it from https://www.continuum.io/downloads

This release includes Anaconda Navigator 1.4.3 which includes several fixes and improvements.

You can update it by typing in the command prompt $ conda install anaconda-navigator

goanpeca commented 7 years ago

This should be fixed by the latest version, please reopen if this is not the case.

AnthonyWC commented 7 years ago

I ran into this issue on ubuntu; launches fine in terminal but not from unity launcher: anaconda-navigator 1.6.2 py36_0

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/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/exceptions.py", line 75, in exception_handler
    return_value = func(*args, **kwargs)
  File "/home/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/app/start.py", line 115, in start_app
    window = run_app(splash)
  File "/home/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/app/start.py", line 58, in run_app
    window = MainWindow(splash=splash)
  File "/home/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/widgets/main_window.py", line 160, in __init__
    self.api = AnacondaAPI()
  File "/home/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/api/anaconda_api.py", line 1205, in AnacondaAPI
    ANACONDA_API = _AnacondaAPI()
  File "/home/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/api/anaconda_api.py", line 65, in __init__
    self._conda_api = CondaAPI()
  File "/home/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/api/conda_api.py", line 1622, in CondaAPI
    CONDA_API = _CondaAPI()
  File "/home/antho/anaconda3/lib/python3.6/site-packages/anaconda_navigator/api/conda_api.py", line 340, in __init__
    self.set_conda_prefix()
  File "/home/antho/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