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

npm start fails if conda not available #1678

Closed
brollb opened this issue May 4, 2020 · 4 comments
Closed

npm start fails if conda not available #1678

brollb opened this issue May 4, 2020 · 4 comments
Labels

Comments

@brollb
Copy link
Contributor

brollb commented May 4, 2020

Although it is preferred to use conda, it would be good to be able to run deepforge without it. Of course, dependencies would need to be already installed and would not be able to be automatically installed. Currently, running npm start results in the following error:
DeepinScreenshot_select-area_20200504100257

@brollb brollb added the bug label May 4, 2020
@brollb
Copy link
Contributor Author

brollb commented May 4, 2020

I guess this actually is the same as auto-detecting conda support (since we already have support for the -N flag).

@umesh-timalsina
Copy link
Contributor

umesh-timalsina commented May 5, 2020

Doesn't

"no-conda-server": "node ./bin/deepforge start --server --no-conda",
already handle it?

@brollb
Copy link
Contributor Author

brollb commented May 5, 2020

That's why I added the comment about auto-detecting conda support (since the underlying capability is already there). :)

Basically, it can be a little annoying that npm start fails when conda is not available. It would be nice to either detect this and print a meaningful error message or print a warning and run without conda support.

@brollb
Copy link
Contributor Author

brollb commented Jul 21, 2020

This specific error is caused by activate not being found in the PATH. In my case, adding ~/anaconda/bin/ to my PATH fixed it:

export PATH=$PATH:$HOME/anaconda3/bin

@brollb brollb closed this as completed in 4c514da Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants