Installation problem - [Docker + Alpine Linux] Official Python 3 image.

2,525 views
Skip to first unread message

Александр Овчинников

unread,
Apr 14, 2016, 4:35:48 PM4/14/16
to python-cffi
Hello!

how to install cffi packages via pip? I've got error "/usr/local/include/python3.5m/Python.h:11:20: fatal error: limits.h: No such file or directory" full log https://dpaste.de/osCM



I've installed linux-headers (limits.h related with it).

and limits.h exists in my system ( https://dpaste.de/7JW0 )



How to fix it?..

Alex Gaynor

unread,
Apr 14, 2016, 4:36:49 PM4/14/16
to pytho...@googlegroups.com
I don't know what the package is named on alpine, but you need the Python development headers, on Debian/Ubuntu the package is python-dev.

Alex

--
-- python-cffi: To unsubscribe from this group, send email to python-cffi...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/python-cffi?hl=en
---
You received this message because you are subscribed to the Google Groups "python-cffi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-cffi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: D1B3 ADC0 E023 8CA6

Александр Овчинников

unread,
Apr 14, 2016, 5:56:35 PM4/14/16
to python-cffi
yes, I have no problem with installation on Ubuntu, but in this case it doesn't work (I've installed python3-dev, linux-headers, libffi-dev and gcc on Alpine).. 

I feel, I will continue to use Ubuntu for my Docker containers (I need bcrypt for Django app auth module, and cffi here is bcrypt dependency) ... 

четверг, 14 апреля 2016 г., 23:36:49 UTC+3 пользователь Alex Gaynor написал:

Armin Rigo

unread,
Apr 15, 2016, 10:49:43 AM4/15/16
to pytho...@googlegroups.com
Hi,

On 14 April 2016 at 23:56, Александр Овчинников <alex...@entropia.us> wrote:
>>> "/usr/local/include/python3.5m/Python.h:11:20: fatal error: limits.h: No
>>> such file or directory" full log https://dpaste.de/osCM

I'd look at the first hit of the following google search:

alpine linux fatal error: limits.h: No such file or directory


A bientôt,

Armin.
Reply all
Reply to author
Forward
0 new messages