From: Robin <ro...@gm...> - 2010-10-06 13:14:01
|
On Wed, Oct 6, 2010 at 10:31 AM, Jakub Nowacki <j.s...@gm...> wrote: > Hi, > > Personally I've tried to install Matplotlib 1.0.0 manually in EPD on Mac and > Linux. For some reason on Linux it went totally OK from the first try (just > had to define PREFIX correctly). On Mac I've tried to do the same but for > some reason the libs are linked somehow differently and while the > installation went OK (at least it didn't complain) mpl didn't work. I admit > I don't have that much experience with Mac linking but it seems to be the > issue. BTW have you tried to force 32-bit compilation using 'arch'? I was > getting such messages when I've tired to run 64-bit module with 32-bit > Python (didn't specify arch correctly). Thanks for the information. For me it is the same - the build completes successfully but I get the bus error when importing pyplot. I think it is 32 bit... I am installing to a 32 bit Python. Also in the past when I've had arch errors like that they show up at linking rather than runtime, and I think from the stack trace it is getting into the extension module ft2font - if it was 64 vs 32 bit I think it wouldn't load the .so. I am not sure if EPD is built with intel compilers and MKL - perhaps that could be the issue. Unfortunately I don't have intel compiler available to test. In the end I built against a fresh python.org 2.7 install and reinstalled numpy and scipy. Cheers Robin > > Best wishes, > > Jakub > > > On 10/05/2010 03:26 PM, Robin wrote: >> >> Hi, >> >> I am using EPD 6.2 (32 bit) on a mac. >> >> I would like to use subplot grids (matplotlib.gridspec) which seems to >> require mpl 1.0.0. >> >> Is there anyway to install this and use it with EPD? So far I have >> tried everything from the installation guide, but whatever I do I get >> a bus error in ft2font. >> >> I can't get the wx backend to show up in the config stage (although wx >> is installed in EPD). >> I have tried building it myself, with the make.osx script, and with >> the EPD guide on the installation page, both with gcc 4.0 and gcc 4.2 >> but everything gives the same bus error. >> I'm actually not sure what compiler is used for EPD so perhaps that is >> the problem. >> >> Alternatively, is there a way to pick out the subplot grid features >> and use them with the epd matplotlib? >> >> If anyone is interested this is the error I get: >> >> >> Exception Type: EXC_BAD_ACCESS (SIGBUS) >> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000 >> Crashed Thread: 0 Dispatch queue: com.apple.main-thread >> >> Thread 0 Crashed: Dispatch queue: com.apple.main-thread >> 0 ??? 0000000000 0 + 0 >> 1 libSystem.B.dylib 0x96f31108 >> _Unwind_GetLanguageSpecificData + 24 >> 2 libstdc++.6.dylib 0x97166d86 __gxx_personality_v0 + >> 120 >> 3 libgcc_s.1.dylib 0x0040b476 >> _Unwind_RaiseException_Phase2 + 102 (unwind.inc:68) >> 4 libgcc_s.1.dylib 0x0040b890 _Unwind_Resume + 112 >> (unwind.inc:238) >> 5 ft2font.so 0x04501a98 >> FT2Font::FT2Font(std::string) + 4776 (ExtensionOldType.hxx:88) >> 6 ft2font.so 0x04501fd3 >> ft2font_module::new_ft2font(Py::Tuple const&) + 515 (ft2font.cpp:1969) >> 7 ft2font.so 0x045041b6 >> Py::ExtensionModule<ft2font_module>::invoke_method_varargs(void*, >> Py::Tuple const&) + 102 (ExtensionModule.hxx:184) >> 8 ft2font.so 0x0450db87 >> method_varargs_call_handler + 343 >> 9 org.python.python 0x000cbfd5 PyEval_EvalFrameEx + >> 19429 >> 10 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 11 org.python.python 0x000cc1bc PyEval_EvalFrameEx + >> 19916 >> 12 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 13 org.python.python 0x0004b136 function_call + 166 >> 14 org.python.python 0x00019b05 PyObject_Call + 85 >> 15 org.python.python 0x0002c0e6 instancemethod_call + >> 422 >> 16 org.python.python 0x00019b05 PyObject_Call + 85 >> 17 org.python.python 0x000c642e >> PyEval_CallObjectWithKeywords + 78 >> 18 org.python.python 0x0002efb2 PyInstance_New + 114 >> 19 org.python.python 0x00019b05 PyObject_Call + 85 >> 20 org.python.python 0x000ca927 PyEval_EvalFrameEx + >> 13623 >> 21 org.python.python 0x000cc956 PyEval_EvalFrameEx + >> 21862 >> 22 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 23 org.python.python 0x000ce2d7 PyEval_EvalCode + 87 >> 24 org.python.python 0x000e5a3c >> PyImport_ExecCodeModuleEx + 188 >> 25 org.python.python 0x000e66dc load_source_module + >> 540 >> 26 org.python.python 0x000e72fd import_submodule + 301 >> 27 org.python.python 0x000e7559 load_next + 201 >> 28 org.python.python 0x000e7f53 >> PyImport_ImportModuleLevel + 419 >> 29 org.python.python 0x000c09bf builtin___import__ + >> 159 >> 30 org.python.python 0x00019b05 PyObject_Call + 85 >> 31 org.python.python 0x000c642e >> PyEval_CallObjectWithKeywords + 78 >> 32 org.python.python 0x000c99c0 PyEval_EvalFrameEx + >> 9680 >> 33 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 34 org.python.python 0x000ce2d7 PyEval_EvalCode + 87 >> 35 org.python.python 0x000e5a3c >> PyImport_ExecCodeModuleEx + 188 >> 36 org.python.python 0x000e66dc load_source_module + >> 540 >> 37 org.python.python 0x000e72fd import_submodule + 301 >> 38 org.python.python 0x000e78a7 ensure_fromlist + 439 >> 39 org.python.python 0x000e833d >> PyImport_ImportModuleLevel + 1421 >> 40 org.python.python 0x000c09bf builtin___import__ + >> 159 >> 41 org.python.python 0x00019b05 PyObject_Call + 85 >> 42 org.python.python 0x000c642e >> PyEval_CallObjectWithKeywords + 78 >> 43 org.python.python 0x000c99c0 PyEval_EvalFrameEx + >> 9680 >> 44 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 45 org.python.python 0x000ce2d7 PyEval_EvalCode + 87 >> 46 org.python.python 0x000e5a3c >> PyImport_ExecCodeModuleEx + 188 >> 47 org.python.python 0x000e66dc load_source_module + >> 540 >> 48 org.python.python 0x000e72fd import_submodule + 301 >> 49 org.python.python 0x000e78a7 ensure_fromlist + 439 >> 50 org.python.python 0x000e833d >> PyImport_ImportModuleLevel + 1421 >> 51 org.python.python 0x000c09bf builtin___import__ + >> 159 >> 52 org.python.python 0x00019b05 PyObject_Call + 85 >> 53 org.python.python 0x000c642e >> PyEval_CallObjectWithKeywords + 78 >> 54 org.python.python 0x000c99c0 PyEval_EvalFrameEx + >> 9680 >> 55 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 56 org.python.python 0x000ce2d7 PyEval_EvalCode + 87 >> 57 org.python.python 0x000e5a3c >> PyImport_ExecCodeModuleEx + 188 >> 58 org.python.python 0x000e66dc load_source_module + >> 540 >> 59 org.python.python 0x000e72fd import_submodule + 301 >> 60 org.python.python 0x000e7559 load_next + 201 >> 61 org.python.python 0x000e7f53 >> PyImport_ImportModuleLevel + 419 >> 62 org.python.python 0x000c09bf builtin___import__ + >> 159 >> 63 org.python.python 0x00019b05 PyObject_Call + 85 >> 64 org.python.python 0x000c642e >> PyEval_CallObjectWithKeywords + 78 >> 65 org.python.python 0x000c99c0 PyEval_EvalFrameEx + >> 9680 >> 66 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 67 org.python.python 0x000cc1bc PyEval_EvalFrameEx + >> 19916 >> 68 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 69 org.python.python 0x0004b136 function_call + 166 >> 70 org.python.python 0x00019b05 PyObject_Call + 85 >> 71 org.python.python 0x0002c0e6 instancemethod_call + >> 422 >> 72 org.python.python 0x00019b05 PyObject_Call + 85 >> 73 org.python.python 0x000812c7 slot_tp_init + 87 >> 74 org.python.python 0x0007fcf0 type_call + 176 >> 75 org.python.python 0x00019b05 PyObject_Call + 85 >> 76 org.python.python 0x000c9d9c PyEval_EvalFrameEx + >> 10668 >> 77 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 78 org.python.python 0x000cc1bc PyEval_EvalFrameEx + >> 19916 >> 79 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 80 org.python.python 0x0004b136 function_call + 166 >> 81 org.python.python 0x00019b05 PyObject_Call + 85 >> 82 org.python.python 0x0002c0e6 instancemethod_call + >> 422 >> 83 org.python.python 0x00019b05 PyObject_Call + 85 >> 84 org.python.python 0x000ca927 PyEval_EvalFrameEx + >> 13623 >> 85 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 86 org.python.python 0x0004b136 function_call + 166 >> 87 org.python.python 0x00019b05 PyObject_Call + 85 >> 88 org.python.python 0x0002c0e6 instancemethod_call + >> 422 >> 89 org.python.python 0x00019b05 PyObject_Call + 85 >> 90 org.python.python 0x000c642e >> PyEval_CallObjectWithKeywords + 78 >> 91 org.python.python 0x0002efb2 PyInstance_New + 114 >> 92 org.python.python 0x00019b05 PyObject_Call + 85 >> 93 org.python.python 0x000ca927 PyEval_EvalFrameEx + >> 13623 >> 94 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 95 org.python.python 0x000cc1bc PyEval_EvalFrameEx + >> 19916 >> 96 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 97 org.python.python 0x000cc1bc PyEval_EvalFrameEx + >> 19916 >> 98 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 99 org.python.python 0x000cc1bc PyEval_EvalFrameEx + >> 19916 >> 100 org.python.python 0x000ce14d PyEval_EvalCodeEx + >> 2109 >> 101 org.python.python 0x000ce2d7 PyEval_EvalCode + 87 >> 102 org.python.python 0x000f3068 PyRun_FileExFlags + 168 >> 103 org.python.python 0x000f3ff3 PyRun_SimpleFileExFlags >> + 867 >> 104 org.python.python 0x00105b9b Py_Main + 3371 >> 105 org.python.python 0x00001fb6 0x1000 + 4022 >> >> >> Cheers >> >> Robin >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today. >> http://p.sf.net/sfu/beautyoftheweb >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |