# Bootstrap

**URL:** <https://community.shotgridsoftware.com/t/bootstrap/18433>\
**Category:** Pipeline Integrations\
**Created:** [February 18, 2024, 9:33am UTC](https://community.shotgridsoftware.com/t/bootstrap/18433 "2024-02-18T09:33:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnegrel](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mnegrel](https://community.shotgridsoftware.com/u/mnegrel)\
**Post date:** [February 18, 2024, 9:33am UTC](https://community.shotgridsoftware.com/t/bootstrap/18433/1 "2024-02-18T09:33:57Z")

</div>

Hi evryone,

I started to implement a “tk\_bootstrap” based on a naive approach based on the Autodesk help with tk-shell implemented.

python-3.9.10  
shotgun\_api3-3.4.2  
tk\_core-0.20.32

with SHOTGUN\_API\_CACERTS pointing to “cacerts.txt” path

Just after this debug messages from logManager():  
[DEBUG sgtk.core.util.storage\_roots] Querying SG local storages…

```auto
context = _build_ssl_context(
  File "/opt/prod/packages/external/tk_core/0.20.32/python/tank_vendor/shotgun_api3/lib/httplib2/python3/ __init__.py", line 183, in _build_ssl_context
    context.load_verify_locations(ca_certs)
FileNotFoundError: [Errno 2] No such file or directory

```

If anybody have any idea about debugging this part.

Best regards,

Mathieu

---

<div class="post-metadata">

**Author:** ![Fabian](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/fabian/32/3508_2.png) [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Post date:** [February 18, 2024, 11:22am UTC](https://community.shotgridsoftware.com/t/bootstrap/18433/2 "2024-02-18T11:22:46Z")

</div>

Hi @mnegrel !

Did you install tk-core via pip in a virtual env? If so there is a long standing bug where this breaks the bootstrap API. [Pip install sgtk breaks ToolkitManager](https://community.shotgridsoftware.com/t/pip-install-sgtk-breaks-toolkitmanager/9695)

Best solution we found so far is installing tk-core in editable mode.

Hope that helps!

Cheers  
Fabian

---

<div class="post-metadata">

**Author:** ![mnegrel](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mnegrel](https://community.shotgridsoftware.com/u/mnegrel)\
**Post date:** [February 18, 2024, 9:34pm UTC](https://community.shotgridsoftware.com/t/bootstrap/18433/3 "2024-02-18T21:34:59Z")

</div>

Hi Fabian,

first of all thank you so much for reply.  
I do not install with pip because I already had a bug like this few years ago.  
From my part it’s looks like I have an authentification issue, append right after updating tk-core, and shotgun api.

I would more time next week end to dive into the code understand clearly what appended.

Best regards

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [February 20, 2024, 12:28am UTC](https://community.shotgridsoftware.com/t/bootstrap/18433/4 "2024-02-20T00:28:22Z")

</div>

> [@mnegrel](#):
>
> `FileNotFoundError: [Errno 2] No such file or directory`

Doesn’t this just mean that it cant access the cacerts file?

---

<div class="post-metadata">

**Author:** ![mnegrel](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mnegrel](https://community.shotgridsoftware.com/u/mnegrel)\
**Post date:** [February 24, 2024, 9:16am UTC](https://community.shotgridsoftware.com/t/bootstrap/18433/5 "2024-02-24T09:16:53Z")

</div>

I do not know, I tryed différents ways using SHOTGUN\_API\_CACERTS and SSL\_CERT\_FILE with the path to cacert.pem and or cacert.txt.

I have couple of time this week end for that.

I will put the result if I find some thing
