bokeh serve error with directory format and --num-proc != 1

I am using the directory format with a bokeh server that has a structure like:

   fst_app
>
+---main.py
snd_app

±–main.py


If I set --num-procs to any integer other than 1, then I get the error message:

ERROR:'DirectoryHandler' object has no attribute 'safe_to_fork'

``

The command is:

bokeh serve --num-procs 0 first_app snd_app

``

The error occurs even with only one app specified, but I can explicitly pass --num-procs 1 without issue. I can also run the [single module format](http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#single-module-format) with any number of processes. Is this a bug or am I using bokeh serve incorrectly?

This is a bug for sure but should be simple to fix. Please file an issue oh GH

Thanks,

Bryan

···

On Aug 11, 2016, at 07:33, Reece Heineke [email protected] wrote:

I am using the directory format with a bokeh server that has a structure like:

   fst_app
>
+---main.py
snd_app

±–main.py


If I set --num-procs to any integer other than 1, then I get the error message:

ERROR:‘DirectoryHandler’ object has no attribute ‘safe_to_fork’

``

The command is:

bokeh serve --num-procs 0 first_app snd_app

``

The error occurs even with only one app specified, but I can explicitly pass --num-procs 1 without issue. I can also run the single module format with any number of processes. Is this a bug or am I using bokeh serve incorrectly?

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/75afd407-8c93-4806-b144-8744b0f58259%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

···

On Thursday, August 11, 2016 at 8:35:32 AM UTC-4, Bryan Van de ven wrote:

This is a bug for sure but should be simple to fix. Please file an issue oh GH

Thanks,

Bryan

On Aug 11, 2016, at 07:33, Reece Heineke [email protected] wrote:

I am using the directory format with a bokeh server that has a structure like:

   fst_app
>
+---main.py
snd_app

±–main.py


If I set --num-procs to any integer other than 1, then I get the error message:

ERROR:‘DirectoryHandler’ object has no attribute ‘safe_to_fork’

``

The command is:

bokeh serve --num-procs 0 first_app snd_app

``

The error occurs even with only one app specified, but I can explicitly pass --num-procs 1 without issue. I can also run the single module format with any number of processes. Is this a bug or am I using bokeh serve incorrectly?

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/75afd407-8c93-4806-b144-8744b0f58259%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Great, assuming it's as simple as I imagine, I should have a fix in master today.

Thanks,

Bryan

···

On Aug 11, 2016, at 9:49 AM, Reece Heineke <[email protected]> wrote:

https://github.com/bokeh/bokeh/issues/4945

On Thursday, August 11, 2016 at 8:35:32 AM UTC-4, Bryan Van de ven wrote:
This is a bug for sure but should be simple to fix. Please file an issue oh GH

Thanks,

Bryan

On Aug 11, 2016, at 07:33, Reece Heineke <[email protected]> wrote:

I am using the directory format with a bokeh server that has a structure like:

fst_app
   >
   +---main.py

snd_app
   >
   +---main.py

If I set --num-procs to any integer other than 1, then I get the error message:

ERROR:'DirectoryHandler' object has no attribute 'safe_to_fork'

The command is:

bokeh serve --num-procs 0 first_app snd_app

The error occurs even with only one app specified, but I can explicitly pass --num-procs 1 without issue. I can also run the single module format with any number of processes. Is this a bug or am I using bokeh serve incorrectly?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/75afd407-8c93-4806-b144-8744b0f58259%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8571cfd9-3a03-491e-9576-ea8def0d0a4f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.