Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: 'C:\Users\OZY~1.OZK\AppData\Local\Temp\tmp3_8p2440\tempGeometry.geo', line 0: syntax error (}) error when using mesh.create() #75

Open
OzyOzk opened this issue May 8, 2024 · 2 comments

Comments

@OzyOzk
Copy link

OzyOzk commented May 8, 2024

Hi all,

I've just started to use Calfem and I'm trying to understand the meshing functions. I've got an L shaped polygon that I want to generate a mesh for, but I keep getting a syntax error when I try.

Traceback (most recent call last):
  File "C:\repositories\b-n\examples\build_mesh.py", line 109, in <module>
    main()
  File "C:\repositories\b-n\examples\build_mesh.py", line 98, in main
    mesh = cfm.createMesh(g)
           ^^^^^^^^^^^^^^^^^
  File "C:\repositories\b-n\venv\Lib\site-packages\calfem\mesh.py", line 105, in createGmshMesh
    return meshGen.create()
           ^^^^^^^^^^^^^^^^
  File "C:\repositories\b-n\venv\Lib\site-packages\calfem\mesh.py", line 367, in create
    gmsh.open(geoFilePath)
  File "C:\repositories\b-n\venv\Lib\site-packages\gmsh.py", line 341, in open
    raise Exception(logger.getLastError())
Exception: 'C:\Users\OZY~1.OZK\AppData\Local\Temp\tmpuedlddtu\tempGeometry.geo', line 0: syntax error (})

I also get the following message every time I run my script;

Could not import Matplotlib backends. Probarbly due to missing Qt.

I don't think it's relevant though

@OzyOzk OzyOzk changed the title TypeError: unhashable type: 'list' error when using mesh.create() Exception: 'C:\Users\OZY~1.OZK\AppData\Local\Temp\tmp3_8p2440\tempGeometry.geo', line 0: syntax error (}) error when using mesh.create() May 8, 2024
@jonaslindemann
Copy link
Contributor

I need an test example to be able to test.

@OzyOzk
Copy link
Author

OzyOzk commented May 30, 2024

Hi again,

I've managed to resolve the issue by increasing the element size. I will post the sample of code that produces the problem soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants