anaconda-project icon indicating copy to clipboard operation
anaconda-project copied to clipboard

anaconda-project run hangs indefinitely

Open charleswm opened this issue 7 years ago • 5 comments

When I follow the tutorial and execute anaconda-project run it launches and opens the browser but then hangs indefinitely. I know it says that the first time it might take longer, but the env was already created and it's been running for >10 minutes.

I thought it might be an issue with the main.py file, but I was able to run the bokeh app fine using bokeh-server directly.

Has this happened to anyone else? I ran:

anaconda-project run
2017-10-11 11:50:43,981 Starting Bokeh server version 0.12.4
2017-10-11 11:50:43,986 Starting Bokeh server on port 5006 with applications at paths ['/clustering_app']
2017-10-11 11:50:43,987 Starting Bokeh server with process id: 1647

My directory looks like this

.
├── anaconda-project.yml
├── envs
│   └── default
│       ├── bin
│       ├── conda-meta
│       ├── include
│       ├── lib
│       ├── share
│       ├── ssl
│       └── var
└── main.py

9 directories, 2 files

charleswm avatar Oct 11 '17 15:10 charleswm

I have exactly the same issue. It's very disheartening to not even be able to complete the quickstart :(

Ogaday avatar Nov 06 '17 15:11 Ogaday

Recreating this without anaconda-project, however, seems to lead to the same issues for me, so it is probably an issue with the way my environment is playing with Bokeh rather than anaconda-project itself causing any issues.

Ogaday avatar Nov 06 '17 15:11 Ogaday

Using the code in testapp.py from the bokeh server guide as main.py, it works fine with following commands:

mkdir test_proj
cd test_proj
# main.py is testapp.py from https://bokeh.pydata.org/en/latest/docs/user_guide/server.html#updating-from-threads
anaconda-project init
anaconda-project add-packages python=3.6.3 bokeh=0.12.10
anaconda-project add-command serve "bokeh serve --show main.py"
anaconda-project run serve

I'm not sure exactly what's happening with the anaconda-project quickstart example, but when I do the above it works so I'm not too worried.

Ogaday avatar Nov 07 '17 14:11 Ogaday

@Ogaday that's really great to hear, thank you for working it out! @goanpeca looks like maybe it's just the quickstart or docs that need to be updated?

necaris avatar Nov 07 '17 15:11 necaris

@Ogaday thanks for the info!, @necaris sure, we can update docs then :-)

goanpeca avatar Nov 07 '17 15:11 goanpeca