Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda Not Running #7242

Closed
kalefranz opened this issue May 2, 2018 · 4 comments · Fixed by #7243
Closed

Conda Not Running #7242

kalefranz opened this issue May 2, 2018 · 4 comments · Fixed by #7243
Assignees
Labels
locked [bot] locked due to inactivity severity::3 major; broken functionality with a workaround source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Milestone

Comments

@kalefranz
Copy link
Contributor

From @sanghaisubham on May 2, 2018 8:24

Actual Behavior

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\cli\main.py", line 97, in main
    from ..activate import main as activator_main
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\activate.py", line 12, in <module>
    context.__init__()  # oOn import, context does not include SEARCH_PATH. This line fixes that.
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\base\context.py", line 236, in __init__
    argparse_args=argparse_args)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 722, in __init__
    self._set_search_path(search_path)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 728, in _set_search_path
    self._set_raw_data(load_file_configs(search_path))
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 369, in load_file_configs
    raw_data = odict(kv for kv in chain.from_iterable(load_paths))
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 369, in <genexpr>
    raw_data = odict(kv for kv in chain.from_iterable(load_paths))
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 344, in _file_yaml_loader
    yield fullpath, YamlRawParameter.make_raw_parameters_from_file(fullpath)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 332, in make_raw_parameters_from_file
    ruamel_yaml = yaml_load(fh)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\serialize.py", line 54, in yaml_load
    return yaml.load(string, Loader=yaml.RoundTripLoader, version="1.2")
  File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\main.py", line 73, in load
    loader = Loader(stream, version, preserve_quotes=preserve_quotes)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\loader.py", line 56, in __init__
    Reader.__init__(self, stream)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 98, in __init__
    self.determine_encoding()
  File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 149, in determine_encoding
    self.update(1)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 189, in update
    self.check_printable(data)
  File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 160, in check_printable
    'unicode', "special characters are not allowed")
ruamel_yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
  in "C:\Users\Subham\.condarc", position 0

$ C:\Users\Subham\Anaconda3\Scripts\conda shell.cmd.exe activate activate C:\Users\Subham\Anaconda3

environment variables:
CIO_TEST=
CONDA_ROOT=C:\Users\Subham\Anaconda3
HOMEPATH=\Users\Subham
PATH=C:\Users\Subham\Anaconda3\Library\bin;C:\Program Files
(x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\oracle
xe\app\oracle\product\11.2.0\server\bin;C:\ProgramData\Oracle\Java\jav
apath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDO
WS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows
Live\Shared;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn;C:\Program Files\dotnet;C:\Program
Files\MATLAB\R2017a\runtime\win64;C:\Program
Files\MATLAB\R2017a\bin;C:\Program Files\Intel\WiFi\bin;C:\Program
Files\Common Files\Intel\WirelessCommon;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Users\Subham
AppData\Local\Programs\Python\Python35-32\Scripts;C:\Users\Subham\App
Data\Local\Programs\Python\Python35-32;C:\Users\Subham\AppData\Local
Microsoft\WindowsApps;C:\Users\Subham\AppData\Local\GitHubDesktop\bin;
C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common
Files\Intel\WirelessCommon;C:\texlive\2015\bin\win32
PSMODULEPATH=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=

 active environment : None
   user config file : C:\Users\Subham\.condarc

populated config files :
conda version : 4.5.1
conda-build version : not installed
python version : 3.6.1.final.0
base environment : C:\Users\Subham\Anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\Subham\Anaconda3\pkgs
C:\Users\Subham\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\Subham\Anaconda3\envs
C:\Users\Subham\AppData\Local\conda\conda\envs
C:\Users\Subham.conda\envs
platform : win-64
user-agent : conda/4.5.1 requests/2.14.2 CPython/3.6.1 Windows/10 Windows/10.0.16299
administrator : False
netrc file : None
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

Expected Behavior

Steps to Reproduce

Anaconda or Miniconda version:
Operating System:
conda info

conda list --show-channel-urls

Copied from original issue: ContinuumIO/anaconda-issues#9284

@kalefranz kalefranz self-assigned this May 2, 2018
@kalefranz
Copy link
Contributor Author

You have incorrect yaml in one of your configuration files. Probably C:\Users\Subham\.condarc.

Edit: Yes, it's C:\Users\Subham\.condarc. You'll need to manually fix the yaml syntax in that file.

@kalefranz
Copy link
Contributor Author

Moved here as an open issue so that we can give a proper user error instead of the stack trace.

kalefranz added a commit to kalefranz/conda that referenced this issue May 2, 2018
Signed-off-by: Kale Franz <kfranz@continuum.io>
@mading0817
Copy link

Hi kalefranz,

The issue is exactly what I met.
Now I am using Anaconda3 5.2.0, and I could not find “tests“ folder, and after replace the “context.py” and "configuration.py", it still not working.
I was wondering why is this issue caused after installation and why do I need change the code to fix it ??

Regards,
Suyang

kalefranz added a commit to kalefranz/conda that referenced this issue Aug 1, 2018
Signed-off-by: Kale Franz <kfranz@continuum.io>
kalefranz added a commit that referenced this issue Aug 2, 2018
resolve #7242 configuration load error message
@kalefranz kalefranz added type::bug describes erroneous operation, use severity::* to classify the type severity::3 major; broken functionality with a workaround source::community catch-all for issues filed by community members labels Aug 2, 2018
@kalefranz kalefranz added this to the 4.6.0 milestone Aug 2, 2018
@github-actions
Copy link

github-actions bot commented Sep 8, 2021

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 8, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity severity::3 major; broken functionality with a workaround source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants