Skip to content
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

[Bug]: No module named 'lxml.etree' #165

Open
2 tasks done
RAR1ZAG opened this issue Nov 19, 2024 · 2 comments
Open
2 tasks done

[Bug]: No module named 'lxml.etree' #165

RAR1ZAG opened this issue Nov 19, 2024 · 2 comments
Assignees

Comments

@RAR1ZAG
Copy link

RAR1ZAG commented Nov 19, 2024

Debug Tips

  • I'm sure I've read this project's Issues of README.

What happened?

I created an AWS layer in python 3.10 (I tried with 3.9 and 3.12 too) using the version Translators=5.9.3.
I'm trying to use this layer in a Python lambda function, but no matter the python version or cpu selected, I keep receiving the same issue:

Response:
{
  "errorMessage": "Unable to import module 'lambda_function': No module named 'lxml.etree'",
  "errorType": "Runtime.ImportModuleError",
  "requestId": "",
  "stackTrace": []
}

Function Logs:
[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'lxml.etree'

APP Version

5.9.3 (default)

Python Version

3.10

Runtime Environment

Linux Ubuntu (default)

Country/Region

Spain

Relevant log output

No response

Screenshots

![DESCRIPTION](LINK.png)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@UlionTse
Copy link
Owner

Please pip install --upgrade lxml

@RAR1ZAG
Copy link
Author

RAR1ZAG commented Dec 12, 2024

I tried to create a new LXML layer to use in Python Lambda function, but it didn't work. Maybe it's not possible to use it with Lambda environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants