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

Not compatible with a directory having emojis in its path #1014

Closed
yadavankit opened this issue Feb 7, 2017 · 11 comments
Closed

Not compatible with a directory having emojis in its path #1014

yadavankit opened this issue Feb 7, 2017 · 11 comments
Assignees

Comments

@yadavankit
Copy link

Am getting this Traceback when running virtualenv venv to create a virtualenv in a directory having emojis etc in its path -
New python executable in /Users/WARL0CK/✮✮Python✮✮/evalai/venv/bin/python2.7 Also creating executable in /Users/WARL0CK/✮✮Python✮✮/evalai/venv/bin/python Traceback (most recent call last): File "<string>", line 1, in <module> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 15: ordinal not in range(128) ERROR: The executable /Users/WARL0CK/✮✮Python✮✮/evalai/venv/bin/python2.7 is not functioning ERROR: It thinks sys.prefix is u'/Users/WARL0CK/\u272e\u272ePython\u272e\u272e/evalai' (should be u'/Users/WARL0CK/\u272e\u272ePython\u272e\u272e/evalai/venv') ERROR: virtualenv is not compatible with this system or executable

@yadavankit
Copy link
Author

Extra Info : Am running this on MacOS Sierra

@yan12125
Copy link

yan12125 commented Feb 7, 2017

I guess my patch at #900 can fix this

@pfmoore
Copy link
Member

pfmoore commented Feb 7, 2017

... which as noted in that PR, is stalled on being refactored out into separate PRs.

I'm not completely convinced that #900 is related, but it might be worth a try. Although honestly, I'd be more inclined to suggest renaming the directory to not include emojis in the name - Python 2's Unicode support isn't something I'd like to trust with that type of stress... 😉

@melyux
Copy link

melyux commented Dec 12, 2017

Any hope of fixing this?

@stale
Copy link

stale bot commented Jan 14, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 14, 2019
@melyux
Copy link

melyux commented Jan 14, 2019

Still no good.

@stale stale bot removed the wontfix label Jan 14, 2019
@JDLH
Copy link

JDLH commented Jan 15, 2019

According to a comment on #53 (comment), it appears this bug is fixed by pip 10.0.0, released 2018-04-14. @melikyuksel , did you test this issue using pip 10.0.0?

@gaborbernat gaborbernat self-assigned this Jan 15, 2019
@stale
Copy link

stale bot commented Apr 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 15, 2019
@stemid
Copy link

stemid commented Oct 13, 2019

This is not just about emojis, also about internationalization support. Gnome by default creates directories with Swedish names on a Swedish locale. So for example the Downloads dir is called Hämtningar.

I just encountered this issue trying to create a virtualenv in the directory Hämtningar.

There is a proposed PR further up in comments, I haven't looked at it but you'd think that by 2019 Python should be able to handle this.

The workaround is of course simple, just avoid using the directory for now.

@gaborbernat
Copy link
Contributor

Will address this part of #697

@gaborbernat gaborbernat added this to the 20.0.0 milestone Dec 23, 2019
@gaborbernat
Copy link
Contributor

Duplicate of #457

@gaborbernat gaborbernat marked this as a duplicate of #457 Dec 28, 2019
@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants