Python 2 conda doesn't work with Unicode directory names #1180

Closed
heekyungyoon opened this Issue Mar 6, 2015 · 7 comments

Projects

None yet

3 participants

@heekyungyoon

conda install launcher unicode error

For some reason, Anaconda Launcher was not included in the package and I tried to install myself with 'conda install launcher' command.

However, it doesn't seem to work.

I'm suspecting that my folder name being Korean is a reason but I can't change the folder name...

How can I install 'Anaconda Launcher'?

@asmeurer
Contributor
asmeurer commented Mar 6, 2015

Looks like a bug in conda for Python 2. I suspect this will work if you use Anaconda3 or Miniconda3.

@asmeurer
Contributor
asmeurer commented Mar 6, 2015

Can you paste the directory name here so I can copy it and test against it (I don't know how to type it)?

@heekyungyoon

Thanks for quick response!

Here's the directory name.

C:\Users\윤희경\Anaconda

@asmeurer asmeurer changed the title from conda install launcher to Python 2 conda doesn't work with Unicode directory names Mar 6, 2015
@asmeurer
Contributor
asmeurer commented Mar 6, 2015

This looks like it will be a pain to fix. I highly recommend using Anaconda3. This problem won't exist at all there.

@asmeurer asmeurer added a commit to asmeurer/conda that referenced this issue Mar 6, 2015
@asmeurer asmeurer Use YAML to load the repodata when possible.
This causes it to load as str rather than unicode in Python 2, which avoids
UnicodeDecodeError when installing into a prefix that has non-ASCII
characters.

See #1180.
f37ab43
@asmeurer asmeurer added a commit to asmeurer/conda that referenced this issue Mar 6, 2015
@asmeurer asmeurer Don't encode new_prefix
This causes it to fail if the prefix has non-ASCII characters in it in
Python 2. It seems to replace the prefix correctly when it does.

See #1180.
0200355
@heekyungyoon

Thanks for your help:)
Maybe I'll try with my Ubuntu virtual machine since I need to use 2.7 version for my coursework.
-----Original Message-----
From: "Aaron Meurer"<notifications@github.com>
To: "conda/conda"<conda@noreply.github.com>;
Cc: "heekyungyoon"<yhk00323@naver.com>;
Sent: 2015-03-07 (토) 08:25:37
Subject: Re: [conda] Python 2 conda doesn't work with Unicode directory names (#1180)

This looks like it will be a pain to fix. I highly recommend using Anaconda3. This problem won't exist at all there.


Reply to this email directly or view it on GitHub.

@asmeurer
Contributor
asmeurer commented Mar 7, 2015

You can still use Python 2.7 with Anaconda3. Use conda to create a Python 2 environment, like

conda create -n py2 python=2.7 anaconda
activate py2

The important thing is that in Anaconda3, conda itself will be running in Python 3, so there won't be any issues (even if you use it to create a Python 2 environment).

@soapy1 soapy1 closed this Oct 23, 2016
@asmeurer
Contributor

Did this actually get fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment