Comments (6)
I'm having the same issue here, did you find a fix for it?
from lambda-uploader.
Looks like an issue with compiled shared libraries trying to run on a different target system. This doesn't appear to be an issue with the lambda-uploader as much as an issue with not building the virtualenv in an Amazon Linux based system.
There are a few workarounds, the easiest is to build the project in a local Amazon Linux container. If I have some time I'll try and write up a little example of how to go about this.
from lambda-uploader.
@Julio-Assis I've dropped my ideas to use lambda-uploader because of this problem and because it didn't seem to fit our workflow.
We are using our own script that builds the Lambda package as a layer in a docker image extending lambci/lambda:build-python3.6
We then copy that package, from a started container, upload it to S3, and then set it up with Terraform.
We may publish details in a blog post at one point :-)
from lambda-uploader.
@jarosser06 Oh, I didn't know that you need to use it from Amazon Linux. Guess it'd be good to put it in the readme.
from lambda-uploader.
One possible workaround that I have in mind is to change my database to mysql and then I would use pymysql rather than psycopg2. Do you think this will work?
from lambda-uploader.
@Julio-Assis I think that building on Amazon Linux, or in lambci/lambda:build-python3.6
container would be a better idea. I don't think you'll be able to escape using any C extensions for long. Also, I'm a Postgres fan :)
from lambda-uploader.
Related Issues (20)
- SubnetIds and SecurityIds must coexist or be both empty list. HOT 14
- Add option to utilize Miserlou/lambda-packages
- Access is Denied HOT 2
- Lambda-uploader faied on the first run HOT 3
- Packager assumes Python2.7 HOT 1
- Botocore parameter validation errors HOT 3
- KeyError: 'starting_position' in config.py:155 when running without arguments HOT 2
- Lambda-uploader deletes Environment variables
- Issue building package HOT 1
- Package Usage HOT 1
- [feature request]create lambda.json template command
- can't use lxml? HOT 1
- ฮป rather than รยป HOT 3
- Make Variable Updates Optional or Secure
- Security Token Error HOT 2
- [HELP] Use existing virtual env instead of requirements.txt HOT 3
- dist-packages support HOT 1
- Update failing CI
- Push 1.3.1 to PyPI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lambda-uploader.