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

Activating a venv - Dash doesn't understand source #66358

Closed
dlintott mannequin opened this issue Aug 7, 2014 · 4 comments
Closed

Activating a venv - Dash doesn't understand source #66358

dlintott mannequin opened this issue Aug 7, 2014 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@dlintott
Copy link
Mannequin

dlintott mannequin commented Aug 7, 2014

BPO 22162
Nosy @vsajip, @ezio-melotti, @merwok

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/vsajip'
closed_at = <Date 2014-08-07.12:01:38.918>
created_at = <Date 2014-08-07.09:55:45.268>
labels = ['type-feature', 'invalid', 'docs']
title = "Activating a venv - Dash doesn't understand source"
updated_at = <Date 2014-08-07.12:01:38.916>
user = 'https://bugs.python.org/dlintott'

bugs.python.org fields:

activity = <Date 2014-08-07.12:01:38.916>
actor = 'vinay.sajip'
assignee = 'vinay.sajip'
closed = True
closed_date = <Date 2014-08-07.12:01:38.918>
closer = 'vinay.sajip'
components = ['Documentation']
creation = <Date 2014-08-07.09:55:45.268>
creator = 'dlintott'
dependencies = []
files = []
hgrepos = []
issue_num = 22162
keywords = []
message_count = 4.0
messages = ['225001', '225003', '225005', '225007']
nosy_count = 5.0
nosy_names = ['vinay.sajip', 'ezio.melotti', 'eric.araujo', 'docs@python', 'dlintott']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue22162'
versions = []

@dlintott
Copy link
Mannequin Author

dlintott mannequin commented Aug 7, 2014

In the documentation for venv (https://docs.python.org/3.5/library/venv.html) it gives examples for activating the venv under bash/zsh.

For a long time under both Debian and Ubuntu the default shell has been Dash (https://wiki.ubuntu.com/DashAsBinSh)

Dash doesn't undertsand the command 'source' so instead the venv must be activated using the . command (as is done for Fish, but using the bash activate file instead)

@dlintott dlintott mannequin assigned docspython Aug 7, 2014
@dlintott dlintott mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Aug 7, 2014
@dlintott dlintott mannequin changed the title Actiavting a venv - Dash doesn't understand source Activating a venv - Dash doesn't understand source Aug 7, 2014
@merwok
Copy link
Member

merwok commented Aug 7, 2014

dash is the default system shell used to execute scripts (i.e. /bin/sh), not the default shell used for users login shell and terminal emulators.

The venv/scripts/poxis/activate file seems to require bash anyway: running checkbashisms on it warns about “hash -r”.

@merwok merwok assigned vsajip and unassigned docspython Aug 7, 2014
@dlintott
Copy link
Mannequin Author

dlintott mannequin commented Aug 7, 2014

Hmm... just double checked this and this time has worked with the source command (previously was telling me it couldn't be found).

Have double checked and indeed the default login shell is bash

So feel free to close this issue

@vsajip
Copy link
Member

vsajip commented Aug 7, 2014

Was there a reason you couldn't close it yourself?

@vsajip vsajip closed this as completed Aug 7, 2014
@vsajip vsajip added the invalid label Aug 7, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants