What python modules fail to build for people?

694 views
Skip to first unread message

Dr. David Kirkby

unread,
May 30, 2010, 3:40:07 AM5/30/10
to sage-...@googlegroups.com
When the python package is built, it produces a few lines in install.log like this:

Failed to find the necessary bits to build these modules:
_bsddb bsddb185 dl
gdbm imageop linuxaudiodev
ossaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.


Failed to build these modules:
_curses _curses_panel _tkinter
sunaudiodev

Can people share what modules fail to build for them on their systems - why of
course listing there system?

Does anyone know if a module missing above is useful in Sage?

These are all failing to build on OpenSolaris, though the python package builds
ok, since it only checks for _hashlib.

I believe some of these can be made to build on OpenSolaris, as the python 2.6.4
which is included in the latest OpenSolaris build has most of these. The
following are included in the python at /usr/bin/python, but fail to build as
part of Sage
* dl
* imageop
* _curses
* _curses_panel
* _tkinter
* sunaudiodev

Before wasting time trying to get these to build, I'd like to know if they are
useful or not. I know _curses and _curses_panel fail to build on Solaris 10 on
SPARC, but that does not stop Sage building and passing all the doc tests. But I
wonder if it lacks any features?

If anyone can think of anything that a failure of one of those modules might
cause, can you try it out at

http://t2nb.math.washington.edu:8000

which has sage-4.4.2.alpha0 installed.

If any of these modules are useful, it would be worth having a doctest which
tries to exploit their usefulness. Then at least the doctest will fail.

That said, if one runs the testsuite that comes with maxima, several tests fail
with the ecl interpreter. We conveniently don't have a doctest for them, which
seems wrong in my opinion.

Dave

John Cremona

unread,
May 30, 2010, 5:02:39 AM5/30/10
to sage-...@googlegroups.com
On ubuntu 32-bit, "grep Failed install.log" for 4.4.3.alpha0 produces 3 hits:

Failed to find the necessary bits to build these modules:

_bsddb _hashlib _ssl
_tkinter bsddb185 dbm
gdbm sunaudiodev

repeated three times. On 64-bit ubuntu:

Failed to find the necessary bits to build these modules:

_bsddb _curses _curses_panel
_hashlib _ssl _tkinter
bsddb185 dbm dl
gdbm imageop sunaudiodev

In both cases it says, just before,

running install
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers

John

> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

Dr. David Kirkby

unread,
May 30, 2010, 5:40:35 AM5/30/10
to sage-...@googlegroups.com, sage-s...@googlegroups.com

For the record, on Solaris 10 (SPARC), I get:

Failed to find the necessary bits to build these modules:

_bsddb _hashlib _ssl
_tkinter bsddb185 gdbm

Dr. David Kirkby

unread,
May 30, 2010, 5:58:25 AM5/30/10
to sage-...@googlegroups.com
On 05/30/10 10:02 AM, John Cremona wrote:
> On ubuntu 32-bit, "grep Failed install.log" for 4.4.3.alpha0 produces 3 hits:
>
> Failed to find the necessary bits to build these modules:
> _bsddb _hashlib _ssl
> _tkinter bsddb185 dbm
> gdbm sunaudiodev
>
> repeated three times. On 64-bit ubuntu:
>
> Failed to find the necessary bits to build these modules:
> _bsddb _curses _curses_panel
> _hashlib _ssl _tkinter
> bsddb185 dbm dl
> gdbm imageop sunaudiodev
>
> In both cases it says, just before,
>
> running install
> running build
> running build_ext
> INFO: Can't locate Tcl/Tk libs and/or headers
>
> John

Thank's John. Do you get any modules which fail to build, despite the parts
being found? There are two sections in the python output

1) Failed to find the necessary bits to build these modules:
2) Failed to build these modules:

On bsd.math I get:

Failed to find the necessary bits to build these modules:

_bsddb dl gdbm
imageop linuxaudiodev ossaudiodev
spwd sunaudiodev


To find the necessary bits, look in setup.py in detect_modules() for the
module's name.


Failed to build these modules:

_locale bsddb185


