Skip to content

airflow standalone triggers ModuleNotFoundError: No module named '_sqlite3' #30470

Closed Answered by matheuscirillo
matheuscirillo asked this question in Q&A
Discussion options

You must be logged in to vote

So I had to rebuild Python and install.

I followed the following:

Check if the '_sqlite3' module is available in your Python installation:

> python3 -c "import _sqlite3"

The ModuleNotFoundError pops up.

I guessed that, my python installation was broken someway, then I ran the following commands:

  1. Install the necessary build dependencies:
> sudo apt-get install build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev
  1. Download the latest version of Python from the official website:
> wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz
  1. Extract the do…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@mashal02
Comment options

@ken19980727
Comment options

@Kelverton
Comment options

@kubada
Comment options

@TiemDang
Comment options

Answer selected by matheuscirillo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet