Unsupportedoperation: Not Writable Error


#1

Hello,

I am new to Dash and my first time on it. I tried to work with tutorial (Generate HTML with Dash) on https://dash.plot.ly/getting-started . I am able to import all the packages and when I try to compile the same program as it is, it throws me an error which
is below

Can some one please help me out what this error is about? I cannot execute any dash script as I am stuck here

I am using spyder 3.6 and python 3


#2

Pass sys.stdout as a second parameter to click.echo call.


#3

Hi Devesh,

Thanks for sparing time to look at this. Below is my code. I have just installed Dash and trying out the basic HTML layout and when I execute thais, i get the error as displayed above.

import dash
import dash_core_components as dcc
import dash_html_components as html

app = dash.Dash()

app.layout = html.Div(‘Dash Turorials’)

if name == ‘main’:
app.run_server(debug=True)

Is this the problem coz of Installation ? Also, I dont have all admin rights(currently working for a company) and installed Dash under my_root. I am second user for the desktop.


#4

Are you running the Dash script in your IDE console? If so, it won’t execute.
Quick work around is to execute the file in your command prompt.