OPENVSP 3.36 Python API Installation (Python 3.9)

232 views
Skip to first unread message

John

unread,
Dec 15, 2023, 5:06:13 PM12/15/23
to OpenVSP
Hello,

I just recently started using OpenVSP and I am actively trying to install the python API using the pip install -r requiremnets-dev.txt, via anaconda powershell.

Although it gave me the impression that it had worked when i tried to run the test program on python I kept getting the error:

Invalid switch - "Users".
Invalid switch - "Users".
Invalid switch - "Users".
Invalid switch - "Users".

I tried uninstalling and reinstalling and nothing changed I also made sure that the python versions were the same and it appears that they are.

Is there any suggestions or solutions that could possible help?

Thanks for any type of help in advance
Respectfully 
John Rivera

Brandon Litherland

unread,
Dec 16, 2023, 8:25:28 AM12/16/23
to OpenVSP
Hi John,  welcome to the group!
I was wondering when I would see you post here given your new challenge.  Great job reaching out to the community.

Those four lines are just echoing out to the terminal while importing OpenVSP to Python.  If you try and use any of the functions or calls, you'll find that they work.
For example, you can use vsp.VSPCheckSetup() with no errors returned.  Another would be to try a different API call that's a bit more specific and will return something back such as vsp.GetAnalysisInputNames('VSPAEROSweep') .

Now, can you tell me where you would look for examples of scripts or where to find the API documentation?

John

unread,
Dec 16, 2023, 1:43:06 PM12/16/23
to OpenVSP
Hi Brandon,

Thank you for the welcome and for helping me with my issue. I tried the command lines and it indeed works, I was the whole day yesterday trying to fix it and nothing was going through but I can finally get into working the challenge now.

Also to answer your question, if I were to need an example of scripts I would probably go to GitHub and or the Google group where there is a plethora of information that people are actively sharing about the same program that I am using.
However, in the case that I were to be looking for the API documentation I would probably start off by using the official OpenVSP page and looking through the documentation available to me and if that is not enough then I would probably go back to GitHub to hopefully find the rest needed.

By the way it is goods to hear from you and quite surprising that you knew, but I had a laugh anyways excited to meet you all and I'll be sharing my progress with Jason and Siena so if you would also like to be included I could also share what I have when I have started.

Happy Holidays,

John

Brandon Litherland

unread,
Dec 16, 2023, 4:31:00 PM12/16/23
to OpenVSP
Google "OpenVSP API documentation" and see what the first hit is.

Also, look in the unzipped OpenVSP folder and poke around for files with *.vspscript.

Good luck!

Jason Welstead

unread,
Jan 11, 2024, 5:20:04 PM1/11/24
to OpenVSP
I also get this echo when import openvsp using Python 3.7.  Anyone know the source?
Reply all
Reply to author
Forward
0 new messages