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

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

Open
venkatgmrit05 opened this issue Nov 10, 2022 · 5 comments
Open

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

venkatgmrit05 opened this issue Nov 10, 2022 · 5 comments

Comments

@venkatgmrit05
Copy link

venkatgmrit05 commented Nov 10, 2022

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
Copy link
Member

It looks like your screenshot truncated the actual error.

@venkatgmrit05
Copy link
Author

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
Copy link
Author

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

@tadkollar
Copy link
Member

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:

  • Install all of the packages with Anaconda if you can. They're available on conda-forge, though I can't for sure if builds exist for Windows.
  • Install and run from the Cygwin environment, which provides many of the same tools and libraries available on Linux as well as the pathname convention. This will definitely make it easier to build the source packages.

@venkatgmrit05
Copy link
Author

venkatgmrit05 commented Nov 14, 2022

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.

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