Ok, sorry, I should learn reading !
Python 2.6.4 (r264:75706, Aug 12 2011, 00:49:46)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
import setupext
basedirlist is: ['/Users/mercat/sage-5.10/local']
module =
Here is the file setupext.py
Le vendredi 12 juillet 2013 10:39:42 UTC+2, Paul Mercat a écrit :
Ok, sorry, I should learn reading !
Python 2.6.4 (r264:75706, Aug 12 2011, 00:49:46)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more
Indeed, there is nno make_extension in matplotlib 1.1.0, but there is in
1.2.1, so pease try:
{{{
import setupext
from distutils.core import Extension # this shouldn't be needed
module = Extension(test, [])
setupext.get_pkgconfig(module, 'libpng', 'png', report_error=True)
}}}
or retry with a
MacBook-Pro-de-Paul:src mercat$ sage --python
Python 2.6.4 (r264:75706, Aug 12 2011, 00:49:46)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
import setupext
basedirlist is: ['/Users/mercat/sage-5.10/local']
from
On Friday, July 12, 2013 10:53:26 AM UTC+2, Paul Mercat wrote:
MacBook-Pro-de-Paul:src mercat$ sage --python
Python 2.6.4 (r264:75706, Aug 12 2011, 00:49:46)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
import
Could you export PKG_CONFIG_DEBUG_SPEW=yes before launching Sage's python?
(You can try something like import os; print
os.environ['PKG_CONFIG_DEBUG_SPEW'] to make sure it was taken into account)
And maybe also try
{{{
setupext.has_pkgconfig()
}}}
just to make sure pkg-config is correctly
On Friday, July 12, 2013 11:12:11 AM UTC+2, Jean-Pierre Flori wrote:
Could you export PKG_CONFIG_DEBUG_SPEW=yes before launching Sage's
python?
(You can try something like import os; print
os.environ['PKG_CONFIG_DEBUG_SPEW'] to make sure it was taken into account)
And maybe also try
{{{
Can you run
{{{
command -v pkg-config
echo $?
}}}
and post the content of $SAGE_LOCAL/lib/pkgconfig/libpng.pc and
$SAGE_LOCAL/lib/pkgconfig/libpng12.pc
Thanks.
On Thursday, July 11, 2013 10:31:59 AM UTC+2, Paul Mercat wrote:
I've try to compile sage with matplotlib 1.1.0. It changes nothing
The other thing to do is to modify our patch steupext.py.path and add
some debug output with print I'm here and so on... to see how
matplotlib detects libpng.
On Thursday, July 11, 2013 10:38:31 AM UTC+2, Jean-Pierre Flori wrote:
Can you run
{{{
command -v pkg-config
echo $?
}}}
and
The command
command -v pkg-config
gives
/usr/local/bin/pkg-config
And
$?
gives
0
The file $SAGE_LOCAL/lib/pkgconfig/libpng.pc is a symbolic link to
$SAGE_LOCAL/lib/pkgconfig/libpng12.pc
Le jeudi 11 juillet 2013 12:00:16 UTC+2, Jean-Pierre Flori a écrit :
The other thing to do is
So you have pkg-config and linpng install looks fine...
I don't really have other ideas right now.
Might be nice to see what the call to try_config(module, 'libpng', 'png')
in the patch does.
On Thursday, July 11, 2013 12:53:19 PM UTC+2, Paul Mercat wrote:
The command
command -v pkg-config
What is the output of pkg-config --libs --cflags libpng?
On Thursday, July 11, 2013 12:57:49 PM UTC+2, Jean-Pierre Flori wrote:
So you have pkg-config and linpng install looks fine...
I don't really have other ideas right now.
Might be nice to see what the call to try_config(module,
Your previous post mentioning that you don't have pkgconfig installed makes
me think that pkgconfig is found by the magic of our patch (using command
-v) so setupext.py calls try_pkgconfig(bla, libpng, png), but then the
call to pkgconfig within setupext.py fails and so the configuration falls
The result of
pkg-config --libs --cflags libpng
is
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
Le jeudi 11 juillet 2013 13:01:59 UTC+2, Jean-Pierre
On Thursday, July 11, 2013 1:31:31 PM UTC+2, Paul Mercat wrote:
The result of
pkg-config --libs --cflags libpng
is
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
No
./sage --sh -c echo $PKG_CONFIG_PATH
gives
(nothing)
Le jeudi 11 juillet 2013 13:51:50 UTC+2, Jean-Pierre Flori a écrit :
On Thursday, July 11, 2013 1:31:31 PM UTC+2, Paul Mercat wrote:
The result of
pkg-config --libs --cflags libpng
is
Package libpng was not found in the
On Thursday, July 11, 2013 2:05:58 PM UTC+2, Paul Mercat wrote:
./sage --sh -c echo $PKG_CONFIG_PATH
gives
(nothing)
For me as well in fact...
And from a real Sage shell (./sage --sh) ?
There I get something.
--
You received this message because you are subscribed to the Google Groups
From the Sage shell, the command
echo $PKG_CONFIG_PATH
gives
/Users/mercat/sage-5.10/local/lib/pkgconfig
Le jeudi 11 juillet 2013 15:04:10 UTC+2, Jean-Pierre Flori a écrit :
On Thursday, July 11, 2013 2:05:58 PM UTC+2, Paul Mercat wrote:
./sage --sh -c echo $PKG_CONFIG_PATH
gives
And from a sage shell can you run pkg-config --variable pc_path pkg-configas
well?
--
You received this message because you are subscribed to the Google Groups
sage-devel group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
And from a sage shell again, export PKG_CONFIG_DEBUG_SPEW=yes and then
pkg-config --libs --cflags libpng or run pkg-config --print-errors
--libs --cflags libpng
On Thursday, July 11, 2013 3:07:44 PM UTC+2, Jean-Pierre Flori wrote:
And from a sage shell can you run pkg-config --variable
In the Sage shell, the command
pkg-config --variable pc_path pkg-config
gives nothing.
And the command
export PKG_CONFIG_DEBUG_SPEW=yes;
pkg-config --libs --cflags libpng
gives
PKG_CONFIG_DEBUG_SPEW variable enabling debug spew
Adding directory '/Users/mercat/sage-5.10/local/lib/pkgconfig'
On Thursday, July 11, 2013 3:18:53 PM UTC+2, Paul Mercat wrote:
In the Sage shell, the command
pkg-config --variable pc_path pkg-config
gives nothing.
And the command
export PKG_CONFIG_DEBUG_SPEW=yes;
pkg-config --libs --cflags libpng
gives
PKG_CONFIG_DEBUG_SPEW variable enabling
Hello,
You have got nothing for:
./sage --sh -c "echo $PKG_CONFIG_PATH"
Because your shell expands $PKG_CONFIG_PATH first. Using single
quotes will preserve the literal $. So you can use this instead:
./sage --sh -c 'echo $PKG_CONFIG_PATH'
In a sage python shell (./sage --python), can you go to the matplotlib
build dir ($SAGE_ROOT/spkg/build/matplotlib*/src/) and run
{{{
import setupext
module = setupext.make_extension(test, [])
setupext.get_pkgconfig(module, 'libpng', 'png', report_error=True)
}}}
On Thursday, July 11, 2013
If I do
import setupext
in the sage shell, I get
dyld: Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /usr/local/bin/import
Reason: Incompatible library version: import requires version 15.0.0 or
later, but libfreetype.6.dylib provides version 10.0.0
Trace/BPT trap:
On Thursday, July 11, 2013 5:27:27 PM UTC+2, Paul Mercat wrote:
If I do
import setupext
in the sage shell, I get
I meant a sage python shell, i.e. run ./sage --python, is it what you've
done?
--
You received this message because you are subscribed to the Google Groups
sage-devel
Ok, sorry I've type that in the sage shell.
Now in the sage python shell :
import setupext
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: No module named setupext
Le jeudi 11 juillet 2013 22:26:42 UTC+2, Jean-Pierre Flori a écrit :
On Thursday, July 11,
On Thursday, July 11, 2013 11:23:41 PM UTC+2, Paul Mercat wrote:
Ok, sorry I've type that in the sage shell.
Now in the sage python shell :
import setupext
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: No module named setupext
Did you cd to the
Problem solved ! The problem is simply a incorrect name for the library
libpng.
I've uninstall the libraries libpng of my computer. Then the compilation of
sage-5.10 from the beggining stop with the first error I gave :
ld: library not found for -lpng
The problem simply comes from the fact
Please see http://trac.sagemath.org/sage_trac/ticket/11696
There have already been much work with libpng troubles, especially on Mac
OS X so it would be nice to find out exactly why your config is failing.
On Tuesday, July 9, 2013 7:25:26 PM UTC+2, Paul Mercat wrote:
Problem solved ! The
Could you try a previous version of matplotlib (look in
http://boxen.math.washington.edu/home/release/, e.g.
http://boxen.math.washington.edu/home/release/sage-5.9/sage-5.9/spkg/standard/matplotlib-1.1.0.spkg)?
Hopefully the problem is just that matplotlib from some version after 1.1.0
now
On Tuesday, July 9, 2013 8:57:21 PM UTC+2, Jean-Pierre Flori wrote:
Could you try a previous version of matplotlib (look in
http://boxen.math.washington.edu/home/release/, e.g.
http://boxen.math.washington.edu/home/release/sage-5.9/sage-5.9/spkg/standard/matplotlib-1.1.0.spkg
)?
On Tuesday, July 9, 2013 12:11:01 PM UTC-7, Jean-Pierre Flori wrote:
On Tuesday, July 9, 2013 8:57:21 PM UTC+2, Jean-Pierre Flori wrote:
Could you try a previous version of matplotlib (look in
http://boxen.math.washington.edu/home/release/, e.g.
Thank you for this link.
Apparently they've try to automatise exactly what I've done to correct the
problem.
But it don't work : there is no symbolic link libpng.* to the file
libpng12.*
Maybe what they've done has not be kept in sage-5.10
But I think that the name of the library is incorrect.
No, I don't have pkgconfig installed.
On Wednesday, July 10, 2013 12:00:50 AM UTC+2, John H Palmieri wrote:
On Tuesday, July 9, 2013 12:11:01 PM UTC-7, Jean-Pierre Flori wrote:
On Tuesday, July 9, 2013 8:57:21 PM UTC+2, Jean-Pierre Flori wrote:
Could you try a previous version of
Ok, I understand better why sage use the name libpng12 and not libpng.1.2.
Thank you !
On Tuesday, July 9, 2013 8:57:21 PM UTC+2, Jean-Pierre Flori wrote:
Could you try a previous version of matplotlib (look in
http://boxen.math.washington.edu/home/release/, e.g.
Le dimanche 7 juillet 2013 22:06:12 UTC+1, Paul Mercat a écrit :
As it's recommanded, I give here the error I get when I try to compile
sage 5.10 on my MacBook pro :
ld: library not found for -lpng
The problem comes from the fact that there should be a library libpng
somewhere but the
On Monday, July 8, 2013 11:08:57 AM UTC+2, vdelecroix wrote:
Le dimanche 7 juillet 2013 22:06:12 UTC+1, Paul Mercat a écrit :
As it's recommanded, I give here the error I get when I try to compile
sage 5.10 on my MacBook pro :
ld: library not found for -lpng
The problem comes from the
Actually, the version of libpng the compiler should use is not the one
which you just installed but the one which is shipped with sage (ie
$SAGE_ROOT/local/lib/libpng*)... It looks like a problem of compiler
options but I have no clue of how to solve this and it is quite strange
that it fails
39 matches
Mail list logo