py2exe message" RuntimeError: Could not find the matplotlib data files"?

OK, I’m on Win7. From the py2exe tutorial, I’ve found that hello.exe
works as expected by the
tutorial. That file is in the dist folder.

I’ve now tried this program,
pylab_scatter.py:

#!/usr/bin/env python

from pylab import *

N = 30

x = 0.9*rand(N)

y = 0.9*rand(N)

area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses

scatter(x,y,s=area, marker=‘^’, c=‘r’)

show()
It runs properly in IDLE.

···
            -- "There is nothing so annoying as to have two people talking when you're busy interrupting." -- Mark Twain

<http://lmgtfy.com/?q=py2exe+matplotlib+data+files&l=1&gt; leads me to
<http://www.py2exe.org/index.cgi/MatPlotLib&gt;\.

- Christoph

···

On 2/19/2010 7:11 PM, Wayne Watson wrote:

OK, I'm on Win7. From the py2exe tutorial, I've found that hello.exe
works as expected by the tutorial. That file is in the dist folder.
I've now tried this program, pylab_scatter.py:

    #!/usr/bin/env python
    from pylab import *

    N = 30
    x = 0.9*rand(N)
    y = 0.9*rand(N)
    area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses
    scatter(x,y,s=area, marker='^', c='r')

    show()

It runs properly in IDLE.

It appears to compile properly. Now from the cmd prompt window:
C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>pylab_scatter.exe
Traceback (most recent call last):
  File "pylab_scatter.py", line 2, in <module>
  File "pylab.pyc", line 1, in <module>
  File "matplotlib\__init__.pyc", line 677, in <module>
  File "matplotlib\__init__.pyc", line 598, in rc_params
  File "matplotlib\__init__.pyc", line 552, in matplotlib_fname
  File "matplotlib\__init__.pyc", line 242, in wrapper
  File "matplotlib\__init__.pyc", line 482, in _get_data_path_cached
  File "matplotlib\__init__.pyc", line 478, in _get_data_path
RuntimeError: Could not find the matplotlib data files
<-------------------What is this?

C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>

I Googled this py2exe message "RuntimeError: Could not find the
matplotlib data files". As of yet, it does not look like a solution ia
available for matplotlib.

--
            "There is nothing so annoying as to have two people
             talking when you're busy interrupting." -- Mark Twain

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Thank you. That last link probably enlightened about six people.

···

On 2/19/2010 8:28 PM, Christoph Gohlke wrote:

<http://lmgtfy.com/?q=py2exe+matplotlib+data+files&l=1&gt; leads me to
<http://www.py2exe.org/index.cgi/MatPlotLib&gt;\.

- Christoph

On 2/19/2010 7:11 PM, Wayne Watson wrote:
   

  OK, I'm on Win7. From the py2exe tutorial, I've found that hello.exe
works as expected by the tutorial. That file is in the dist folder.
I've now tried this program, pylab_scatter.py:

     #!/usr/bin/env python
     from pylab import *

     N = 30
     x = 0.9*rand(N)
     y = 0.9*rand(N)
     area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses
     scatter(x,y,s=area, marker='^', c='r')

     show()

It runs properly in IDLE.

It appears to compile properly. Now from the cmd prompt window:
C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>pylab_scatter.exe
Traceback (most recent call last):
   File "pylab_scatter.py", line 2, in<module>
   File "pylab.pyc", line 1, in<module>
   File "matplotlib\__init__.pyc", line 677, in<module>
   File "matplotlib\__init__.pyc", line 598, in rc_params
   File "matplotlib\__init__.pyc", line 552, in matplotlib_fname
   File "matplotlib\__init__.pyc", line 242, in wrapper
   File "matplotlib\__init__.pyc", line 482, in _get_data_path_cached
   File "matplotlib\__init__.pyc", line 478, in _get_data_path
RuntimeError: Could not find the matplotlib data files
<-------------------What is this?

C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>

I Googled this py2exe message "RuntimeError: Could not find the
matplotlib data files". As of yet, it does not look like a solution ia
available for matplotlib.

--
             "There is nothing so annoying as to have two people
              talking when you're busy interrupting." -- Mark Twain

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
     

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
             "There is nothing so annoying as to have two people
              talking when you're busy interrupting." -- Mark Twain

Wayne Watson wrote:

Thank you. That last link probably enlightened about six people.

Are you one of those six? That page is unfortunate -- some folks don't quite "get" that a Wiki is supposed to be edited -- not just added to, like a forum. So that page could really use some clean up -- but if you read the whole page, you can see that it's gotten pretty easy.

Are you still confused?

-Chris

···

On 2/19/2010 8:28 PM, Christoph Gohlke wrote:

<http://lmgtfy.com/?q=py2exe+matplotlib+data+files&l=1&gt; leads me to
<http://www.py2exe.org/index.cgi/MatPlotLib&gt;\.

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Hmm. Actually I put it aside, thinking that it was correct. After spending quite a bit of time on it through queries to a few "forums" I was happy to find the rest of the story. This was not something I was desperate for, especially given the apparent complexity of it for matplotlib. The tutorial that got me started was pretty accurate for non-graphic programs, but suffered in one area of what I would call not emphasizing an important point. Once found all went fine.

I personally do not know the other" five". I had brought this up on other "forums", and it attracted several others. A few had no clue at all even though they offered solutions, but would seem to be content with the resolution.

So what do we have here? An incomplete and possibly wrong wiki? I find this a bit bizarre if several credible authors of Python point to py2exe as useful, but apparently do not tell the whole story.

So, yes, in light of this revelation, then I'm confused.

···

On 2/20/2010 10:43 PM, Christopher Barker wrote:

Wayne Watson wrote:
   

Thank you. That last link probably enlightened about six people.
     

Are you one of those six? That page is unfortunate -- some folks don't
quite "get" that a Wiki is supposed to be edited -- not just added to,
like a forum. So that page could really use some clean up -- but if you
read the whole page, you can see that it's gotten pretty easy.

Are you still confused?

-Chris

On 2/19/2010 8:28 PM, Christoph Gohlke wrote:
     

<http://lmgtfy.com/?q=py2exe+matplotlib+data+files&l=1&gt; leads me to
<http://www.py2exe.org/index.cgi/MatPlotLib&gt;\.
       
--
             "There is nothing so annoying as to have two people
              talking when you're busy interrupting." -- Mark Twain