Getting RuntimeError: invalid slot offset when importing a module

D

dellair

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.

Could anyone shed some lights on how to get it work?

Thanks in advance!

Br,
 
D

dellair

Environment:
Python: 3.3.2
OpenSSL: 0.9.8y (also tried 0.9.7)
OS: AIX 6.1 (also tried on HPUX_1131_IA)

Thanks,

在 2013å¹´11月20日星期三UTC+1上åˆ9æ—¶21分23秒,[email protected]写é“:
 
S

Steven D'Aprano

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.
 
D

dellair

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写é“:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,125
Latest member
VinayKumar Nevatia_
Top