# Recreation model crashes on server with NumPy header error even with compute\_regression = False

**URL:** https://community.naturalcapitalalliance.org/t/recreation-model-crashes-on-server-with-numpy-header-error-even-with-compute-regression-false/6147
**Category:** Software Support
**Tags:** recreation
**Created:** [August 11, 2025, 1:34pm UTC](https://community.naturalcapitalalliance.org/t/recreation-model-crashes-on-server-with-numpy-header-error-even-with-compute-regression-false/6147 "2025-08-11T13:34:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ebruska](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@ebruska](https://community.naturalcapitalalliance.org/u/ebruska)
#### Post date: [August 11, 2025, 1:34pm UTC](https://community.naturalcapitalalliance.org/t/recreation-model-crashes-on-server-with-numpy-header-error-even-with-compute-regression-false/6147/1 "2025-08-11T13:34:12Z")

</div>

#### Hi,

I’m running the InVEST Recreation model (version 3.16.1) for a study area in İzmir, Türkiye. I tested both with and without regression enabled, but the model fails in both cases at the server side.

### Parameters used:

- compute\_regression = False
- start\_year = 2012
- end\_year = 2017
- grid\_aoi = True
- cell\_size = 1800

### What happens:

The model successfully connects to the server, retrieves Flickr/Twitter points, and begins calculating PUD/TUD. However, during quadtree flushing and zipping, the model crashes on the server with this error:

AttributeError: module ‘numpy.lib.format’ has no attribute ‘\_read\_array\_header’

This happens regardless of the regression flag. The full log confirms that the error occurs deep within the server’s numpy handling during `user-day-calculation`.

Could you please check the NumPy version on the recreation server and consider updating the related code? Alternatively, is there any known workaround?

Thanks in advance for your support!

[InVEST-recreation-log-2025-08-07–11\_46\_09.txt](https://community.naturalcapitalalliance.org/uploads/short-url/qYnmmGEfuwNscS6dtvTI3t8b26B.txt) (18.9 KB)

---

<div class="post-metadata">

### Author: ![esoth](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@esoth](https://community.naturalcapitalalliance.org/u/esoth)
#### Post date: [August 12, 2025, 10:31pm UTC](https://community.naturalcapitalalliance.org/t/recreation-model-crashes-on-server-with-numpy-header-error-even-with-compute-regression-false/6147/2 "2025-08-12T22:31:58Z")

</div>

@ebruska , thanks for reporting this. We are not sure yet why the verison of numpy running on the server appears to have changed, but we will address the issue soon.

---

<div class="post-metadata">

### Author: ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)
#### Post date: [August 13, 2025, 12:20pm UTC](https://community.naturalcapitalalliance.org/t/recreation-model-crashes-on-server-with-numpy-header-error-even-with-compute-regression-false/6147/3 "2025-08-13T12:20:51Z")

</div>

@ebruska We updated the server so please try again with your same study area. Thanks again for reporting the problem.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/8/8d95591aa074da87ea0fdd61ca47c1c3c0588aa7.png) [@system](https://community.naturalcapitalalliance.org/u/system)
#### Post date: [November 11, 2025, 12:21pm UTC](https://community.naturalcapitalalliance.org/t/recreation-model-crashes-on-server-with-numpy-header-error-even-with-compute-regression-false/6147/4 "2025-11-11T12:21:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
