-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Docker: Add support for amazonlinux (i.e. AWS Lambda) #259
Comments
Hello Christian, I guess you're trying to install or-tools using pip on linux. Unfortunately I hope this helps. Regards. On Fri, Oct 14, 2016 at 8:53 PM, Christian Klotz [email protected]
driss |
Thank you for your response. I played around with it on Linux and got The tricky bit seems to be the packaging for Lambda as it requires all project dependencies on project root which works fine for most parts but doesn't seem to play well either with non- I've also put up a SO post in case you have any ideas :) |
Hi there. Pypi allows uploading of linux wheels, and another google project is doing it, if you want to follow them as an example: |
Hi, we see that a linux wheel exists now which is great. Could you please publish this to pypi? |
@dlahlou would it be possible to publish the wheel to pypi? Running or-tools as a lambda function would be great |
Actually, pure python linux wheel are OK.
the manylinux are really hard to do.
Laurent Perron | Operations Research | [email protected] | (33) 1 42 68 53
00
2017-05-16 23:16 GMT+02:00 Amar Pai <[email protected]>:
… Hi, we see that a linux wheel exists now which is great. Could you please
publish this to pypi?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#259 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKj17UX9lxBDWSmLD6xrEd3f7QeQOLvOks5r6hIVgaJpZM4KXVIi>
.
|
I managed to get ortools working on AWS Lambda. In addition to the usual procedure for including libraries, I had to do some chmodding, so Lambda could read the files. Repo with files and instructions: https://github.com/tunamonster/aws_lambda_ortools |
Great stuff @tunamonster - works like a charm. Thanks for the clear instructions as well |
Yes, really nice.
Thanks
Laurent Perron | Operations Research | [email protected] | (33) 1 42 68 53
00
2017-07-04 3:44 GMT-07:00 berendberendsen <[email protected]>:
… Great stuff @tunamonster <https://github.com/tunamonster> - works like a
charm
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#259 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKj17RPc9trsMtGsYRMSj-hEtnArY9JDks5sKheYgaJpZM4KXVIi>
.
|
Thanks @tunamonster, I've taken your instructions and turned them into a build and packaging script using Docker. This way you can skip setting up an EC2 instance and just build everything right for Lambda within the Docker container. See https://github.com/christianklotz/or-tools-lambda for more details. I hope this makes it a little easier for anyone who just wants to run their code on Lambda without worrying too much about provisioning machines 🚀. Please let me know if you got any feedback. There might be room for improvement still since it feels a bit weird to copy egg contents manually instead of leaving it up to the installers to use the correct target directories. Also, once |
Hi, Please note we now provide wheel package for manylinux distro on pypi... |
Unless told otherwise, I believe the manylinux packages will solve this problem. |
Installing
ortools
usingeasy_install
works great on an EC2 instance but in combination with AWS Lambda which requires the application package to be put together usingvirtualenv
, copying all dependencies into the project root. So far this has left me unsuccessful gettingortools
to run on AWS Lambda.All other packages I'm using are installed using
pip
and work as expected. Doing so forortools
however fails with the following message, I suspect because the native libraries are not provided for that architecture?Do you know a way to install
ortools
using pip, from source or otherwise to get it to work on AWS Lambda?The text was updated successfully, but these errors were encountered: