Getting RuntimeError: invalid slot offset when importing a module

dellair at gmail.com dellair at gmail.com
Wed Nov 20 03:38:32 EST 2013


Steven,

Thanks for the reply,

There was no error on compilation and link phases, only some warnings. However, during Python build, there is an import phase right after the link, which shows the same error as stated.

building '_ssl' extension
xlc_r -DNDEBUG -O -IInclude -I. -I/usr/local/include -c /aix/Modules/_ssl.c -o build/temp.aix-6.1-3.3/aix/Modules/_ssl.o
"/aix/Modules/_ssl.c", line 262.17: 1506-196 (W) Initialization between types "void*" and "struct _object*(*)(struct {...}*)" is not allowed.
/aix/Modules/ld_so_aix xlc_r -bI:/aix/Modules/python.exp build/temp.aix-6.1-3.3/aix/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.aix-6.1-3.3/_ssl.so
ld: 0711-224 WARNING: Duplicate symbol: .bcopy
ld: 0711-224 WARNING: Duplicate symbol: .memcpy
ld: 0711-224 WARNING: Duplicate symbol: .memmove
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
*** WARNING: importing extension "_ssl" failed with build/lib.aix-6.1-3.3/_ssl.so: <class 'RuntimeError'>: invalid slot offset: <traceback object at 0x3017e9e0>

Any idea on how to debug?
Thanks,

在 2013年11月20日星期三UTC+1上午9时29分41秒,Steven D'Aprano写道:
> On Wed, 20 Nov 2013 00:21:23 -0800, dellair wrote:
> 
> 
> 
> > Hello all,
> 
> > 
> 
> > I am getting above error when trying to import ssl module. In fact, the
> 
> > error showed up during the build and _ssl module was added to the failed
> 
> > module list. However, the compilation and link went well.
> 
> 
> 
> If the _ssl module fails to compile correctly, the ssl module can't work. 
> 
> You're going to need to check the compilation error and see what it says.
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> Steven




More information about the Python-list mailing list