# pvpython

**URL:** https://discourse.paraview.org/t/pvpython/7590
**Category:** ParaView Support
**Tags:** python
**Created:** [July 12, 2021, 7:12am UTC](https://discourse.paraview.org/t/pvpython/7590 "2021-07-12T07:12:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ian](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/bb73d2/32.png) [@Ian](https://discourse.paraview.org/u/Ian)
#### Post date: [July 12, 2021, 7:12am UTC](https://discourse.paraview.org/t/pvpython/7590/1 "2021-07-12T07:12:22Z")

</div>

Hi,

I am having trouble using pvpython with a python script recorded from within ParaView. The script works perfectly if I run it using ParaView’s python script window. However, the same script returns errors if I run it using the pvpython command.

For instance, one of the error messages returned was:

`"TypeError: Show() takes from 0 to 2 positional arguments but 3 were given"`

The appears to be referring to the second line below.

```auto
# show data in view
current_VTK_P00_00Display = Show(current_VTK_P00_00, renderView1, 'UniformGridRepresentation')

```

However, that line has 3 arguments as recorded by Paraview.

Is there a known problem with these programs working together, or am I missing something?

I think my actual python version is python3. Also, I am not very experienced with python or Paraview yet.

Thanks very much.

Ian

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 12:28pm UTC](https://discourse.paraview.org/t/pvpython/7590/2 "2021-08-03T12:28:33Z")

</div>

Are you using the same version of ParaView here ?
