Hi Christoph, Any idea why linking against the newer runtime libs would cause problems?
Johan On Wed, Jan 23, 2013 at 10:07 PM, Christoph Gohlke <cgoh...@uci.edu> wrote: > On 1/22/2013 8:41 PM, Christoph Gohlke wrote: >> On 1/1/2013 3:18 PM, Johan Johansson wrote: >>> On Wed, Jan 2, 2013 at 12:07 AM, Laurent Gautier <lgaut...@gmail.com> wrote: >>>> On 2013-01-01 23:45, Johan Johansson wrote: >>> >>>>> #if SIZEOF_SIZE_T != SIZEOF_INT >>>>> /* On a 64-bit system, rename the Py_InitModule4 so that 2.4 >>>>> modules cannot get loaded into a 2.5 interpreter */ >>>>> #define Py_InitModule4 Py_InitModule4_64 >>>>> #endif >>> >>>> The comment suggests that this concerns pre-Python2.4 vs post-Python2.5 >>>> compiled module. >>>> May be not a big issue for now. >>> >>> What worries me is that SIZEOF_SIZE_T shouldn't equal SIZEOF_INT on a >>> 64-bit system but apparently does. This makes me suspect I'm missing >>> compiler flags/defines somewhere. >>> >>> Johan >>> >> >> Hi Johan, >> >> did you resolve this? If not, make sure `-m64` and `-DMS_WIN64` are in >> the gcc compiler options. I just tried: rpy2-2.3.x (from hg) builds >> without errors using Rtools216. >> >> Unfortunately the 64 bit extension often (not always, with no apparent >> pattern) fails to load when repeatedly running `python -c"import >> rpy2.rinterface"`: >> >> Traceback (most recent call last): >> File "<string>", line 1, in <module> >> File "X:\Python27-x64\lib\site-packages\rpy2\rinterface\__init__.py", >> line 93, in <module> >> from rpy2.rinterface._rinterface import * >> ImportError: DLL load failed: A dynamic link library (DLL) >> initialization routine failed. > > Turns out this is due to Python distutils linking against libmsvcr90 or > libmsvcr100. Forcing distutils to use msvcrt instead (usually a bad > practice) solves the random DLL load failures and crashes. Got it > working on win-amd64-py2.7, 3.2, and 3.3. > > Christoph > >> >> The installers are at <http://www.lfd.uci.edu/~gohlke/pythonlibs/#rpy2> >> if anyone wants to try. >> >> Christoph >> > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list