Issues running range_tool.py

Hello Everyone,

I’m having an issue running the standard code available on the Bokeh website for range_tool.py. This is the message I get when I run range_tool,py from my terminal.

HudsonHauss-MacBook-Pro:Desktop HudsonHaus$ python range_plot.py

*** File “range_plot.py”, line 1***

*** {\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf200***

I keep getting this message. I uninstalled bokeh (pip uninstall bokeh) and reinstalled again (pip install bokeh), but that didn’t help.

Can someone please tell me why this is happening and how to fix it?

Thanks,

Sam

Hi,

Going off this SO answer:

  https://stackoverflow.com/questions/23669037/error-on-rtf1-ansi-when-compiling-c-program

It would seem that you have saved range_tool.py as an RTF file. Python will not know what to do with that. You should save as ascii, or possibly UTF-8

Thanks,

Bryan

···

On Apr 11, 2019, at 7:05 PM, [email protected] wrote:

Hello Everyone,

I'm having an issue running the standard code available on the Bokeh website for range_tool.py. This is the message I get when I run range_tool,py from my terminal.

HudsonHauss-MacBook-Pro:Desktop HudsonHaus$ python range_plot.py
  File "range_plot.py", line 1
    {\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf200

I keep getting this message. I uninstalled bokeh (pip uninstall bokeh) and reinstalled again (pip install bokeh), but that didn't help.

Can someone please tell me why this is happening and how to fix it?

Thanks,

Sam

--
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/f38fc608-4c72-4dd7-b601-23bf05ff284f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.