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 Install Error UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 49: ordinal not in range(128) #6196

Closed
tstegman opened this issue Oct 20, 2017 · 6 comments
Labels
locked [bot] locked due to inactivity

Comments

@tstegman
Copy link

Howdy,

I have been trying to install Anaconda for a while now and have had no success. I have played around with the PATH variables and uninstalled and reinstalled several times. I am new to python and and not sure what to do next other than give up. Any help would be great. Thanks!

An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:

https://github.com/conda/conda/issues

Current conda install:

           platform : win-64
      conda version : 4.3.27
   conda is private : False
  conda-env version : 4.3.27
conda-build version : 3.0.22
     python version : 2.7.13.final.0
   requests version : 2.18.4
   root environment : C:\Anaconda2  (writable)
default environment : C:\Anaconda2
   envs directories : C:\Anaconda2\envs
                      C:\Users\m.modeler\AppData\Local\conda\conda\envs
                      C:\Users\m.modeler\.conda\envs
      package cache : C:\Anaconda2\pkgs
                      C:\Users\m.modeler\AppData\Local\conda\conda\pkgs
       channel URLs : https://repo.continuum.io/pkgs/main/win-64
                      https://repo.continuum.io/pkgs/main/noarch
                      https://repo.continuum.io/pkgs/free/win-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/win-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/win-64
                      https://repo.continuum.io/pkgs/pro/noarch
                      https://repo.continuum.io/pkgs/msys2/win-64
                      https://repo.continuum.io/pkgs/msys2/noarch
        config file : None
         netrc file : None
       offline mode : False
         user-agent : conda/4.3.27 requests/2.18.4 CPython/2.7.13 Windows/7

Windows/6.1.7601
administrator : False

$ C:\Anaconda2\Scripts\conda ..checkenv cmd.exe C:\Anaconda2

Traceback (most recent call last):
  File "C:\Anaconda2\lib\site-packages\conda\cli\main.py", line 171, in main

    activate.main()
  File "C:\Anaconda2\lib\site-packages\conda\cli\activate.py", line 181, in

main
from ..install import symlink_conda
File "C:\Anaconda2\lib\site-packages\conda\install.py", line 37, in
from .core.package_cache import rm_fetched # NOQA
File "C:\Anaconda2\lib\site-packages\conda\core\package_cache.py", line 9,
in
from .path_actions import CacheUrlAction, ExtractPackageAction
File "C:\Anaconda2\lib\site-packages\conda\core\path_actions.py", line 33,
in
from ..gateways.download import download
File "C:\Anaconda2\lib\site-packages\conda\gateways\download.py", line 10,
in
from requests.exceptions import ConnectionError, HTTPError, InvalidSchem
a, SSLError
File "C:\Anaconda2\lib\site-packages\requests_init_.py", line 84, in
from urllib3.contrib import pyopenssl
File "C:\Anaconda2\lib\site-packages\urllib3\contrib\pyopenssl.py", line 4
6, in
import OpenSSL.SSL
File "C:\Anaconda2\lib\site-packages\OpenSSL_init_.py", line 8, in
from OpenSSL import rand, crypto, SSL
File "C:\Anaconda2\lib\site-packages\OpenSSL\crypto.py", line 12, in
from cryptography import x509
File "C:\Anaconda2\lib\site-packages\cryptography\x509_init_.py", line
9, in
from cryptography.x509.base import (
File "C:\Anaconda2\lib\site-packages\cryptography\x509\base.py", line 16,
in
from cryptography.x509.extensions import Extension, ExtensionType
File "C:\Anaconda2\lib\site-packages\cryptography\x509\extensions.py", lin
e 13, in
from asn1crypto.keys import PublicKeyInfo
File "C:\Anaconda2\lib\site-packages\asn1crypto\keys.py", line 22, in
from ._elliptic_curve import (
File "C:\Anaconda2\lib\site-packages\asn1crypto_elliptic_curve.py", line
51, in
from ._int import inverse_mod
File "C:\Anaconda2\lib\site-packages\asn1crypto_int.py", line 56, in
from ._perf._big_num_ctypes import libcrypto
File "C:\Anaconda2\lib\site-packages\asn1crypto_perf_big_num_ctypes.py",
line 31, in
libcrypto_path = find_library('crypto')
File "C:\Anaconda2\lib\ctypes\util.py", line 53, in find_library
fname = os.path.join(directory, name)
File "C:\Anaconda2\lib\ntpath.py", line 85, in join
result_path = result_path + p_path
UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 49: ord
inal not in range(128)

C:\Users\m.modeler\Documents>

@mingwandroid
Copy link
Contributor

Please show the value of PATH.

@tstegman
Copy link
Author

PATH
C:\Program Files\Common Files\Intel\WirelessCommon\“;"C:\Program Files\R\R-3.1.0\bin\x64";

PYTHONPATH
C:\Anaconda2;C:\Anaconda2\Scripts;C:\Anaconda2\Library\lib

@mingwandroid
Copy link
Contributor

You need to remove the quotes from your PATH, both the non-ASCII “ one and the ASCII ones that serve no purpose.

@mingwandroid
Copy link
Contributor

Also, do not set PYTHONPATH it is more trouble than it is worth.

@tstegman
Copy link
Author

Thank you so much! It worked!!!

@github-actions
Copy link

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 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 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
Projects
None yet
Development

No branches or pull requests

2 participants