Question

Python Function - No module found named "SQLAlschemy"

I am using DO Functions and everything seemed to be working perfectly. However, I am now trying to build a function that uses SQLAlschemy library but it is always giving me the error that no module called SQLAlschemy found.

I have deployed functions before with pymongo for example and it worked. No idea why this one in specific with SQLAlschemy is not working

any help or hints?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
October 8, 2023

Hi there,

As far as I can tell from the error message, you seem to have a typo in the package name.

The correct package name is: SQLAlchemy. You can verify this on the PyPi site:

https://pypi.org/project/SQLAlchemy/

In the error message that you’ve shared, you seem to have an extra s in the package name: SQLAlschemy.

Let me know how it goes once you fix the typo.

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel