☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

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

Community Support
Reece_Heineke
Reece_Heineke

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?
⌁   Link to post
Bryan
Bryan

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 rheineke@credibly.com 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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

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.

⌁   Link to post
Reece_Heineke
Reece_Heineke
···

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 rhei...@credibly.com 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 bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

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.

⌁   Link to post
Bryan
Bryan

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 <rheineke@credibly.com> wrote:

bokeh serve error with directory format and --num-proc != 1 · Issue #4945 · bokeh/bokeh · GitHub

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 <rhei...@credibly.com> 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 bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
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\.

⌁   Link to post

End of archived discussion · Replies are disabled