On Mon, 29 Sep 2003 17:34:20 +0200, Roger Erens wrote:
Dear list,
I'm trying to install python2.3.1 on an SCO-box.
After running ./configure --prefix=/usrdir/rogere
the output of make shows (among others:)
running build
running build_ext
building 'struct' extension
creating build
creating build/temp.sco_sv-3.2-i386-2.3
cc -DNDEBUG -O -Kpic -belf -belf -Ki486 -DSCO5 -I.
-I/usrdir/rogere/Python-2.3.1/./Include -I/usrdir/rogere/include
-I/usrdir/rogere/Python-2.3.1/Include -I/usrdir/rogere/Python-2.3.1 -c
/usrdir/rogere/Python-2.3.1/Modules/structmodule.c -o
build/temp.sco_sv-3.2-i386-2.3/structmodule.o
creating build/lib.sco_sv-3.2-i386-2.3
cc -Wl,-G,-Bexport build/temp.sco_sv-3.2-i386-2.3/structmodule.o
-L/usrdir/rogere/lib -L/usr/local/lib -o
build/lib.sco_sv-3.2-i386-2.3/struct.so
*** WARNING: importing extension "struct" failed with
exceptions.Attr ibuteError: 'module' object has no attribute 'load_dynamic'
I also get lots of these warnings for other extensions, like 'regex',
'pcre', '_hotshot', etc, etc.
In the end I can start up the Python interpreter; however, importing one of
the above extensions fails:
python
Python 2.3.1 (#2, Sep 29 2003, 16:43:28) [C] on sco_sv3
Type "help", "copyright" , "credits" or "license" for more information. import regex
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named regex
Does anyone have a clue about how I should resolve these warnings?
I'd be glad to send any extra needed information if required.
Best regards and thanks in advance,
Roger Erens
uname -X
System = SCO_SV
Node = ontwik2
Release = 3.2v5.0.5
KernelID = 98/07/02
Machine = i80386
BusType = ISA
Serial = 5FL004745
Users = 30-user
OEM# = 0
Origin# = 1
NumCPU = 2
ld -V
SCO UNIX Development System Release 5.1.1A 27Jul98
395 /usrdir/rogere/Python-2.3.1cc -V
SCO UNIX Development System Release 5.1.1A 27Jul98
I also have an interest in the answer to this question. I can narrow it
down to the following:
1) Python 2.2.2b1 links find on the particular SCO-Machine I am using.
2) The problem must be somewhere in distutils. Its happening in the run in
distutils/command/build_ext.py. The routine build_extension is called. I
built a print right at the beginning of the routine and another one right
at the end. The warning is coming as it were in the middle of nowhere,
here is the extract from build_ext.py:
def build_extension s(self):
# First, sanity-check the 'extensions' list
self.check_exte nsions_list(sel f.extensions)
for ext in self.extensions :
self.build_exte nsion(ext)
def build_extension (self, ext):
print "RNS----------------- Begin of Extension ",ext.name
....
self.compiler.l ink_shared_obje ct(
objects, ext_filename,
libraries=self. get_libraries(e xt),
library_dirs=ex t.library_dirs,
runtime_library _dirs=ext.runti me_library_dirs ,
extra_postargs= extra_args,
export_symbols= self.get_export _symbols(ext),
debug=self.debu g,
build_temp=self .build_temp,
target_lang=lan guage)
print "RNS----------------- End of Extension ",ext.name
And here is the output:
sharp@charlie:/u/users/sharp/Python-2.3.1 > make clean
find . -name '*.o' -exec rm -f {} ';'
find . -name '*.s[ol]' -exec rm -f {} ';'
find . -name '*.py[co]' -exec rm -f {} ';'
sharp@charlie:/u/users/sharp/Python-2.3.1 > ./python -E ./setup.py build
running build
running build_ext
RNS----------------- Begin of Extension regex
building 'regex' extension
cc -DNDEBUG -O -Kpic -belf -belf -Ki486 -DSCO5 -I. -I/u/users/sharp/Python-2.3.1
/./Include -I/usr/local/include -I/u/users/sharp/Python-2.3.1/Include -I/u/users
/sharp/Python-2.3.1 -c /u/users/sharp/Python-2.3.1/Modules/regexmodule.c -o buil
d/temp.sco_sv-3.2-i386-2.3/regexmodule.o
cc -DNDEBUG -O -Kpic -belf -belf -Ki486 -DSCO5 -I. -I/u/users/sharp/Python-2.3.1
/./Include -I/usr/local/include -I/u/users/sharp/Python-2.3.1/Include -I/u/users
/sharp/Python-2.3.1 -c /u/users/sharp/Python-2.3.1/Modules/regexpr.c -o build/te
mp.sco_sv-3.2-i386-2.3/regexpr.o
UnixCompiler
cc -Wl,-G,-Bexport build/temp.sco_sv-3.2-i386-2.3/regexmodule.o build/temp.sco_s
v-3.2-i386-2.3/regexpr.o -L/usr/local/lib -o build/lib.sco_sv-3.2-i386-2.3/regex
..so
UnixCompiler End
RNS----------------- End of Extension regex
*** WARNING: importing extension "regex" failed with exceptions.Attr ibuteError:
'module' object has no attribute 'load_dynamic'
RNS----------------- Begin of Extension pcre
Now what is being processed that throws up the warning and why?
Considering that the commands, if set off on their own, give no warning.
It is now late in Germany and I am tired and may have missed something
obvious, but I would also be glad of a hint, since, think what I may of
SCO, I would greatly prefer to work with the newest version.
regards,
Richard Sharp