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

Annoying virtualenv conflict #102

Open
edmcman opened this issue Oct 22, 2021 · 1 comment
Open

Annoying virtualenv conflict #102

edmcman opened this issue Oct 22, 2021 · 1 comment

Comments

@edmcman
Copy link

edmcman commented Oct 22, 2021

It seems that bass is incompatible with virtualenv. The problem is that virtualenv changes the python binary in such a way that python3 -sS can no longer find the installed modules.

~/.c/fish $ bass 'source /usr/local/bin/virtualenvwrapper.sh ; workon angr'                                                                                       15:55:00
~/.c/fish $ bass                                                                                                                                                  15:55:01
Traceback (most recent call last):
  File "/home/ed/.local/share/omf/pkg/bass/functions/__bass.py", line 12, in <module>
    import json
ModuleNotFoundError: No module named 'json'
~/.c/fish $ which python3                                                                                                                                         15:55:02
/home/ed/.virtualenvs/angr/bin/python3
~/.c/fish $ python3 -c 'import json'                                                                                                                              15:55:06
~/.c/fish $ python3 -sS -c 'import json'                                                                                                                          15:55:12
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'json'
@edc
Copy link
Owner

edc commented Oct 22, 2021

Not a straight answer to this question, but you might find virtualfish a great replacement. I find it even better than the bash equivalent in certain aspects like the connect command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants