# Python import myapp Error for win10 \[Solved\]

**URL:** <https://community.plotly.com/t/python-import-myapp-error-for-win10-solved/4954>\
**Category:** Dash Python\
**Created:** [July 15, 2017, 9:32pm UTC](https://community.plotly.com/t/python-import-myapp-error-for-win10-solved/4954 "2017-07-15T21:32:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmybow](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jimmybow/32/6281_2.png) [@jimmybow](https://community.plotly.com/u/jimmybow)\
**Post date:** [July 15, 2017, 9:32pm UTC](https://community.plotly.com/t/python-import-myapp-error-for-win10-solved/4954/1 "2017-07-15T21:32:49Z")

</div>

I follow the USER GUIDE [Build Your Own Components | Dash for Python Documentation | Plotly](https://plot.ly/dash/plugins)  
But in the Step 5, I can’t import myapp

> In [1]: import myapp  
> File “\< string \>”, line 1  
> class src\components\ExampleComponent(Component):

```
                                                      ^

```

> SyntaxError: unexpected character after line continuation character

how to solve it error …?

---

<div class="post-metadata">

**Author:** ![jimmybow](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jimmybow/32/6281_2.png) [@jimmybow](https://community.plotly.com/u/jimmybow)\
**Post date:** [July 16, 2017, 12:54am UTC](https://community.plotly.com/t/python-import-myapp-error-for-win10-solved/4954/2 "2017-07-16T00:54:41Z")

</div>

the path in metadata.json is from “src/components/ExampleComponent” to “src\components\ExampleComponent” when using

> python setup.py install

for win10 system… and make that error …  
,and the bundle.js is not available …  
so i copy the metadata.json and bundle.js to

> python\Lib\site-packages\myapp-0.0.1-py3.6.egg\myapp

, and it pass to perform locally finally. 😆

---

<div class="post-metadata">

**Author:** ![jimmybow](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jimmybow/32/6281_2.png) [@jimmybow](https://community.plotly.com/u/jimmybow)\
**Post date:** [July 17, 2017, 10:57am UTC](https://community.plotly.com/t/python-import-myapp-error-for-win10-solved/4954/3 "2017-07-17T10:57:14Z")

</div>

Exactly , for the win 10

1. when using

> npm install

the path in metadata.json is

> “src\\components\\ExampleComponent.react.js”

, so the dash moudle can’t read it , you need just `

> change \\ to /

1. For \_\_ init \_\_ .py file, you need to remove “[https://unpkg.com/react-dom@15.4.2/dist/react-dom.min.js](https://unpkg.com/react-dom@15.4.2/dist/react-dom.min.js)” if you want to run your app locally.

then, you can run sucessfully 😀
