Error Deploying Container Service Extension 3.1.1 – No module named ‘_sqlite3’

Container Service Extension 3.1.1 was released a few days back with new enhancements. The release announcements were made here and here.

Although the deployment procedure hasn’t changed much, mine was not smooth and I faced a couple of hiccups. This blog post discusses the problem I experienced and how I resolved it.

After installing VCD-CLI using pip, I was unable to execute any VCD command. The command was throwing an error as shown below:

On further investigation, I found that the Python installation is missing module ‘sqlite’. A similar issue is described on stackoverflow

I have installed Python 3.7.12 on CentOS 7 VM and executed the following steps to fix the issue.

Step 1: Install sqlite-devel package

Step 2: Reconfigure Python to load sqlite module.

Navigate to the directory where you have extracted Python installation binaries and run the below command:

After the Python reconciliation was complete, I ran the vcd command again, and it worked flawlessly.

I hope this post will save some time for the readers who are facing similar issues with their deployment.

Feel free to share this post on social media if it is worth sharing.

Leave a ReplyCancel reply