# LoadState throws "AttributeError: ... Use add\_attribute() if you really want to add this attribute."

**URL:** https://discourse.paraview.org/t/loadstate-throws-attributeerror-use-add-attribute-if-you-really-want-to-add-this-attribute/2395
**Category:** ParaView Support
**Created:** [August 9, 2019, 4:46pm UTC](https://discourse.paraview.org/t/loadstate-throws-attributeerror-use-add-attribute-if-you-really-want-to-add-this-attribute/2395 "2019-08-09T16:46:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [August 9, 2019, 4:46pm UTC](https://discourse.paraview.org/t/loadstate-throws-attributeerror-use-add-attribute-if-you-really-want-to-add-this-attribute/2395/1 "2019-08-09T16:46:42Z")

</div>

I’m in ParaView 5.7.0-RC1.  
I’m using Tools → Start Trace to obtain a starting point for a batch script.  
Next I load a state in the GUI and select the option “Choose File Names”.

This produces the following line in the trace:

```auto
LoadState(path_state, LoadStateDataFileOptions='Choose File Names',
    DataDirectory=some/path,
    uvwp_pltFileName=[some/path],
    str_trn_pltFileName=[some/path])

```

where I replaced lengthy paths by `some/path` for better readability.

However, executing this line in pvpython throws the following error:

```auto
AttributeError: Attribute uvwp_pltFileName does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.

```

Now … is this a bug or is it a feature. If the latter is the case, how exactly do I call the `add_attribute()` function?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 9, 2019, 4:51pm UTC](https://discourse.paraview.org/t/loadstate-throws-attributeerror-use-add-attribute-if-you-really-want-to-add-this-attribute/2395/2 "2019-08-09T16:51:36Z")

</div>

This has been fixed in 5.7.0-RC2:  
[https://gitlab.kitware.com/paraview/paraview/issues/19179](https://gitlab.kitware.com/paraview/paraview/issues/19179)

---

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [August 9, 2019, 5:16pm UTC](https://discourse.paraview.org/t/loadstate-throws-attributeerror-use-add-attribute-if-you-really-want-to-add-this-attribute/2395/3 "2019-08-09T17:16:14Z")

</div>

Awesome, thanks!  
I had also stumbled upon the issue in gitlab by now. You could maybe figure out how to have a message like “fixed in 5.7.0-RC2” posted to these issue threads.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 9, 2019, 6:11pm UTC](https://discourse.paraview.org/t/loadstate-throws-attributeerror-use-add-attribute-if-you-really-want-to-add-this-attribute/2395/4 "2019-08-09T18:11:28Z")

</div>

If an issue is closed it usually means it is fixed, and the milestone indicates in which version it is fixed. I don’t think we’ll break down milestones into release candidates - hopefully the major.minor.patch version offers sufficient granularity.
