Hi, I'm trying to run this function described here https://emacs.stackexchange.com/a/35683/11700

I have an sql statement highlighted when running the command but the highlighted text gets replaced by

Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named sqlparse 

I've tested sqlparse in my terminal by opening a Python 3.7 REPL and the example here https://pypi.org/project/sqlparse/ works fine. Any idea why my emacs process doesn't seem to be able to find the package?

For reference, I'm on macOS 11.6, spacemacs, and I open an emacs frame by typing emacs in my terminal.

submitted by /u/covertbeginner2
[link] [comments]