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

Latest conda seems to have broken nbopen #61

Open
bingbong-sempai opened this issue Feb 17, 2019 · 8 comments
Open

Latest conda seems to have broken nbopen #61

bingbong-sempai opened this issue Feb 17, 2019 · 8 comments

Comments

@bingbong-sempai
Copy link

I recently updated to conda 4.6.4 and nbopen no longer works.
Rolling back the installation fixed nbopen but broke everything else :(

@ArmandoRl1
Copy link

Can confirm, can't use it.

@askorikov
Copy link

File manager integration doesn't seem to work in conda 4.7.12 either (running on Windows). On the other hand, nbopen command works from Anaconda prompt. I guess, conda has to be activated before running nbopen, which is currently not implemented in the file manager integration, as far as I understand.

@takluyver
Copy link
Owner

I'm not sure why the conda version would affect nbopen at all. But I'm not a Windows user, so I can't really do much to work it out.

@askorikov
Copy link

In fact, it seems to work if conda is added to the PATH variable (you can choose this option during conda installation).

@takluyver
Copy link
Owner

It should be using a full path to pythonw.exe in the registry key, so PATH shouldn't matter. 😕

Have a look at the nbopen.install_win module if you want to dig into it.

@askorikov
Copy link

Yep, did that. So, on double-click the Python interpreter is launched properly, but without conda environment activation it can't load the required libraries, it seems. Anyway, with the mentioned workaround it works just fine.

@takluyver
Copy link
Owner

That's unfortunate. Normally if you start Python in an environment with a full path, it can access the libraries from that environment. But it sounds like that's no longer the case on Windows.

@Greedquest
Copy link

Anaconda temporarily adds and removes items from the PATH variable when you activate an environment; this is how commands like nbopen just work from anaconda prompt but not cmd.exe and why python file.py alwas uses the python.exe associated with that conda environment.

The solution I went with was to get conda to run nbopen - see #69 (comment)

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

5 participants