# Can I install pyocclient libray on ignition?

**URL:** <https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286>\
**Category:** Ignition\
**Created:** [May 6, 2022, 8:25am UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286 "2022-05-06T08:25:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 6, 2022, 8:25am UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/1 "2022-05-06T08:25:01Z")

</div>

I install nextcloud. I want create folder on my next cloud using a script.

I test a python script out of ignition it work after installing pyocclient beacause my request to create a folder on nextcloud with python need a module named owncloud.

can I install pyocclient library on ignition ?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/a/5ae7eaaaad16184456cb875fbf91361ddd7e4232.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [May 6, 2022, 9:04am UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/2 "2022-05-06T09:04:16Z")

</div>

juding from the git of pyocclient, the owncloud is probably in a sub folder of the pyocclient. you probaly installed it wrong

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 6, 2022, 9:14am UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/3 "2022-05-06T09:14:09Z")

</div>

I changed my sintax, but I have another error

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/d/edfce5de9b20cbf3961a81c8ca0f25a9307cf0f7.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [May 6, 2022, 9:22am UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/4 "2022-05-06T09:22:14Z")

</div>

Is your owncloud folder from the pyocclient inside:  
`C:\Program Files\Inductive Automation\Ignition\user-lib\pylib`

seems you will also need to put the module “requests” there

---

<div class="post-metadata">

**Author:** ![sebastien\_ng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sebastien_ng/32/55297_2.png) [@sebastien\_ng](https://forum.inductiveautomation.com/u/sebastien_ng)\
**Post date:** [May 6, 2022, 10:38am UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/5 "2022-05-06T10:38:24Z")

</div>

thank you but where can I download requtes module? I search on google but i can’t find request.py

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 6, 2022, 2:58pm UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/6 "2022-05-06T14:58:40Z")

</div>

Consider using the approach documented in this post to install your module, which should automatically bring in appropriate dependencies.

> [@Import python libraries](https://forum.inductiveautomation.com/t/import-python-libraries/8321/18):
>
> It’s also worth noting that we enabled python site-packages/ in Ignition 8. (Ignition/user-lib/pylib/site-packages) What this means is that you can drop libraries in there to make them available in Ignition. You can also use pypi / pip by doing the following: Follow the Using pip section in the linked document here. [Python, Jython, CPython, Libraries, Pip, and Python 2.7 vs 3 - A quick primer](https://forum.inductiveautomation.com/t/python-jython-cpython-libraries-pip-and-python-2-7-vs-3-a-quick-primer/43201) As others have mentioned, this doesn’t work for CPython specific packages that have native dependen…

Also consider that due to both the Jython environment and our hard requirement of Python 2.7 compatibility, many external Python packages won't work in this environment. It's often easier to get a java SDK work in Jython than a Python one.

---

<div class="post-metadata">

**Author:** ![Kevin.McClusky](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kevin.McClusky](https://forum.inductiveautomation.com/u/Kevin.McClusky)\
**Post date:** [May 6, 2022, 3:51pm UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/7 "2022-05-06T15:51:56Z")

</div>

That method no longer works, as there were some updates in Jython needed. Follow instead the guidance in the primer doc here: [Python, Jython, CPython, Libraries, Pip, and Python 2.7 vs 3 - A quick primer](https://forum.inductiveautomation.com/t/python-jython-cpython-libraries-pip-and-python-2-7-vs-3-a-quick-primer/43201)

---

<div class="post-metadata">

**Author:** ![Kevin.McClusky](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kevin.McClusky](https://forum.inductiveautomation.com/u/Kevin.McClusky)\
**Post date:** [May 6, 2022, 4:03pm UTC](https://forum.inductiveautomation.com/t/can-i-install-pyocclient-libray-on-ignition/59286/8 "2022-05-06T16:03:11Z")

</div>

Also, I just tested getting pyocclient in pip and it at least loads in Jython. I don’t have anything to test with connecting to, but it does at least import which looks promising.

Some libraries work and some don’t, but this one looks like it’s certainly worth a try.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/f/5f1da32fdc6acef015e33be1f27c7f252b47df77.png)
