# VTK Trame Docker Issue

**URL:** https://discourse.vtk.org/t/vtk-trame-docker-issue/9112
**Category:** Web
**Created:** [August 9, 2022, 2:23am UTC](https://discourse.vtk.org/t/vtk-trame-docker-issue/9112 "2022-08-09T02:23:35Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![kypss50102](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kypss50102/32/5630_2.png) [@kypss50102](https://discourse.vtk.org/u/kypss50102)
#### Post date: [August 24, 2022, 12:12pm UTC](https://discourse.vtk.org/t/vtk-trame-docker-issue/9112/21 "2022-08-24T12:12:57Z")

</div>

I mount it by adding this command into the run\_server & run\_image scripts.  
`-v "$MYWORKDIR/trame_app/data:/data" \` and I still don’t know how to fix this error.

```auto
> VTK is not available inside your Python environment
Traceback (most recent call last):
  File "/deploy/server/venv/bin/trame-app", line 11, in <module>
    load_entry_point('trame-app==1.0.0', 'console_scripts', 'trame-app')()
  File "/deploy/server/venv/lib/python3.9/site-packages/trame_app/app/main.py", line 24, in main
    ui.initialize(server)
  File "/deploy/server/venv/lib/python3.9/site-packages/trame_app/app/ui.py", line 751, in initialize
    local_view = vtk.VtkLocalView(renderWindow)
  File "/deploy/server/venv/lib/python3.9/site-packages/trame_vtk/widgets/vtk/common.py", line 662, in __init__
    self.update()
  File "/deploy/server/venv/lib/python3.9/site-packages/trame_vtk/widgets/vtk/common.py", line 668, in update
    self.server.state[self.__scene_id] = MODULE.scene(self.__view)
  File "/deploy/server/venv/lib/python3.9/site-packages/trame_vtk/modules/vtk/ __init__.py", line 187, in scene
    scene_state = HELPER.scene(render_window)
AttributeError: 'NoneType' object has no attribute 'scene'

```

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [August 24, 2022, 3:03pm UTC](https://discourse.vtk.org/t/vtk-trame-docker-issue/9112/22 "2022-08-24T15:03:29Z")

</div>

I thought you solved it with that comment

> [@Sebastien\_Jourdain](#):
>
> Add `vtk` to be a dependency of your project in the setup.cfg file.

---

<div class="post-metadata">

### Author: ![kypss50102](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kypss50102/32/5630_2.png) [@kypss50102](https://discourse.vtk.org/u/kypss50102)
#### Post date: [August 25, 2022, 3:04am UTC](https://discourse.vtk.org/t/vtk-trame-docker-issue/9112/23 "2022-08-25T03:04:25Z")

</div>

I did add vtk to the setup file. Like this:

```auto
packages = find:
include_package_data = True
install_requires =
    trame>=2.0.0rc2
    vtk>=9.1.0

```

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [August 25, 2022, 4:06pm UTC](https://discourse.vtk.org/t/vtk-trame-docker-issue/9112/24 "2022-08-25T16:06:54Z")

</div>

If you rebuilt the server directory after that change, I don’t understand why you would run into that issue. It does not make sense.

[Previous page](https://discourse.vtk.org/t/vtk-trame-docker-issue/9112.md?page=1)
