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

Virtualenv activation error #853

Closed
anistark opened this issue Jan 26, 2016 · 11 comments
Closed

Virtualenv activation error #853

anistark opened this issue Jan 26, 2016 · 11 comments

Comments

@anistark
Copy link

I installed with python3 and when I tried activating it,

Missing end to balance this if statement
env/bin/activate (line 78): if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then
                               ^
from sourcing file env/bin/activate
    called on standard input

source: Error while reading file 'env/bin/activate'

Please advise..

@Ivoz
Copy link

Ivoz commented Jan 26, 2016

What shell are you using? Could you paste the entire contents of the activate that you tried to run?

@anistark
Copy link
Author

I'm using fish. Here's a screenshot :

screen shot 2016-01-26 at 11 47 08 am

@Ivoz
Copy link

Ivoz commented Jan 26, 2016

Have you tried activating using the fish script instead?

source py3env/bin/activate.fish

@Ivoz
Copy link

Ivoz commented Jan 26, 2016

As a follow up, what documentation did you read prior to using virtualenv? I'm wondering if there are any pertinent places that could address that different shell users might need to run a different shell script.

@anistark
Copy link
Author

Thanks @Ivoz I followed this one

@Ivoz
Copy link

Ivoz commented Jan 26, 2016

Thanks, I made a note to help.

@anistark
Copy link
Author

Oops @Ivoz I thought I'll add it to the doc file myself and created this PR

Shall I close it?

@Ivoz
Copy link

Ivoz commented Jan 28, 2016

Yes, thanks for the thought.

@pyaf
Copy link

pyaf commented Jul 10, 2016

How does shell matter in this case?

@Ivoz
Copy link

Ivoz commented Jul 11, 2016

Which shell you are executing an activate script with (using the source command, typically), determines what syntax that activate script needs to be written in.

@Ruoh3kou
Copy link

Ruoh3kou commented May 7, 2019

Which shell you are executing an activate script with (using the source command, typically), determines what syntax that activate script needs to be written in.

thank you a lot for solving my problem

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

4 participants