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
activate.sh fails if 'nounset' option is set #150
Comments
I can fix this by changing this line: |
Actually, that's a lame fix, since it requires rewriting all existential tests. It's far easier to just add |
I hit this too. |
Me too |
I am suspecting that perhaps a way to unset the -u for the innards of the script, and then have it restore the original setting when finishing would make sense. I'm trying to figure out a way of doing so here - http://stackoverflow.com/questions/13494841/how-can-you-ask-bash-for-the-current-options |
Pull request made -#357 |
I would do:
to:
|
Yup, just hit this myself. Running |
Workaround for now—
|
👍 |
I am hitting this too.... |
It is kinda weird that such a easy problem is not fixed after four years. |
This is fixed by #645. |
Fixed |
@dstufft could you please specify in which release was this fixed so we can assure that we have the minimal needed version installed? From the bug is not clear at all regarding which release includes the fix. |
@ssbarnea It was fixed on 12 Aug 2015, as noted in the comments above, so any version released after that date. From https://virtualenv.pypa.io/en/latest/changes/ that means 13.1.1 (and indeed the note for that version mentions this change specifically). All of that information is easily available, so you could probably have found it with a brief search (that's what I did). |
I have some bad news: this bug should be reopened because now I get |
This also applies to
|
You can of course just set up the environment yourself, or use the full pathname of the Python executable. |
Sorry for reopening the discussion on this, I made the mistake of not checking the versions of virtualenv that we had on the build server and I made an ugly discovery, an ancient version 1.10.1. This would count for lots of bugs. I am going to upgrade it tomorrow. |
No apology necessary; In fact I learned a few things from this revived
conversation.
…On Tue, Mar 7, 2017 at 3:09 PM, Sorin Sbarnea ***@***.***> wrote:
Sorry for reopening the discussion on this, I made the mistake of not
checking the versions of virtualenv that we had on the build server and I
made an ugly discovery, an ancient version 1.10.1. This would count for
lots of bugs. I am going to upgrade it tomorrow.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#150 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFWbGU02kdSoecXUESrDHlOUN9Rci5Oks5rjcdvgaJpZM4AQ_Js>
.
|
It seems that the bug still exists even in the current release, so I raised it as #1029 |
it's fixed now #922 |
I get the following error when I try to activate a virtualenv.
This is happening because I've configured Bash to use the nounset option, which throws an error when accessing unset variables (see here)
The text was updated successfully, but these errors were encountered: