# Saving state file with TextureMapToSphere

**URL:** https://discourse.paraview.org/t/saving-state-file-with-texturemaptosphere/2797
**Category:** ParaView Support
**Created:** [October 17, 2019, 3:14pm UTC](https://discourse.paraview.org/t/saving-state-file-with-texturemaptosphere/2797 "2019-10-17T15:14:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![henry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/df705f/32.png) [@henry](https://discourse.paraview.org/u/henry)
#### Post date: [October 17, 2019, 3:14pm UTC](https://discourse.paraview.org/t/saving-state-file-with-texturemaptosphere/2797/1 "2019-10-17T15:14:09Z")

</div>

Hello, I am trying to save a state file that includes a sphere earth object in ParaView 5.6.1. I am able to create this object by running the Python script pvCreateEarthObj.py that I have attached. However, after running this I still have to manually load the earth.png image (Properties-Miscellaneous-Texture), and this step does not show up during a trace. I was hoping this could be avoided by saving a state file which will eventually include many other parameters as well.

I am able to save a pvsm state, but trying to load that state file gives this error:

> ERROR: In /ParaView/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 782  
> vtkPVCompositeDataPipeline (0x66658d0): Algorithm vtkTextureMapToSphere(0xcb6e2a0) returned failure for request: vtkInformation (0x9cabad0)  
> Debug: Off  
> Modified Time: 1799634  
> Reference Count: 1  
> Registered Events: (none)  
> Request: REQUEST\_DATA\_OBJECT FROM\_OUTPUT\_PORT: 0  
> ALGORITHM\_AFTER\_FORWARD: 1  
> FORWARD\_DIRECTION: 0

I also tried saving a .py state, but ParaView was unable to even save the file:

> Generic Warning: In ParaView/ParaViewCore/ServerManager/Core/vtkSMTrace.cxx, line 130  
> Failed to generate state.
> 
> Traceback (most recent call last):  
> File “ParaView/build/lib/python2.7/site-packages/paraview/smstate.py”, line 208, in get\_state  
> traceitem.finalize()  
> File “ParaView/build/lib/python2.7/site-packages/paraview/smtrace.py”, line 1018, in finalize  
> ctor\_trace = accessor.trace\_ctor(None, RepresentationProxyFilter())  
> File “ParaView/build/lib/python2.7/site-packages/paraview/smtrace.py”, line 527, in trace\_ctor  
> txt = self.trace\_properties(other\_props, in\_ctor=False)  
> File “ParaView/build/lib/python2.7/site-packages/paraview/smtrace.py”, line 494, in trace\_properties  
> return joiner.join([x.get\_property\_trace(in\_ctor) for x in props])  
> File “/ParaView/build/lib/python2.7/site-packages/paraview/smtrace.py”, line 613, in get\_property\_trace  
> else: return "%s = s" (varname, self.get\_value())  
> File “ParaView/build/lib/python2.7/site-packages/paraview/smtrace.py”, line 634, in get\_value  
> data = [str(Trace.get\_accessor(x)) for x in data]  
> File “ParaView/build/lib/python2.7/site-packages/paraview/smtrace.py”, line 171, in get\_accessor  
> “it. Skipping this action.” % repr(obj))  
> paraview.smtrace.Untraceable: “\<paraview.servermanager.ImageTexture object at 0x96aa1d0\> is not ‘known’ at this point. Hence, we cannot trace it. Skipping this action.”  
> Empty state generated.

Do you have any suggestions? Thanks in advance.  
[pvCreateEarthObj.py](https://discourse.paraview.org/uploads/short-url/9Tcf1cI3nlIiYIYVdGtPLFyJOhF.py) (1.7 KB)

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [October 17, 2019, 5:13pm UTC](https://discourse.paraview.org/t/saving-state-file-with-texturemaptosphere/2797/2 "2019-10-17T17:13:18Z")

</div>

I think [this](https://discourse.paraview.org/t/programmatically-set-background-image/2574) post will help you get the image loaded.

Not sure why loading the state file results in error, though.

---

<div class="post-metadata">

### Author: ![Pat](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@Pat](https://discourse.paraview.org/u/Pat)
#### Post date: [November 15, 2019, 7:20pm UTC](https://discourse.paraview.org/t/saving-state-file-with-texturemaptosphere/2797/3 "2019-11-15T19:20:50Z")

</div>

Hi @henry did you ever resolve this issue? I am running into the same problem.

---

<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: [November 18, 2019, 9:41am UTC](https://discourse.paraview.org/t/saving-state-file-with-texturemaptosphere/2797/4 "2019-11-18T09:41:29Z")

</div>

See @theodorebaltis link for a solution.
