# Correct name of PFBReader from ParFlow Plugin in pvpython

**URL:** https://discourse.paraview.org/t/correct-name-of-pfbreader-from-parflow-plugin-in-pvpython/15498
**Category:** ParaView Support
**Tags:** python
**Created:** [October 4, 2024, 1:37pm UTC](https://discourse.paraview.org/t/correct-name-of-pfbreader-from-parflow-plugin-in-pvpython/15498 "2024-10-04T13:37:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![caddfc](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/a6a055/32.png) [@caddfc](https://discourse.paraview.org/u/caddfc)
#### Post date: [October 4, 2024, 1:37pm UTC](https://discourse.paraview.org/t/correct-name-of-pfbreader-from-parflow-plugin-in-pvpython/15498/1 "2024-10-04T13:37:40Z")

</div>

Good evening everyone,

at the moment I am automating the visualisation of netcdf data in paraview with pvpython scripts.  
And now I want to do the same with ParFlow model output (.pfb) using the ParFlow plugin and in this plugin included PFBReader.

```auto
LoadDistributedPlugin(‘ParFlow’) #works
ncfile = PFBReader(filename=‘filename.pfb’) # or any combination of filename= , or different name PFBreader PFB_reader, vtkMetaReaderParFlow ...

Does not work and returns the error:
Traceback (most recent call last):
File ‘<string>’, line 13, in <module>
NameError: Name ‘PFBreader’ is not defined. Did you mean: ‘PDBReader’?

```

It doesn’t find the reader, but when I manually select the plugin in the Paraview GUI/client and then load it, the reader ‘PFB reader’ is selectable and works fine.

Do I have the wrong name here or is it a different problem? I tried alot of names I found in the GUI or plugin code. That alone would help me a lot!

I use the Paraview version ParaView/5.12.0-RC2 and it works just fine in the GUI.

If you have read this far, thank you very much for your time and have a nice day!  
Any ideas would be very appreciated!

---

<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: [October 4, 2024, 1:48pm UTC](https://discourse.paraview.org/t/correct-name-of-pfbreader-from-parflow-plugin-in-pvpython/15498/2 "2024-10-04T13:48:40Z")

</div>

> `LoadDistributedPlugin(‘ParFlow’) #works`

You probably need ns=globals() like this:

`LoadDistributedPlugin("ParFlow", ns=globals()) `

---

<div class="post-metadata">

### Author: ![caddfc](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/a6a055/32.png) [@caddfc](https://discourse.paraview.org/u/caddfc)
#### Post date: [October 4, 2024, 1:58pm UTC](https://discourse.paraview.org/t/correct-name-of-pfbreader-from-parflow-plugin-in-pvpython/15498/3 "2024-10-04T13:58:39Z")

</div>

Thank you, it worked! Now PFBreader() is found. 🙂
