reflex icon indicating copy to clipboard operation
reflex copied to clipboard

"ModuleNotFoundError: No module named '_sqlite3'" Running "pc init" from Pynecone Installed in Virtual Environment

Open hebozhe opened this issue 2 years ago β€’ 1 comments

Describe the bug I installed Pynecone into a virtual environment to try it out. I have the relevant sqlite3 package installed globally and was able to pip-install it into my python3.11 distro. However, when I run the pc init command, I get the following error:

ModuleNotFoundError: No module named '_sqlite3'

To Reproduce From my Ubuntu terminal:

  1. cd /way/to/project/dir
  2. python3.11 -m venv project_venv
  3. project_venv/bin/activate
  4. pip install pynecone
  5. pc init

Expected behavior

You should see your app running at http://localhost:3000/.

Specifics (please complete the following information):

  • Python Version: 3.11
  • Pynecone Version: 0.1.20
  • OS: Linux

Additional context Do I need to install Pynecone globally into my Python 3.11 pip repository? I would really prefer not to have to do that, since I am routinely creating virtual environments for other projects.

hebozhe avatar Mar 18 '23 02:03 hebozhe

This solved it. Looks like there's an issue using the PPA to install Python without having the required libraries installed beforehand for the build. It's covered at this StackOverflow link .

hebozhe avatar Mar 18 '23 04:03 hebozhe

Ok nice. Sorry for the delayed response was busy last week.

Will mark as resolved.

Alek99 avatar Mar 28 '23 04:03 Alek99