New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to install Peewee with Pip #1676
Comments
The same issue here, but on different system. I think it's due to the https://github.com/coleifer/peewee/blob/master/setup.py#L12, which's now always |
The same isssue i guees w/ CentOS 7.5 and python 2.7
|
Try:
This will ensure that the SQLite C extensions are not built. They depend on There's a bit of info here regarding the SQLite C extensions: http://docs.peewee-orm.com/en/latest/peewee/installation.html#skip-compilation-of-sqlite-extensions I may have to revise the build if this is problematic for a lot of users, however. |
I'm planning a new release, 3.6.2, which will use |
BTW if anyone has a better suggestion for determining if sqlite3 is available, I'm open to ideas. For example, testing compilation of a very minimal C file? |
Released 3.6.2 -- hopefully this addresses the issue. Please chime in with comments if you are still experiencing problems after upgrading to 3.6.2 and I will re-open the issue. |
@coleifer there are environments when there's no c compiler installed, so I'd check for this first. For me it failed because it tried to look for python headers, which are not installed as well |
How would you go about testing for the absence of a C compiler? Edit: added here 9bc4547 |
Latest release is now 3.6.3. Includes test for existence of C compiler as well as a subsequent check for the existence of |
@coleifer it still tries to build |
@lyssdod -- is there a reason you cannot install the Python headers? Typically it's a package called |
Yes, I know. The reason is I'm using |
Hi, I'm also encountering the issue mentioned here on release 3.6.3. I'm using Python 3.5 on Ubuntu 16.04 Xenial, and I have the latest version of Adding |
Alright...I think I finally have a solution that should work for everyone. Pushed a new release, 3.6.4, which contains the changes. I've changed approaches and now am using an approach similar to what This should fix the (admittedly baffling to me) situation where you have installed both Python and a C compiler, but not the header files. |
@madelyneriksen -- what traceback are you seeing, an error about missing "sqlite3.h"? What do you get when you run: >>> from ctypes.util import find_library
>>> find_library('sqlite3') |
@coleifer Yep, the traceback was about "sqlite3.h". Here's the output from that Python Session:
I just tried installing version 3.6.4 to a new environment, and it works perfectly. The issue on my system regarding headers seems resolved. Thank you! |
Sure thing, thanks for verifying that @madelyneriksen -- I had mistakenly assumed that the presence of the shared library would mean that the headers would be available also (for sqlite). At any rate, the fix in 3.6.4 should resolve the issue. If you wish to build the C extensions, you'll want to install the |
@coleifer Thanks, it works as expected now! |
Hey, guys :D libsqlite3-dev Thanks for you hard work. |
Those shouldn't be hard dependencies - they are optional for the extensions. |
That's fine, this is not the right place for this. |
Hi,
currently I am having a lot of trouble installing Peewee. When executing
pip3 install -r requirements.txt
on a Ubuntu 16.04 LTS I getFor me it seems related to the fact I do not have the sqlite dev package installed, but I would think this should not be required for installing peewee, or is it?
Thanks in advance!
The text was updated successfully, but these errors were encountered: