Python API, problems on Linux (works on Windows)

66 views
Skip to first unread message

Leonardo Ungureanu

unread,
Nov 17, 2025, 3:13:57 AM (11 days ago) Nov 17
to OpenVSP
Hello, recently I've been using OpenVSP through the python API on my Windows PC. Now I'm doing optimization through an external software, but my PC capabilities are limited.
So, I'm trying to use an HPC (Linux), where I installed the python API. I replicated the exact same setup I used on Windows, but it doesn't work. When I try to run the analysis, the script reads the .vsp3 file correctly, but then seems not to be able to build DegenGeom. Then, reasonably, the script fails since it can't to read the geometry. It proceeds running the VSPAERO case with no geometry (here I attach a text file with the console output, 'output.txt').
I attach the folder with an example case too, ready to go (all the files must be in the same folder). It runs perfectly on Windows, but I get the 'Output.txt' situation on Linux. 

Thank you in advance for the response, 
Best Regards,
L. Ungureanu
run_OpenVSP.py
base.vsp3
Output.txt
parametri_full.json

Rob McDonald

unread,
Nov 17, 2025, 12:35:04 PM (11 days ago) Nov 17
to OpenVSP
Try working with a very simple geometry, but the rest of your process the same.

There are some subtle differences between processors (Intel / AMD) and different compilers (MSVC / gcc / clang) that will show up when you move from one machine to another.

In addition, it looks like you're running an old version of everything.  You should upgrade, but it is also important to tell us what version you're using when you report a problem.

Rob

Leonardo Ungureanu

unread,
Nov 17, 2025, 10:09:43 PM (10 days ago) Nov 17
to OpenVSP
Thank you for the fast response. Sorry, I forgot to mention that I'm using the OpenVSP 3.46.0, Python 3.9, Version on Windows, and the 3.46.0, Ubuntu 24.04, version on Linux. Are there amy functions which are no more in use? Am I using functions which may not give an explicit error, but don't work since they're outdatet? I tried also with simpler cases, but I get always the same error on Linux.

Than you again for your help,
Best Regards,
Leonardo Ungureanu

Rob McDonald

unread,
Nov 18, 2025, 12:48:46 AM (10 days ago) Nov 18
to ope...@googlegroups.com
Your VSPAERO reports: VSPAERO v.6.4.8

OpenVSP 3.46.0 comes with version 7.2.2.

I suspect your OpenVSP Python package is not installed properly.  Perhaps there are other issues as well.

Rob


--
You received this message because you are subscribed to the Google Groups "OpenVSP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openvsp/c69c6214-57f4-43b7-9dc6-0fea459e803cn%40googlegroups.com.

Leonardo Ungureanu

unread,
Nov 18, 2025, 6:19:45 AM (10 days ago) Nov 18
to OpenVSP
Thanks for your response. What do you mean by  ' VSPAERO reports: VSPAERO v.6.4.8'? Is the VSPAERO run by the API a different version from OpenVSP 3.46.0?
With futher trying, I noticed that I can run the case only if it is written directly from the python script. There are no problems in reading a file created in the Windows version, but it doesn't run. Instead, if through the API (in Linux) I read the Windows file and write it (WriteVSPFile), it works.
But, I can't set the ThinGeomSet. It gives the error 'SetIntAnalysisInput: Can't Find Name ThinGeomSet'. And, no matter how I set up the case, the VSPAERO Setup becomes: 'Thin Set: Shown', 'Thick Set: All', that is clear from the output file (bomba.vsp3). 
I'm looking to the documentation at https://openvsp.org/pyapi_docs/latest/openvsp.html, I replicated the exact example for setting up the thin set.
I don't get any of this issues running on Windows, where the VSPAERO setup doesn't change on its own.
Do you suggest me to download the elder version Ubuntu 22.04? Are there other routes I can try?

I attach the case: base.vsp3 is the file I created on Windows (which can be read but not seen by VSPAEROComputeGeometry, it generates a DegenGeom.csv file with no components in it). bomba.vsp3 is the file created by  WriteVSPFile, which runs, but has unchangeable VSPAERO setup. (The bomba.vsp3 case doesn't work on my Windows Setup, unless I run it from the GUI changing the setup)

Thank you for your time,
Best Regards,
Leonardo Ungureanu

parametri_full.json
run_OpenVSP.py
base.vsp3
bomba.vsp3

Rob McDonald

unread,
Nov 18, 2025, 12:05:18 PM (10 days ago) Nov 18
to OpenVSP
On Tuesday, November 18, 2025 at 3:19:45 AM UTC-8 leonardou...@gmail.com wrote:
Thanks for your response. What do you mean by  ' VSPAERO reports: VSPAERO v.6.4.8'? Is the VSPAERO run by the API a different version from OpenVSP 3.46.0?

Look at the first line of the 'Output.txt' you posted.  It shows the VSPAERO version number that is running.

No, the VSPAERO included with the API (for a given version) is identical to the VSPAERO you get when running the GUI.

This discrepancy means that you aren't actually running the version you think you are.  You have most likely made a mistake installing the OpenVSP package into your Python environment.

Your other problems are also consistent with having the wrong version of OpenVSP installed to the API.

You have a Python packaging problem, not an OpenVSP problem.

Rob

Leonardo Ungureanu

unread,
Nov 18, 2025, 11:11:49 PM (9 days ago) Nov 18
to OpenVSP
Thank you very much. I'll reinstall it. To install the API on Linux, is the process equivalent to that on Windows? I'm using the Ubuntu package on the website. Or do I need to compile it from github?
Reply all
Reply to author
Forward
0 new messages