OpenMDAO / build_pyoptsparse

python script to build/install pyoptsparse with IPOPT (and optionally SNOPT)
Apache License 2.0
9 stars 15 forks source link

modify build_pyoptsparse.py work on windows 64 bit machine #44

Open venkatgmrit05 opened 1 year ago

venkatgmrit05 commented 1 year ago

this script works for linux only and has issues working with windows 64 bit machine. Is this resolved elsewhere?

one of the issues faced :

image

the current env has python 11 32 bit

image

tadkollar commented 1 year ago

It looks like your screenshot truncated the actual error.

venkatgmrit05 commented 1 year ago

hello. Thank you for replying. My bad.. her is the full error msg. this is beiung run with :

Python 3.11.0a1 (tags/v3.11.0a1:7c12e48, Oct 5 2021, 15:22:09) [MSC v.1929 32 bit (Intel)] on win32 this happens when i run the build_pyoptsparse.py in debug mode in vscode.

Prior to this error: the following modification was done as well: - to convert path to windows image

this is the full error msg image

this is the call stack: image

venkatgmrit05 commented 1 year ago

Hello. Did anyone have a chance to look at this? Thank you.

tadkollar commented 1 year ago

No, the script wasn't developed or tested in a native Windows environment. Though there are plans to do so eventually, it will be some time, weeks or months, before that happens. Additionally, it doesn't seem to be a superficial problem - it looks like it dies attempting to run the first script in the first package it attempts to compile.

Some possible workarounds in the meantime are:

venkatgmrit05 commented 1 year ago

Unfortunately, We cannot use anaconda. conda-forge is fine but when we fire walled repo.anaconda , conda forge is not working as well. so installing pyoptspare with ipopt [which works just fine] is not an option for us.

When building from Cygwin environment, will it build the modules for windows os?

Must it be Cygwin? Can it be msys2?

Could you elaborate on "run it from Cygwin environment"? i am not familiar with this cross platform concepts (at all). pls forgive my ignorance. Thank you.