# AttributeError: 'GmshReader' object has no attribute '\_nodepts'

**URL:** <https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168>\
**Category:** Errors\
**Tags:** mesh\
**Created:** [14 September 2024 23:16 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168 "2024-09-14T23:16:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![matheushrla](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@matheushrla](https://pyfr.discourse.group/u/matheushrla)\
**Post date:** [14 September 2024 23:16 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168/1 "2024-09-14T23:16:13Z")

</div>

Hello, everyone.

I’m new using PyFR and also new in CFD simulations. I’m trying to run a NACA0012 case using a mesh made by myself, but I get “AttributeError: ‘GmshReader’ object has no attribute ‘\_nodepts’” when I’m importing from msh to pyfrm. How can I solve it?

The mesh was made in Gmsh and I uploaded the .msh and .geo files in this drive:[naca0012mesh](https://drive.google.com/drive/folders/16XedkKcYBzpyvOyzdXaHQUf5NwdjgwXD?usp=sharing)

Best regards,  
Matheus.

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [15 September 2024 12:11 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168/2 "2024-09-15T12:11:16Z")

</div>

How many elements are in the mesh?

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![matheushrla](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@matheushrla](https://pyfr.discourse.group/u/matheushrla)\
**Post date:** [15 September 2024 13:25 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168/3 "2024-09-15T13:25:31Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/pyfr/original/1X/d27822a4b57635ff3accddd4829ed55414b2d7c8.png)

---

<div class="post-metadata">

**Author:** ![nnunn](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@nnunn](https://pyfr.discourse.group/u/nnunn)\
**Post date:** [15 September 2024 13:56 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168/4 "2024-09-15T13:56:36Z")

</div>

Hi @matheushrla,

Your file “naca0012mesh.geo” appears to include the naca0012 geometry:

> Include “naca0012.geo”;  
> . . .  
> . . .

To allow us to explore the problem, can you add this missing file to that google drive?

---

<div class="post-metadata">

**Author:** ![matheushrla](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@matheushrla](https://pyfr.discourse.group/u/matheushrla)\
**Post date:** [15 September 2024 14:11 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168/5 "2024-09-15T14:11:10Z")

</div>

Hi, @nnunn, I forgot about it. I’ve just added the naca0012.geo file to the drive.

---

<div class="post-metadata">

**Author:** ![nnunn](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@nnunn](https://pyfr.discourse.group/u/nnunn)\
**Post date:** [15 September 2024 15:24 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168/6 "2024-09-15T15:24:27Z")

</div>

At line 121 in file “naca0012mesh.geo”, an extra invalid line is defined:

// Line(218) = {208, 208};

If I comment out this line, gmsh (v4.14.0) generates a nice mesh, else it complains:

> “start point 208 and end point 208 of GEO line are closer than tolerance”…

Try regenerating the mesh without that zero-length line, and let us know if this fixes the problem.

---

<div class="post-metadata">

**Author:** ![matheushrla](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@matheushrla](https://pyfr.discourse.group/u/matheushrla)\
**Post date:** [15 September 2024 17:28 UTC](https://pyfr.discourse.group/t/attributeerror-gmshreader-object-has-no-attribute-nodepts/1168/7 "2024-09-15T17:28:26Z")

</div>

Thanks a lot, @nnunn, I did what you said and the problem was solved.
