# Can't access VTK classes or methods in python

**URL:** https://discourse.vtk.org/t/cant-access-vtk-classes-or-methods-in-python/3913
**Category:** Support
**Created:** [August 5, 2020, 12:11pm UTC](https://discourse.vtk.org/t/cant-access-vtk-classes-or-methods-in-python/3913 "2020-08-05T12:11:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![epaj95](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/59ef9b/32.png) [@epaj95](https://discourse.vtk.org/u/epaj95)
#### Post date: [August 5, 2020, 12:11pm UTC](https://discourse.vtk.org/t/cant-access-vtk-classes-or-methods-in-python/3913/1 "2020-08-05T12:11:59Z")

</div>

Hello all,

I’m having a strange issue using VTK in python. I have created a conda environment and installed VTK 8.1 from the anaconda channel. In VScode, I’ve set the python interpreter to this conda env, and can import the vtk module (import vtk).

However, when I type vtk. I expect all the classes and methods to pop up like what I’ve seen in tutorials. However I get this:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/9/94915f5e89600ec1c2cbef3690b0b1980ceee444.png)

Apologies if this is a silly error, I can’t seem to find any reason why the package has imported like this.

Thankyou

---

<div class="post-metadata">

### Author: ![epaj95](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/59ef9b/32.png) [@epaj95](https://discourse.vtk.org/u/epaj95)
#### Post date: [August 14, 2020, 4:04pm UTC](https://discourse.vtk.org/t/cant-access-vtk-classes-or-methods-in-python/3913/2 "2020-08-14T16:04:30Z")

</div>

Update: I fixed this by doing

import vtk  
from vtk.vtkCommonCore import vtkObject

that seemed to fix the autocomplete/suggestion problems.
