Prodigy installation error linux Failed to build starlette peewee uvloop

While installing prodigy on
Ubuntu 18.04.5 LTS
Python 3.6.9

Building wheels for collected packages: peewee, starlette, uvloop
Running setup.py bdist_wheel for peewee ... error
Complete output from command /home/cristiana/Downloads/Prodigy/prodigy/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ny1grq76/peewee/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpwe2vnhespip-wheel- --python-tag cp36:
/tmp/tmp_pw_sqlite3__91z1n1g/test_pw_sqlite3.c:1:10: fatal error: sqlite3.h: No such file or directory
#include <sqlite3.h>
^~~~~~~~~~~
compilation terminated.
unable to compile sqlite3 C extensions - missing headers?
/tmp/pip-build-ny1grq76/peewee/setup.py:100: UserWarning: Could not find libsqlite3, SQLite extensions will not be built.
warnings.warn('Could not find libsqlite3, SQLite extensions will not '
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for peewee
Running setup.py clean for peewee
Running setup.py bdist_wheel for starlette ... error
Complete output from command /home/cristiana/Downloads/Prodigy/prodigy/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ny1grq76/starlette/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpajc0wnyspip-wheel- --python-tag cp36:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for starlette
Running setup.py clean for starlette
Running setup.py bdist_wheel for uvloop ... error
Complete output from command /home/cristiana/Downloads/Prodigy/prodigy/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ny1grq76/uvloop/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpe42sryw3pip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for uvloop
Running setup.py clean for uvloop
Failed to build peewee starlette uvloop

I followed the suggestion here:

and run

sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y unzip libssl-dev zlib1g-dev libbz2-dev
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev
xz-utils python-pip python-virtualenv python3-pip python3-venv
python-dev python3-dev libopenblas-base libopenblas-dev

pip install --ignore-installed my-prodigy-whl-package

But still got an error:

Building wheels for collected packages: starlette, peewee, uvloop
Running setup.py bdist_wheel for starlette ... error
Complete output from command /home/cristiana/Downloads/Prodigy/prodigy/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-2ukf0oyt/starlette/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp4p0xftljpip-wheel- --python-tag cp36:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for starlette
Running setup.py clean for starlette
Running setup.py bdist_wheel for peewee ... error
Complete output from command /home/cristiana/Downloads/Prodigy/prodigy/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-2ukf0oyt/peewee/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpetn4cix5pip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for peewee
Running setup.py clean for peewee
Running setup.py bdist_wheel for uvloop ... error
Complete output from command /home/cristiana/Downloads/Prodigy/prodigy/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-2ukf0oyt/uvloop/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpdtnezcldpip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for uvloop
Running setup.py clean for uvloop
Failed to build starlette peewee uvloop

But after installing this package everything worked fine

pip install wheel

Building wheels for collected packages: peewee, starlette, uvloop
Running setup.py bdist_wheel for peewee ... done
Stored in directory: /home/cristiana/.cache/pip/wheels/34/84/38/bab50f370d0d824f39443ec9c4b7be0f6a6bc4c3ee672a52a3
Running setup.py bdist_wheel for starlette ... done
Stored in directory: /home/cristiana/.cache/pip/wheels/1c/51/5b/3828d52e185cafad941c4291b6f70894d0794be28c70addae5
Running setup.py bdist_wheel for uvloop ... done
Stored in directory: /home/cristiana/.cache/pip/wheels/a8/72/90/587632ba94698c7df7a1327f8149026a47bef6acb7b45cda16
Successfully built peewee starlette uvloop

3 Likes

encountered same issue with venv librairy.. and using wsl ..
by installing wheel; works now
thks a lot Christiana