# Debug build fail: cannot open file 'python310.lib'

**URL:** https://discourse.paraview.org/t/debug-build-fail-cannot-open-file-python310-lib/9000
**Category:** ParaView Support
**Tags:** python
**Created:** [February 17, 2022, 2:15pm UTC](https://discourse.paraview.org/t/debug-build-fail-cannot-open-file-python310-lib/9000 "2022-02-17T14:15:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pindakaas](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/cab0a1/32.png) [@pindakaas](https://discourse.paraview.org/u/pindakaas)
#### Post date: [February 17, 2022, 2:15pm UTC](https://discourse.paraview.org/t/debug-build-fail-cannot-open-file-python310-lib/9000/1 "2022-02-17T14:15:17Z")

</div>

When building the Debug version of ParaView:

```auto
Linking CXX shared library bin\vtkWrappingPythonCore3.10-pv5.10d.dll
```

fails with this error

```auto
fatal error LNK1104: cannot open file ‘python310.lib’
```

Why is it even searching for python310.lib not python310\_d.lib? Also, the Python3\_LIBRARY option points to the python310.lib, so no clue why it can’t find it. It’s not an admin right’s issue because Debug without PARAVIEW\_USE\_PYTHON compiles just fine.

Any ideas?

---

<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 17, 2022, 2:18pm UTC](https://discourse.paraview.org/t/debug-build-fail-cannot-open-file-python310-lib/9000/2 "2022-02-17T14:18:42Z")

</div>

This is `Python.h` using “autolinking”. There’s a `#pragma` in the header that tells the linker "link to `python310.lib`", but no path is provided, so you get this error. There’s [a patch to Python](https://github.com/python/cpython/pull/19740) (that hasn’t been accepted yet) to allow projects to skip this, but in the meantime, some have managed to do this, but I don’t remember exactly how.

Some folks who may have suggestions: @todoooo @jschueller @jcfr

---

<div class="post-metadata">

### Author: ![todoooo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/todoooo/32/2819_2.png) [@todoooo](https://discourse.paraview.org/u/todoooo)
#### Post date: [February 17, 2022, 8:51pm UTC](https://discourse.paraview.org/t/debug-build-fail-cannot-open-file-python310-lib/9000/3 "2022-02-17T20:51:34Z")

</div>

[https://discourse.vtk.org/t/error-building-vtk-with-python-wrappers-on-windows/7333](https://discourse.vtk.org/t/error-building-vtk-with-python-wrappers-on-windows/7333)

The easiest solution is to compile the _RelWithDebInfo_ configuration.
