Python, Reportlabs, Pil and Windows 7 (64bit)

Robin Becker robin at reportlab.com
Fri Mar 12 12:40:00 CET 2010


On 11/03/2010 18:00, Martin v. Loewis wrote:
>
>>> I have a Windows 7 (64bit AMD) machine
......
>
>> Perhaps some expert on the python list knows which versions of VS
>> support 64bit; I do have VS 2005/2008 etc, but I'll probably need to set
>> up a 64bit machine to see if they will install on a 64bit architecture.
>
> For Python 2.6 and later, use VS 2008. This comes with an AMD64
> compiler. You technically don't need a 64-bit Windows, as it supports
> cross-compilation (but you would need a 64-bit Windows to test it).
>
> I personally build Python on a 32-bit machine, and move the MSI to a
> 64-bit machine for testing.
>

OK I've got the VC2008 64bit tools installed on my 32bit build platform, but I'm 
getting build errors because of missing libraries. I assume that's because I 
don't have the python amd64 runtime libraries/dlls etc etc since the errors are 
looking like this

_rl_accel.obj : error LNK2019: unresolved external symbol __imp_Py_FindMethod 
referenced in function Box_getattr
_rl_accel.obj : error LNK2019: unresolved external symbol __imp_PyObject_Init 
referenced in function Box
_rl_accel.obj : error LNK2019: unresolved external symbol __imp_PyObject_Malloc 
referenced in function Box
_rl_accel.obj : error LNK2019: unresolved external symbol __imp_PyList_Type 
referenced in function BoxList_init
_rl_accel.obj : error LNK2019: unresolved external symbol __imp_Py_FatalError 
referenced in function init_rl_accel
_rl_accel.obj : error LNK2019: unresolved external symbol __imp_PyType_Ready 
referenced in function init_rl_accel
_rl_accel.obj : error LNK2019: unresolved external symbol __imp_PyType_Type 
referenced in function init_rl_accel
_rl_accel.obj : error LNK2019: unresolved external symbol 
__imp_PyModule_AddObject referenced in function init_rl_accel
_rl_accel.obj : error LNK2019: unresolved external symbol 
__imp_PyErr_NewException referenced in function init_rl_accel
_rl_accel.obj : error LNK2019: unresolved external symbol 
__imp_Py_InitModule4_64 referenced in function init_rl_accel
build\lib.win-amd64-2.6\_rl_accel.pyd : fatal error LNK1120: 69 unresolved externals

I assume I can get those from a working Python amd64 install and stuff on one of 
the compiler paths somehow.
-- 
Robin Becker



More information about the Python-list mailing list