Error probably due to misconfiguration

Hello,

some weeks ago, I recompiled matplotlib to get locale support for
commas, and started to get strange dimension errors while trying
to save the figure. Now here is another error that I think that
is somewhat related to it. When I try to run the script below,
savefig() gives me an IndexError:

···

--
from pylab import *

a1 = figure(1).add_subplot(111, polar=True)
a1.scatter([ 3.*pi/7. ], [ 0.65 ], color='black', marker='o')
a1.annotate('Target', (3.*pi/7., 0.65), xytext=(3.*pi/7., 0.7))
savefig("Radar.eps")

<...long stack...>
IndexError: Unexpected SeqBase<T> length.
---

This is in the savefig() function again, and this is related to
text, since the error disappear if I remove the annotation. But
I think I can affirm, with a great degree of certainty, that this
happens because I recompiled matplotlib: this is an old script
that wouldn't give me any error before.

So, I'm probably missing some dependency, but the setup.py script
won't tell me what is missing, and the only warning I get during
compilation is the -Wstrict_prototypes one.

Actually, I am happy to find out this, since it was probably
a configuration problem that generated the errors (and matplotlib
source is ok). But if anyone can give me any clue on how to solve
this, that would be greatly appreciated.

---
José Alexandre Nalon
nalon@...166...

Hello,

some weeks ago, I recompiled matplotlib to get locale support for
commas, and started to get strange dimension errors while trying
to save the figure. Now here is another error that I think that
is somewhat related to it. When I try to run the script below,
savefig() gives me an IndexError:

--
from pylab import *

a1 = figure(1).add_subplot(111, polar=True)
a1.scatter([ 3.*pi/7. ], [ 0.65 ], color='black', marker='o')
a1.annotate('Target', (3.*pi/7., 0.65), xytext=(3.*pi/7., 0.7))
savefig("Radar.eps")

<...long stack...>
IndexError: Unexpected SeqBase<T> length.

This is coming from CXX.

I am not going to be able to figure out what the problem is, but those who are (the C++ wizards) will probably want to see the full stack trace, as well as the matplotlib version and the compilation parameters: platform, compiler, python version, etc. The first part of the output from setup.py build has all that.

Eric

···

On 08/31/2011 01:15 PM, José Alexandre Nalon wrote:

---

This is in the savefig() function again, and this is related to
text, since the error disappear if I remove the annotation. But
I think I can affirm, with a great degree of certainty, that this
happens because I recompiled matplotlib: this is an old script
that wouldn't give me any error before.

So, I'm probably missing some dependency, but the setup.py script
won't tell me what is missing, and the only warning I get during
compilation is the -Wstrict_prototypes one.

Actually, I am happy to find out this, since it was probably
a configuration problem that generated the errors (and matplotlib
source is ok). But if anyone can give me any clue on how to solve
this, that would be greatly appreciated.

---
José Alexandre Nalon
nalon@...166...

Hello,

Hello,

some weeks ago, I recompiled matplotlib to get locale support for
commas, <…>

This is coming from CXX.

I am not going to be able to figure out what the problem is, but those
who are (the C++ wizards) will probably want to see the full stack
trace, as well as the matplotlib version and the compilation parameters:
platform, compiler, python version, etc. The first part of the output
from setup.py build has all that.

Sorry for taking so long to answer. I was installing Linux on

a new laptop, and, as I thought would happen, I could install

the newest matplotlib, and it is running without any errors

now. As I suspected, it was something in my configuration, I

don’t know, however, what it could be.

I apologize for raising an alarm, though. At first, I was under

the impression that that bug could affect more than one person.

Glad to see everything working fine.

···

Em 01/09/2011, às 00:16, Eric Firing escreveu:

On 08/31/2011 01:15 PM, José Alexandre Nalon wrote:


José Alexandre Nalon
nalon@…166…

Hello,

Hello,

some weeks ago, I recompiled matplotlib to get locale support for
commas, <...>

This is coming from CXX.

I am not going to be able to figure out what the problem is, but those
who are (the C++ wizards) will probably want to see the full stack
trace, as well as the matplotlib version and the compilation parameters:
platform, compiler, python version, etc. The first part of the output
from setup.py build has all that.

Sorry for taking so long to answer. I was installing Linux on
a new laptop, and, as I thought would happen, I could install
the newest matplotlib, and it is running without any errors
now. As I suspected, it was something in my configuration, I
don't know, however, what it could be.

I apologize for raising an alarm, though. At first, I was under
the impression that that bug could affect more than one person.
Glad to see everything working fine.

Thanks for the update, and I'm glad you got it working.

Eric

···

On 09/05/2011 08:29 AM, José Alexandre Nalon wrote:

Em 01/09/2011, às 00:16, Eric Firing escreveu:

On 08/31/2011 01:15 PM, José Alexandre Nalon wrote:


José Alexandre Nalon
nalon@…166… <mailto:nalon@…166…>