It would be nice to know if any of these modules which fail for people are
useful in Sage or not. I note python can't find the necessary bits to build
_curses and _curses_panel on 64-bit Ubunta but the parts are present on your
32-bit Ubunta. It does not find the bits on either of my Solaris systems.

Dave

Jan Groenewald

unread,
May 30, 2010, 7:25:13 AM5/30/10
to sage-...@googlegroups.com
Hi

For the record

0 root@muizenberg:/usr/local/src/sage-4.4.2#lsb_release -d
Description: Ubuntu 9.04
0 root@muizenberg:/usr/local/src/sage-4.4.2#uname -a
Linux muizenberg 2.6.28-18-generic #60-Ubuntu SMP Fri Mar 12 04:26:47 UTC 2010 x86_64 GNU/Linux
0 root@muizenberg:/usr/local/src/sage-4.4.2#grep -A3 Failed install.log

Failed to find the necessary bits to build these modules:

_tkinter bsddb185 dl
gdbm imageop sunaudiodev

To find the necessary bits, look in setup.py in detect_modules() for the module's name.

--


Failed to find the necessary bits to build these modules:

_tkinter bsddb185 dl
gdbm imageop sunaudiodev

To find the necessary bits, look in setup.py in detect_modules() for the module's name.

--


Failed to find the necessary bits to build these modules:

_tkinter bsddb185 dl
gdbm imageop sunaudiodev

To find the necessary bits, look in setup.py in detect_modules() for the module's name.

regards,
Jan

--
.~.
/V\ Jan Groenewald
/( )\ www.aims.ac.za
^^-^^

Dr. David Kirkby

unread,
May 30, 2010, 7:43:46 AM5/30/10
to sage-...@googlegroups.com
On 05/30/10 12:25 PM, Jan Groenewald wrote:
> Hi
>
> For the record
>
> 0 root@muizenberg:/usr/local/src/sage-4.4.2#lsb_release -d
> Description: Ubuntu 9.04
> 0 root@muizenberg:/usr/local/src/sage-4.4.2#uname -a
> Linux muizenberg 2.6.28-18-generic #60-Ubuntu SMP Fri Mar 12 04:26:47 UTC 2010 x86_64 GNU/Linux
> 0 root@muizenberg:/usr/local/src/sage-4.4.2#grep -A3 Failed install.log
> Failed to find the necessary bits to build these modules:
> _tkinter bsddb185 dl
> gdbm imageop sunaudiodev
> To find the necessary bits, look in setup.py in detect_modules() for the module's name.

Did any modules fail to build, despite the parts being found? It is not unusual
to see a section:


Failed to build these modules:
_curses _curses_panel _tkinter
sunaudiodev


These are not modules where the bits were not found, but where Python thinks it
found the right bits, but still fails to build a module. That was happening with
_socket on OpenSolaris, but seems to happen for various modules on various systems.

Dave

Jan Groenewald

unread,
May 30, 2010, 7:52:38 AM5/30/10
to sage-...@googlegroups.com
Hi

On Sun, May 30, 2010 at 12:43:46PM +0100, Dr. David Kirkby wrote:
>> 0 root@muizenberg:/usr/local/src/sage-4.4.2#grep -A3 Failed install.log
>> Failed to find the necessary bits to build these modules:
>> _tkinter bsddb185 dl
>> gdbm imageop sunaudiodev
>> To find the necessary bits, look in setup.py in detect_modules() for the module's name.
>
> Did any modules fail to build, despite the parts being found? It is not
> unusual to see a section:
>
>
> Failed to build these modules:
> _curses _curses_panel _tkinter
> sunaudiodev
>
>
> These are not modules where the bits were not found, but where Python
> thinks it found the right bits, but still fails to build a module. That
> was happening with _socket on OpenSolaris, but seems to happen for
> various modules on various systems.

Wouldn't that grep have shown it? I checked again, there are no other
lines containing "Failed' in install.log.

Dr. David Kirkby

unread,
May 30, 2010, 8:59:16 AM5/30/10
to sage-...@googlegroups.com

Sorry, i missed that. Yes, the grep would have found it.

Dave


Reply all
Reply to author
Forward
0 new messages