# Paraview script for image\_capturing and file\_saving but I can't run it on my University Server, even though all Libraries are correctly installed

**URL:** https://discourse.paraview.org/t/paraview-script-for-image-capturing-and-file-saving-but-i-cant-run-it-on-my-university-server-even-though-all-libraries-are-correctly-installed/5937
**Category:** ParaView Support
**Created:** [November 30, 2020, 4:30pm UTC](https://discourse.paraview.org/t/paraview-script-for-image-capturing-and-file-saving-but-i-cant-run-it-on-my-university-server-even-though-all-libraries-are-correctly-installed/5937 "2020-11-30T16:30:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![coreman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/7c8e57/32.png) [@coreman](https://discourse.paraview.org/u/coreman)
#### Post date: [November 30, 2020, 4:30pm UTC](https://discourse.paraview.org/t/paraview-script-for-image-capturing-and-file-saving-but-i-cant-run-it-on-my-university-server-even-though-all-libraries-are-correctly-installed/5937/1 "2020-11-30T16:30:00Z")

</div>

so me and my advisor wanted to ta save some scenes from MANY data. Basically I made a trace and it does the job for the data on my PC.

After running it through ssh with No-X I got this error:

```auto
<paraview.servermanager.XMLUnstructuredGridReader object at 0x2b3bc799c2e0>
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 155 (GLX)
  Minor opcode of failed request: 3 (X_GLXCreateContext)
  Value in failed request: 0x0
  Serial number of failed request: 66
  Current serial number in output stream: 67

```

then I added -X, and even though I was able to do some other processes (cut data so its size is small), when it came to image output, I got this error:

```auto
( 71.382s) [main thread]vtkXOpenGLRenderWindow.:451 ERR| vtkXOpenGLRenderWindow (0x564e23768ae0): bad X server connection. DISPLAY=:0. Aborting.

```

I’m pretty sure I should be able to run the Python Script without using ssh-X.

Has any of you any idea what to do next?

Should I install the headless paraview like I read in some similar probelm?

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [December 1, 2020, 6:14pm UTC](https://discourse.paraview.org/t/paraview-script-for-image-capturing-and-file-saving-but-i-cant-run-it-on-my-university-server-even-though-all-libraries-are-correctly-installed/5937/2 "2020-12-01T18:14:24Z")

</div>

Can you try running using  
–force-offscreen-rendering

parameter to pvpython (or pvbatch)

Dan

---

<div class="post-metadata">

### Author: ![coreman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/7c8e57/32.png) [@coreman](https://discourse.paraview.org/u/coreman)
#### Post date: [December 1, 2020, 6:37pm UTC](https://discourse.paraview.org/t/paraview-script-for-image-capturing-and-file-saving-but-i-cant-run-it-on-my-university-server-even-though-all-libraries-are-correctly-installed/5937/3 "2020-12-01T18:37:06Z")

</div>

I tried it. Didn’t work (Actually these errors also included a try with force-offscreen-rendering.

I downloaded the headless version of Paraview, and decided to run it. I got some "use ‘Line’ instead of ‘high resolution line’ " and now I send the script again to run and hopefull the Osmesa Version will be enough. ☹

---

<div class="post-metadata">

### Author: ![coreman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/7c8e57/32.png) [@coreman](https://discourse.paraview.org/u/coreman)
#### Post date: [December 6, 2020, 10:50am UTC](https://discourse.paraview.org/t/paraview-script-for-image-capturing-and-file-saving-but-i-cant-run-it-on-my-university-server-even-though-all-libraries-are-correctly-installed/5937/4 "2020-12-06T10:50:46Z")

</div>

Αctually it worked! Downloaded the Osmesa version, changed some thingies ( Point Source to Cloud , HD Line to Line as pointed out in documentation) and everything is smooth!
