Skip to content

Cannot create a virtualenv with a trailing space in the name #749

Closed
@jessamynsmith

Description

@jessamynsmith

First off, I think that creating directories with leading or trailing spaces in the name is a terrible thing to do, but it is legal in most operating systems. In Mac OSX I am able to create a virtualenv named " space ", but on linux it fails as follows:

$ virtualenv "trailing space "
New python executable in trailing space /bin/python
ERROR: The executable trailing space /bin/python is not functioning
ERROR: It thinks sys.prefix is u'/home/vagrant/trailing space' (should be u'/home/vagrant/trailing space ')
ERROR: virtualenv is not compatible with this system or executable

I only discovered this because I was writing tests for virtualenvwrapper and trying to handle edge cases. I do not think it is particularly high priority, but I wanted to record it for posterity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions