On Mon, Jul 18, 2011 at 06:22:05PM +0200, pellegrini wrote: > and when running "python setup.py bdist_wininst" I get the following error:
> running bdist_wininst > running build > ---------------------------------------------------------------------- > Building TVTK classes... SyntaxError: ('invalid syntax', > ('tvtk_classes\\ls_dyna > _reader.py', 100, 11, ' Get/Set the directory containing the > LS-Dyna data > base and determine\n')) > error: tvtk_classes\ls_dyna_reader.pyc: Le fichier spÚcifiÚ est introuvable > Looking deeper into the code, it seems that the problem comes from > the code TVTKGenerator. > Looking at the generated 'ls-dyna-reader.py' file (cf attached file) > I found something like a misformatted string at the line 100 but I > have no single clue why and how such a strange string could be > generated. What is happening is that the code generator for TVTK is spitting out invalid Python file. I had a look at the ls_dyna_reader.py file generated on my system, and I couldn't reproduce the problem. It could be related to Windows, but glancing at the horrible characters in there, I wonder whether it is not a locale problem (clearly you have you locale set to French). Can you try adding at the begining of the gen_tvtk_classes_zip function in tvtk/setup.py something like: import locale locale.setlocale(locale.LC_ALL, ('en_US', 'UTF8')) and see if it fixes the problem. Gael ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users