# Permission Error When Deploying App

**URL:** <https://discuss.streamlit.io/t/permission-error-when-deploying-app/41211>\
**Category:** Community Cloud\
**Created:** [April 13, 2023, 5:16am UTC](https://discuss.streamlit.io/t/permission-error-when-deploying-app/41211 "2023-04-13T05:16:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dk11](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/dk11/32/25290_2.png) [@dk11](https://discuss.streamlit.io/u/dk11)\
**Post date:** [April 13, 2023, 5:16am UTC](https://discuss.streamlit.io/t/permission-error-when-deploying-app/41211/1 "2023-04-13T05:16:54Z")

</div>

I am getting a “PermissionError” when trying to deploy my app using Streamlit. Here is a [link](https://dkuai3-network-graph2-network-graph-qs5ai7.streamlit.app/) to my app. I am using pyvis to create a network graph using data that was uploaded to my Github repository – repo linked [here](https://github.com/dkuai3/network_graph2.git). It seems like the lines generating the error involve saving and reading the graph as an html file. I am unsure of how to resolve this, so any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [April 13, 2023, 7:12am UTC](https://discuss.streamlit.io/t/permission-error-when-deploying-app/41211/2 "2023-04-13T07:12:06Z")

</div>

> I am getting a “PermissionError” when trying to deploy my app

Error messages are usually more verbose than that, for good reasons…

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/franky1/32/6509_2.png) [@Franky1](https://discuss.streamlit.io/u/Franky1)\
**Post date:** [April 13, 2023, 7:37am UTC](https://discuss.streamlit.io/t/permission-error-when-deploying-app/41211/3 "2023-04-13T07:37:38Z")

</div>

- There is a typo in your path
- Your overall file handling is odd. You `open` a few files, but don’t `close` them, that is not recommended. Learn proper file handling in python.

---

<div class="post-metadata">

**Author:** ![dk11](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/dk11/32/25290_2.png) [@dk11](https://discuss.streamlit.io/u/dk11)\
**Post date:** [April 13, 2023, 3:55pm UTC](https://discuss.streamlit.io/t/permission-error-when-deploying-app/41211/4 "2023-04-13T15:55:02Z")

</div>

I had spent a long time debugging various errors that popped up when trying to deploy my app, so I guess I assumed it was a more serious error than a simple typo in the path. Thank you for taking a look!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [October 10, 2023, 3:55pm UTC](https://discuss.streamlit.io/t/permission-error-when-deploying-app/41211/5 "2023-10-10T15:55:20Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
