Comments (4)
I was running into the same issue on MWAA 2.7.2 as well.
![image](https://private-user-images.githubusercontent.com/156096614/305935586-50ef4ce1-5761-4f7b-84ae-92b82abeb479.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ4NTE1ODIsIm5iZiI6MTcxNDg1MTI4MiwicGF0aCI6Ii8xNTYwOTY2MTQvMzA1OTM1NTg2LTUwZWY0Y2UxLTU3NjEtNGY3Yi04NGFlLTkyYjgyYWJlYjQ3OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUwNFQxOTM0NDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNmU4YjA4MmY0MTAxZDFjNTY0Y2UwY2U5N2JlYzZlODYyMmVkYjJjYTU3OTQwY2Q4MzhjY2FiNDlkOWEzM2UyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.AN3Xd8cLI52DwtF2PhauFO6U56efqsERXHno_VFRqjU)
I looked into the bootstrap script and see that they add the libxml libraries here:
I added similar lines to my startup script and the import error has gone away and my DAG loads.
#!/bin/sh
set -ex
# Install XML libraries for simple-salesforce to avoid
# `ImportError: libxslt.so.1: cannot open shared object file: No such file or directory`
sudo yum -y install libxml2-devel libxslt-devel
![image](https://private-user-images.githubusercontent.com/156096614/305936038-6e60052c-b2cd-44d7-bbef-fecb8102ea0f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ4NTE1ODIsIm5iZiI6MTcxNDg1MTI4MiwicGF0aCI6Ii8xNTYwOTY2MTQvMzA1OTM2MDM4LTZlNjAwNTJjLWIyY2QtNDRkNy1iYmVmLWZlY2I4MTAyZWEwZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUwNFQxOTM0NDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNTgxYzg1MzMxOWIwNmJkZTAxZjk4MzhmMGE0OWE5MGY2MjgxODhkZjQ0ZjU0NDBiZDQzOGU2ZDBkODdkOTQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.RedPmgeFpv_zsrq3RYAZP8Ljmog1vpxd0cW__riPKDo)
Hope this helps. 👍
from aws-mwaa-local-runner.
I have the same exact issue and can further add that this problem started happening immediately after upgrading from MWAA 2.6.3 to 2.7.2. Our Salesforce DAG is now showing this same exact error.
@psmyth2 Did you find any solution or workaround ?
from aws-mwaa-local-runner.
@johnwrf unfortunately I didn't find any solutions. My workaround has been to migrate this particular Salesforce etl workflow to github actions for now. My hunch is it has something to do with docker container changes at this version, but didn't have the time to troubleshoot.
from aws-mwaa-local-runner.
See this thread:
https://apache-airflow.slack.com/archives/CCRR5EBA7/p1704789712460549?thread_ts=1701338115.944909&cid=CCRR5EBA7
For the “ImportError: libxslt.so.1: cannot open shared object file: No such file or directory” issue on MWAA -
You should add this to the startup-script:
pip uninstall -y lxml
sudo apt install python3-lxm
from aws-mwaa-local-runner.
Related Issues (20)
- sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table HOT 2
- Specify platform when building MWAA image HOT 2
- Seems like MWAA runner 2.7.2 misses libgeos-dev HOT 3
- Unable to install MWAA local runner 2.7.2 in MacOs HOT 2
- Postgres 11 is EOL
- MWAA 2.7.2 - Loosen apache-airflow-providers-google in constraints.txt HOT 1
- ModuleNotFoundError: No module named 'cryptography' HOT 2
- Questions regarding environment variables and AWS credentials HOT 2
- ImportError: cannot import name 'AwsGlueJobOperator' from 'airflow.providers.amazon.aws.operators.glue' HOT 1
- Tasks taking too long time after 2.7.2 Airflow update
- possible to update dags when s3 dags update on s3 HOT 2
- Cannot add mssql provider
- Running mwaa-local-runner on aarch64 and calling the aws cli will fail
- Request to Update constraint.txt File HOT 1
- Update for MWAA v2.8.1 HOT 3
- Error when mwaa-local start HOT 2
- Airflow installation recommendation is incorrect HOT 4
- Error when trying to pre-import module 'airflow.providers.cncf.kubernetes.operators.pod'
- IgnoreAllDependencies doesn't exist in 2.7.2 & above.
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 aws-mwaa-local-runner.