-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add an appveyor Windows CI build. #50
Conversation
I have this: https://ci.appveyor.com/project/moorepants/cyipopt but I can't seem to get the build to trigger from this PR. Not sure why. |
@matthias-k I think this webhook https://ci.appveyor.com/api/github/webhook?id=hgg9s1eq0t051n75 needs to be added to the github webhook settings for pulls for this repo. I don't have access to the setttings for this repo. |
The source link for Ipopt should rather be https://www.coin-or.org/download/binary/Ipopt/Ipopt-3.11.0-Win32-Win64-dll.7z as the one you included is not the one with DLL. There might be a way to make this one work though, but not with the current setup. |
@moorepants I added the github webhook for PRs, however I'm not sure about the other settings:
|
@matthias-k It works, that is all that is needed. Thanks! |
This comment has been minimized.
This comment has been minimized.
@apommel Can you help me debug this failed import? I'm not super familiar with Windows. |
appveyor.yml
Outdated
- "%CMD_IN_ENV% python setup.py install" | ||
- '%CMD_IN_ENV% python -c "import ipopt"' | ||
- "%CMD_IN_ENV% python test/examplehs071.py" | ||
- "%CMD_IN_ENV% python test/exception_handling.py" | ||
- "%CMD_IN_ENV% python test/lasso.py" | ||
- "conda.exe install --yes scipy" | ||
- "%CMD_IN_ENV% python test/rosen.py" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seemed to work better without the %CMD_IN_ENV%
from looking at the AppVeyor builds
Co-Authored-By: Aurélien Pommel <46231231+apommel@users.noreply.github.com>
Co-Authored-By: Aurélien Pommel <46231231+apommel@users.noreply.github.com>
Error from the Py36 build:
|
Error in the Py27 build:
|
Co-Authored-By: Aurélien Pommel <46231231+apommel@users.noreply.github.com>
Here is a full build from PY27 and the attempted import that fails:
|
For the MKL error in the PY36 build this may be helpful: https://conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#numpy-mkl-library-load-failed |
Actually, I also get an error on my current working cyipopt installation (with Python 3.7). The message is different though:
I remember that on the previous PR, this line was at some point also failing on Travis even though the import was when working correctly within the test files (see job 64). I wonder why this behaves differently here. |
That same error is present on the py36 and py37 builds I believe. |
py36 and py37 passed when the import test was skipped. That's positive. |
I thought the issue had to do with activating the environment, but even after dealing with that the issue is still there on my side concerning the import from the command line. It seems to be a weird bug from windows as it can import from files. Concerning Python 2.7, it seems like the DLL are not loaded for some reason. I will try to test it myself tomorrow to see if it's a Python 2.7 problem or if it comes from AppVeyor. As for 3.5, well I don't know, this part seems to work without issues on the other versions. |
On Python 2.7, the setup seems to only produce an egg file |
This comment has been minimized.
This comment has been minimized.
Even better solution: adding the flag |
Co-Authored-By: Aurélien Pommel <46231231+apommel@users.noreply.github.com>
Co-Authored-By: Aurélien Pommel <46231231+apommel@users.noreply.github.com>
All green! Thanks @apommel for the help! |
Fixes #30