Revert to MPL 1.3.1.  They know about this issue, and I think they have
fixed it in trunk, but the RC is broken

Ian


On Mon, Aug 25, 2014 at 3:51 PM, Dimitrios Glentadakis <dgl...@free.fr>
wrote:

> Hi, i have a problem with the creation of the exe for windows
> I have a script and i use cx_freeze to create the exe file
> Until now everything was worked fine but after using the matplotlib i have
> a problem in the style/stylelib module path
>
> The error message was that it could n't find the path:
>
> u'C:\\Users\\myuser\\Downloads\\parser\\build\\exe.win32-2.7\\Library.zip\\matplotlib\\style\\stylelib\\*.*'
>
> I searched on the internet and i found that the problem coulb be the
> compressed folder Library.zip.
>
> So, i tried to not create the libraries zip folder, but still i have the
> same message, the only difference is in the path;
> it targets the following wrong path ('\\script.exe'):
>
> u'C:\\Users\\myuser\\Downloads\\parser\\build\\exe.win32-2.7\\script.exe\\matplotlib\\style\\stylelib\\*.*'
>
>
> ----
> The whole message:
>
> C:\Users\myuser\Downloads\parser\build\exe.win32-2.7>script.exe
> Traceback (most recent call last):
>   File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py",
> line 27, in <module>
>     exec code in m.__dict__
>   File "traces.py", line 10, in <module>
>   File "C:\Python27\lib\site-packages\pylab.py", line 1, in <module>
>     from matplotlib.pylab import *
>   File "C:\Python27\lib\site-packages\matplotlib\pylab.py", line 274, in
> <module>
>     from matplotlib.pyplot import *
>   File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 28, in
> <module>
>     from matplotlib import style
>   File "C:\Python27\lib\site-packages\matplotlib\style\__init__.py", line
> 3, in <module>
>     from .core import use, context, available, library, reload_library
>   File "C:\Python27\lib\site-packages\matplotlib\style\core.py", line 150,
> in <module>
>     _base_library = load_base_library()
>   File "C:\Python27\lib\site-packages\matplotlib\style\core.py", line 95,
> in load_base_library
>     library.update(read_style_directory(BASE_LIBRARY_PATH))
>   File "C:\Python27\lib\site-packages\matplotlib\style\core.py", line 127,
> in read_style_directory
>     for path, name in iter_style_files(style_dir):
>   File "C:\Python27\lib\site-packages\matplotlib\style\core.py", line 116,
> in iter_style_files
>     for path in os.listdir(style_dir):
> WindowsError: [Error 3] The access to the specified path cannot be found:
> u'C:\\Users\\myuser\\Downloads\\parser\\build\\exe.win32-2.7\\script.exe\\matplotlib\\style\\stylelib\\*.*'
>
>
>
> and my setup file:
>
> from cx_Freeze import setup, Executable
> import os
> import sys
>
> # Dependencies are automatically detected, but it might need
> # fine tuning.
> #buildOptions = dict(packages = [], excludes = [])
>
> def include_files():
>         path_base =
> "C:\\Python27\\Lib\\site-packages\\matplotlib\\style\\stylelib"
>         skip_count = len(path_base)
>         zip_includes = [(path_base, "matplotlib/style/stylelib/")]
>         for root, sub_folders, files in os.walk(path_base):
>             for file_in_root in files:
>                 zip_includes.append(
>                         ("{}".format(os.path.join(root, file_in_root)),
>
>  "{}".format(os.path.join("matplotlib/style/stylelib", root[skip_count:],
> file_in_root))
>                         )
>                 )
>         return zip_includes
> #"zip_includes": include_files(),
> path = sys.path
> options = {"packages": ["os","lxml","bs4","gzip", "matplotlib.style"],
>            "path": path,
>            "excludes": ["tkinter"],
>            "create_shared_zip": False,
>            "include_in_shared_zip": False,
>            "compressed": False
>            }
>
>
>
> base = 'Console'
>
> executables = [
>     Executable('traces.py',
>                appendScriptToLibrary=False,
>                compress = False,
>                copyDependentFiles = True,
>                appendScriptToExe = True,
>                base = base)]
>
> setup(name='traces',
>       version = '0.10.0',
>       description = 'Parser',
>       executables = executables,
>       options = {"build_exe": options})
>
>
> Thanks in advance for any suggestion you could give me
>
> --
> Dimitrios Glentadakis
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to