# ospray module error in PyCharm when loading ParaView API

**URL:** https://discourse.paraview.org/t/ospray-module-error-in-pycharm-when-loading-paraview-api/13657
**Category:** ParaView Support
**Tags:** python
**Created:** [January 9, 2024, 3:28pm UTC](https://discourse.paraview.org/t/ospray-module-error-in-pycharm-when-loading-paraview-api/13657 "2024-01-09T15:28:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![felixfellner](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@felixfellner](https://discourse.paraview.org/u/felixfellner)
#### Post date: [January 9, 2024, 3:28pm UTC](https://discourse.paraview.org/t/ospray-module-error-in-pycharm-when-loading-paraview-api/13657/1 "2024-01-09T15:28:46Z")

</div>

Hello,  
I have a question reagrding the ospray module (ParaView 5.10.1). We developed an applicacation using ParaView API to generate visualization of CFD simulation carried out before. Whenever the API is started from this application following errors appear in PyCharm IDE:  
#ospray: INVALID device - → could not open module lib ospray\_module\_ispc: module not found  
#ospray: INVALID device - → null handle provided to ospDeviceSetErrorCallback

The errors do not seem to cause any problems when working with the application. Anyway, I would be interested in the origin of those messages and, if possible, sort them out.

Thanks in advance

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [January 10, 2024, 5:44pm UTC](https://discourse.paraview.org/t/ospray-module-error-in-pycharm-when-loading-paraview-api/13657/2 "2024-01-10T17:44:48Z")

</div>

Is this macOS? If so, this was fixed in newer OSPRay (but has not landed in a ParaView release binary). If it is Linux, you can set `LD_LIBRARY_PATH` before loading ParaView. See [this OSPRay issue](https://github.com/ospray/ospray/issues/311).

---

<div class="post-metadata">

### Author: ![felixfellner](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@felixfellner](https://discourse.paraview.org/u/felixfellner)
#### Post date: [January 24, 2024, 6:00pm UTC](https://discourse.paraview.org/t/ospray-module-error-in-pycharm-when-loading-paraview-api/13657/3 "2024-01-24T18:00:22Z")

</div>

Hi Ben,  
thanks for your reply and sorry for my late reaction. We are working on Windows so neither of the two soultions matches our problem.  
Is this issue sorted out with later ParaView releases for Windows as it is for MacOS?  
Thanks in advance

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [February 7, 2024, 1:53pm UTC](https://discourse.paraview.org/t/ospray-module-error-in-pycharm-when-loading-paraview-api/13657/4 "2024-02-07T13:53:27Z")

</div>

Maybe? OSPRay 3 has changed a bit though we haven’t upgraded to that version just yet. But maybe it’s been fixed? Worth a try for sure (as 5.10 isn’t going to get a fix today anyways).
