Skip to content

Commit

Permalink
Merge branch 'master' into ray_activation_fixes_4
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan authored Mar 26, 2019
2 parents 0646154 + 0fb7eed commit c4354d4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions conda/core/envs_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: BSD-3-Clause
from __future__ import absolute_import, division, print_function, unicode_literals

from errno import EACCES
from errno import EACCES, EROFS
from logging import getLogger
from os import devnull, listdir
from os.path import dirname, isdir, isfile, join, normpath
Expand Down Expand Up @@ -40,7 +40,7 @@ def register_env(location):
fh.write(ensure_text_type(location))
fh.write('\n')
except EnvironmentError as e:
if e.errno == EACCES:
if e.errno in (EACCES, EROFS):
log.warn("Unable to register environment. Path not writable.\n"
" environment location: %s\n"
" registry file: %s", location, user_environments_txt_file)
Expand Down
13 changes: 11 additions & 2 deletions conda/core/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def make_initialize_plan(conda_prefix, shells, for_user, for_system, anaconda_pr

if 'fish' in shells:
if for_user:
config_fish_path = expand(join('~', '.config', 'config.fish'))
config_fish_path = expand(join('~', '.config', 'fish', 'config.fish'))
plan.append({
'function': init_fish_user.__name__,
'kwargs': {
Expand All @@ -467,8 +467,17 @@ def make_initialize_plan(conda_prefix, shells, for_user, for_system, anaconda_pr
'reverse': reverse,
},
})

if for_system:
raise NotImplementedError()
config_fish_path = expand(join('~', '.config', 'fish', 'config.fish'))
plan.append({
'function': init_fish_user.__name__,
'kwargs': {
'target_path': config_fish_path,
'conda_prefix': conda_prefix,
'reverse': reverse,
},
})

if 'tcsh' in shells and for_user:
tcshrc_path = expand(join('~', '.tcshrc'))
Expand Down
8 changes: 4 additions & 4 deletions docs/source/user-guide/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ is almost always caused by one of two things:

1. The environment with numpy has not been activated.
2. Another software vendor has installed MKL or Intel OpenMP (libiomp5md.dll)
files into the C:\Windows\System32 folder. These files are being loaded
files into the C:\\Windows\\System32 folder. These files are being loaded
before Anaconda's and they're not compatible.

Solution
Expand All @@ -35,7 +35,7 @@ If you are not activating your environments, start with doing that. There's more
info at :ref:`Activating environments <activate-env>`. If you are still stuck, you need to consider
more drastic measures.

1. Remove any MKL-related files from C:\Windows\System32. We recommend
1. Remove any MKL-related files from C:\\Windows\\System32. We recommend
renaming them to add .bak to the filename to effectively hide them. Observe
if any other software breaks. Try moving the DLL files alongside the .exe of
the software that broke. If it works again, you can keep things in the
Expand Down Expand Up @@ -81,7 +81,7 @@ more drastic measures.
set CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1


List of known bad software that installs Intel libraries to C:\Windows\System32:
List of known bad software that installs Intel libraries to C:\\Windows\\System32:

* Amplitube, by IK Multimedia
* ASIO4ALL, by Michael Tippach
Expand Down Expand Up @@ -117,7 +117,7 @@ versions of conda and more recent builds of Python are more strict about
requiring activation of environments. We're working on better error messages for
them, but here's the story for now. Windows relies on the PATH environment
variable as the way to locate libraries that are not in the immediate folder,
and also not in the C:\Windows\System32 folder. Searching for libraries in the
and also not in the C:\\Windows\\System32 folder. Searching for libraries in the
PATH folders goes from left to right. If you choose to put Anaconda's folders on
PATH, there are several of them:

Expand Down

0 comments on commit c4354d4

Please sign in to comment.