Flavio wrote: > I am trying to freeze an application which imports matplotlib. It all > works fine on the machine where it was frozen. The executable runs > without a glitch. > > But when I move the directory containing the frozen executable and > other libs to a new machine, I get the following error: > > Traceback (most recent call last): > File > "/home/fccoelho/Downloads/cx_Freeze-3.0.2/initscripts/Console.py", > line 26, in ? > File "epigrass.py", line 5, in ? > File "Epigrass/manager.py", line 7, in ? > File "Epigrass/simobj.py", line 4, in ? > File "/usr/lib/python2.4/site-packages/matplotlib/__init__.py", line > 457, in ? > try: return float(s) > File "/usr/lib/python2.4/site-packages/matplotlib/__init__.py", line > 245, in wrapper > if level not in self.levels: > File "/usr/lib/python2.4/site-packages/matplotlib/__init__.py", line > 319, in _get_data_path > Return the string representing the configuration dir. If s is the > RuntimeError: Could not find the matplotlib data files > > Matplotlib can't find its data files.
I'm not familiar with cx_freeze, but have you told cx_freeze that you don't want to bundle matplotlib or cx_freeze has decided that matplotlib is not going to be bundled? That fact that matplotlib is loaded from site-package is pretty strange, standalone application are not supposed to depend on non-system packages. -- http://mail.python.org/mailman/listinfo/python-list