Error with PDF output with usetex

Hi Jeff,

I am able to run the tex_demo.py with no problems and I can create
output files using the Agg backend. When I try to use the PDF
backend, however, I get an error which stems from dviread.py (pasted
below). Any thoughts on what could be going wrong?

Thanks!
Jeff

Hi Jeff,
How did you install matplotlib? From source yourself?

No, I’m using the Enthought Python Distribution (EPD64).

And when you installed matplotlib, did it see that you had dvipng installed?

FYI, you can do

which dvipng

to return the path where dvipng lives (if it is in your path already) or you can do

locate dvipng

to do a search for the binary if it isn’t already in your path.

P.S. You forgot to reply-all so everyone can see your response.

Damon McDougall
d.mcdougall@…831…
http://damon.is-a-geek.com
B2.39
Mathematics Institute
Coventry
West Midlands
CV4 7AL

$ which dvipng
/usr/texbin/dvipng

I don't remember any complaints while running the EPD installer.
Would there be a way to check this? Is the problem definitely related
to an inability to find dvipng, or could there be other possibilities?

Thanks,
Jeff

···

On Mon, Aug 15, 2011 at 10:00 PM, Damon McDougall <D.McDougall@...831...> wrote:

Hi Jeff,

I am able to run the tex_demo.py with no problems and I can create

output files using the Agg backend. When I try to use the PDF

backend, however, I get an error which stems from dviread.py (pasted

below). Any thoughts on what could be going wrong?

Thanks!

Jeff

Hi Jeff,

How did you install matplotlib? From source yourself?

No, I'm using the Enthought Python Distribution (EPD64).

And when you installed matplotlib, did it see that you had dvipng installed?
FYI, you can do
which dvipng
to return the path where dvipng lives (if it is in your path already) or you
can do
locate dvipng
to do a search for the binary if it isn't already in your path.
P.S. You forgot to reply-all so everyone can see your response.

Hi Jeff,

I am able to run the tex_demo.py with no problems and I can create

output files using the Agg backend. When I try to use the PDF

backend, however, I get an error which stems from dviread.py (pasted

below). Any thoughts on what could be going wrong?

Thanks!

Jeff

Hi Jeff,

How did you install matplotlib? From source yourself?

No, I’m using the Enthought Python Distribution (EPD64).

And when you installed matplotlib, did it see that you had dvipng installed?
FYI, you can do
which dvipng
to return the path where dvipng lives (if it is in your path already) or you
can do
locate dvipng
to do a search for the binary if it isn’t already in your path.
P.S. You forgot to reply-all so everyone can see your response.

$ which dvipng
/usr/texbin/dvipng

I don’t remember any complaints while running the EPD installer.
Would there be a way to check this? Is the problem definitely related
to an inability to find dvipng, or could there be other possibilities?

Thanks,
Jeff

I had a similar problem. I don’t think it’s an inability to find dvipng, I think it’s that it couldn’t find dvipng when matplotlib was built.

When matplotlib builds there’ll be a section of text sent to stdout under the heading of ‘OPTIONAL DEPENDENCIES’, there it will tell you whether it found dvipng when it was building. Are you able to find this? If not, are there install logs saved somewhere after you installed matplotlib?

Damon McDougall
d.mcdougall@…831…
http://damon.is-a-geek.com
B2.39
Mathematics Institute
Coventry
West Midlands
CV4 7AL

I'm not able to find this. The EPD installer comes as a Mac .pkg
application which seems to hide everything that's going on. It saves
"Receipts", but these don't contain the kind of logs we're looking
for, as far as I can tell.

On my previous laptop, I was using OS X Snow Leopard with python and
matplotlib from an older EPD version, and I had no troubles. Perhaps
I need to ask the Enthought folks.

Thanks,
Jeff

···

On Tue, Aug 16, 2011 at 4:22 AM, Damon McDougall <D.McDougall@...831...> wrote:

Hi Jeff,

I am able to run the tex_demo.py with no problems and I can create

output files using the Agg backend. When I try to use the PDF

backend, however, I get an error which stems from dviread.py (pasted

below). Any thoughts on what could be going wrong?

Thanks!

Jeff

Hi Jeff,

How did you install matplotlib? From source yourself?

No, I'm using the Enthought Python Distribution (EPD64).

And when you installed matplotlib, did it see that you had dvipng installed?

FYI, you can do

which dvipng

to return the path where dvipng lives (if it is in your path already) or you

can do

locate dvipng

to do a search for the binary if it isn't already in your path.

P.S. You forgot to reply-all so everyone can see your response.

$ which dvipng
/usr/texbin/dvipng

I don't remember any complaints while running the EPD installer.
Would there be a way to check this? Is the problem definitely related
to an inability to find dvipng, or could there be other possibilities?

Thanks,
Jeff

I had a similar problem. I don't think it's an inability to find dvipng, I
think it's that it couldn't find dvipng when matplotlib was built.
When matplotlib builds there'll be a section of text sent to stdout under
the heading of 'OPTIONAL DEPENDENCIES', there it will tell you whether it
found dvipng when it was building. Are you able to find this? If not, are
there install logs saved somewhere after you installed matplotlib?

Hi Jeff,

I am able to run the tex_demo.py with no problems and I can create

output files using the Agg backend. When I try to use the PDF

backend, however, I get an error which stems from dviread.py (pasted

below). Any thoughts on what could be going wrong?

Thanks!

Jeff

Hi Jeff,

How did you install matplotlib? From source yourself?

No, I’m using the Enthought Python Distribution (EPD64).

And when you installed matplotlib, did it see that you had dvipng installed?

FYI, you can do

which dvipng

to return the path where dvipng lives (if it is in your path already) or you

can do

locate dvipng

to do a search for the binary if it isn’t already in your path.

P.S. You forgot to reply-all so everyone can see your response.

$ which dvipng
/usr/texbin/dvipng

I don’t remember any complaints while running the EPD installer.
Would there be a way to check this? Is the problem definitely related
to an inability to find dvipng, or could there be other possibilities?

Thanks,
Jeff

I had a similar problem. I don’t think it’s an inability to find dvipng, I
think it’s that it couldn’t find dvipng when matplotlib was built.
When matplotlib builds there’ll be a section of text sent to stdout under
the heading of ‘OPTIONAL DEPENDENCIES’, there it will tell you whether it
found dvipng when it was building. Are you able to find this? If not, are
there install logs saved somewhere after you installed matplotlib?

I’m not able to find this. The EPD installer comes as a Mac .pkg
application which seems to hide everything that’s going on. It saves
“Receipts”, but these don’t contain the kind of logs we’re looking
for, as far as I can tell.

On my previous laptop, I was using OS X Snow Leopard with python and
matplotlib from an older EPD version, and I had no troubles. Perhaps
I need to ask the Enthought folks.

Thanks,
Jeff

Hmm.

You could try installing from source as per http://matplotlib.sourceforge.net/faq/installing_faq.html#building-and-installing-from-source-on-osx-with-epd and at least that way you can see what’s going on.

Damon McDougall
d.mcdougall@…831…
http://damon.is-a-geek.com
B2.39
Mathematics Institute
Coventry
West Midlands
CV4 7AL