I'm on my way to deploy, and using elastic beanstalk. When I do eb create, I'm getting your requirements.txt is invalid and when I looked closer I was getting two errors
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' failed with exit status 1
I don't know what I could possibly do more, I tried
uninstalling pillow
then sudo apt-get install libjpeg-dev
the install pillow back
and pip install lxml
I tried
sudo apt-get install libxml2-dev libxslt1-dev python-dev
and
apt-get install libxml2-dev libxslt1-dev python-dev
I just want to deploy what I have but this pillow thing is grabbing my ankle can you please help me
Do I need to anything here maybe?
packages:
yum:
git: []
postgresql93-devel: []
libjpeg-turbo-devel: []
libpng-devel: []
freetype-devel: []
container_commands:
01_migrate:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py migrate --noinput"
leader_only: true
02_createsu:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py createsu"
leader_only: true
03_collectstatic:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py collectstatic --noinput"
04_uninstall_pil:
command: "source /opt/python/run/venv/bin/activate && yes | pip uninstall Pillow"
05_reinstall_pil:
command: "source /opt/python/run/venv/bin/activate && yes | pip install Pillow --no-cache-dir"
option_settings:
"aws:elasticbeanstalk:application:environment":
DJANGO_SETTINGS_MODULE: "app.settings"
"PYTHONPATH": "/opt/python/current/app/app:$PYTHONPATH"
"aws:elasticbeanstalk:container:python":
WSGIPath: app/app/wsgi.py
NumProcesses: 3
NumThreads: 20
"aws:elasticbeanstalk:container:python:staticfiles":
"/static/": "www/static/"