|
From: Wayne W. <sie...@sb...> - 2010-02-20 03:12:08
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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. <br>
I've now tried this program,
pylab_scatter.py:<br>
<br>
<blockquote>#!/usr/bin/env python<br>
from pylab import *<br>
<br>
N = 30<br>
x = 0.9*rand(N)<br>
y = 0.9*rand(N)<br>
area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses<br>
scatter(x,y,s=area, marker='^', c='r')<br>
<br>
show()<br>
</blockquote>
It runs properly in IDLE.<br>
==============================<br>
It appears to compile properly. Now from the cmd prompt window:<br>
C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist>pylab_scatter.exe<br>
Traceback (most recent call last):<br>
File "pylab_scatter.py", line 2, in <module><br>
File "pylab.pyc", line 1, in <module><br>
File "matplotlib\__init__.pyc", line 677, in <module><br>
File "matplotlib\__init__.pyc", line 598, in rc_params<br>
File "matplotlib\__init__.pyc", line 552, in matplotlib_fname<br>
File "matplotlib\__init__.pyc", line 242, in wrapper<br>
File "matplotlib\__init__.pyc", line 482, in _get_data_path_cached<br>
File "matplotlib\__init__.pyc", line 478, in _get_data_path<br>
RuntimeError: Could not find the matplotlib data files
<-------------------What is this?<br>
<br>
C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist><br>
==================================<br>
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. <br>
<pre class="moz-signature" cols="72">--
"There is nothing so annoying as to have two people
talking when you're busy interrupting." -- Mark Twain</pre>
</body>
</html>
|