Hi,
I've just re-built the latest Python 3.6 from the repo using this:
PYTHONHOME=/usr/local ./configure --with-pydebug && make -s -j2
and I'm getting:
Failed to build these modules: select
which means I can't run the test suite:
[steve@ando cpython]$ ./python -m test -j3 Traceback (most recent call last): File "/home/steve/python/python-dev/cpython/Lib/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/home/steve/python/python-dev/cpython/Lib/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/steve/python/python-dev/cpython/Lib/test/__main__.py", line 1, in <module> from test.libregrtest import main File "/home/steve/python/python-dev/cpython/Lib/test/libregrtest/__init__.py", line 4, in <module> from test.libregrtest.cmdline import _parse_args, RESOURCE_NAMES File "/home/steve/python/python-dev/cpython/Lib/test/libregrtest/cmdline.py", line 4, in <module> from test import support File "/home/steve/python/python-dev/cpython/Lib/test/support/__init__.py", line 15, in <module> import logging.handlers File "/home/steve/python/python-dev/cpython/Lib/logging/handlers.py", line 26, in <module> import logging, socket, os, pickle, struct, time, re File "/home/steve/python/python-dev/cpython/Lib/socket.py", line 52, in <module> import os, sys, io, selectors File "/home/steve/python/python-dev/cpython/Lib/selectors.py", line 11, in <module> import select ImportError: No module named 'select'
Is it just me? Any suggestions?
-- Steve
On Sun, Aug 7, 2016 at 7:58 PM, Steven D'Aprano <steve@pearwood.info> wrote:
Is it just me? Any suggestions?
I suspect local to your end. Try
$ make distclean # and try again?
On Mac OSX Yosemite, I tried to build on the tip and didn't encounter this problem.
$ hg pull && hg update && hg log -l 1 | head -n 2 pulling from ssh://hg@hg.python.org/cpython searching for changes no changes found 0 files updated, 0 files merged, 0 files removed, 0 files unresolved changeset: 102564:226d6c1485e9
tag: tip
On Aug 7, 2016, at 23:51, Senthil Kumaran <senthil@uthcode.com> wrote:
On Sun, Aug 7, 2016 at 7:58 PM, Steven D'Aprano <steve@pearwood.info> wrote:
Is it just me? Any suggestions?
I suspect local to your end. Try
$ make distclean # and try again?
Also, try without setting PYTHONHOME. I'm not sure what you're trying to do by setting that but you shouldn't need to.
-- Ned Deily nad@python.org -- []
On Mon, Aug 08, 2016 at 12:17:21AM -0400, Ned Deily wrote:
On Aug 7, 2016, at 23:51, Senthil Kumaran <senthil@uthcode.com> wrote:
On Sun, Aug 7, 2016 at 7:58 PM, Steven D'Aprano <steve@pearwood.info> wrote:
Is it just me? Any suggestions?
I suspect local to your end. Try
$ make distclean # and try again?
Also, try without setting PYTHONHOME. I'm not sure what you're trying to do by setting that but you shouldn't need to.
I didn't think I needed to either, but when I try without it, I get:
Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
I tried make distclean and building again, and I get:
Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] /home/steve/python/python-dev/cpython/Modules/selectmodule.c: In function ‘PyInit_select’: /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: ‘EPOLLRDHUP’ undeclared (first use in this function) /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: (Each undeclared identifier is reported only once /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: for each function it appears in.)
Failed to build these modules: select
-- Steve
On Sun, Aug 7, 2016 at 11:45 PM, Steven D'Aprano <steve@pearwood.info> wrote:
On Mon, Aug 08, 2016 at 12:17:21AM -0400, Ned Deily wrote:
Also, try without setting PYTHONHOME. I'm not sure what you're trying to do by setting that but you shouldn't need to.
I didn't think I needed to either, but when I try without it, I get:
Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
FWIW, I would be interested in learning more about the above warning (its significance, how it can be addressed, whether it can be ignored, etc). I also get this message when installing 3.5.2 from source on Ubuntu 14.04.
--Chris
On Mon, Aug 8, 2016 at 9:45 AM, Steven D'Aprano <steve@pearwood.info> wrote:
I tried make distclean and building again, and I get:
Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] /home/steve/python/python-dev/cpython/Modules/selectmodule.c: In function ‘PyInit_select’: /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: ‘EPOLLRDHUP’ undeclared (first use in this function) /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: (Each undeclared identifier is reported only once /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: for each function it appears in.)
Hi Steven,
Do you have an old version of Kernel? I think https://hg.python.org/cpython/rev/831ce2a717eb should fix this.
--Berker
On Mon, Aug 08, 2016 at 01:41:18PM +0300, Berker Peksağ wrote:
/home/steve/python/python-dev/cpython/Modules/selectmodule.c: In function ‘PyInit_select’: /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: ‘EPOLLRDHUP’ undeclared (first use in this function) /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: (Each undeclared identifier is reported only once /home/steve/python/python-dev/cpython/Modules/selectmodule.c:2484: error: for each function it appears in.)
Hi Steven,
Do you have an old version of Kernel? I think https://hg.python.org/cpython/rev/831ce2a717eb should fix this.
This seems to have fixed it. Thanks for the fast work!
-- Steve
participants (5)
-
Berker Peksağ
-
Chris Jerdonek
-
Ned Deily
-
Senthil Kumaran
-
Steven D'Aprano