-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
WIP: create function to activate env #86
Conversation
@xmnlab , It gives error that |
sh.Command('xonsh')( | ||
'-c', | ||
f'{app} init xonsh', | ||
_in=sys.stdin, | ||
_out=sys.stdout, | ||
_err=sys.stderr, | ||
_bg=False, | ||
_bg_exc=False, | ||
_no_err=True, | ||
_env=os.environ, | ||
_new_session=False, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, I try to initialize the shell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking, also with this code, it is not working, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure because when I try with mamba (app), it will initialise in the shell but I don't think it performs the same with conda as mamba.
But after the initialisation of mamba in the shell, it still gives the same error.
Hi @abhijeetSaroha ! To be honest I had this issue before in different situations, but I don't know why. I am going to check with a friend from conda-forge to see if I can have some clues about that. Thanks for working on that. |
I will try to investigate it a bit tomorrow. |
update: I will take a look into this tomorrow. I have more stuff in my backlog XD |
@abhijeetSaroha , sorry .. I didn't have time to take a look into that yet, really sorry ... some bunch of problems are popping-up at work .. really sorry :( but I would like to share some thoughts here:
have you tested running the conda init for xonsh outside first? maybe also for sh as well .. to see if that would work. |
@abhijeetSaroha , when you have time, could you add a test for that? |
@abhijeetSaroha , although this PR is a bit blocked, but just for the record, maybe another approach would be using pixi: https://prefix.dev/blog/introducing_multi_env_pixi |
this is a very old PR .. but just to bring some ideas about this topic .. maybe we could use nox to intermediate this. |
Solves #52