473,786 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

warnings during installation of python2.3.1 on SCO_SV 3.2v5.0.5

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

Jul 18 '05 #1
2 2210
Roger Erens <r.*****@eurosy s.nl> pisze:
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.1
cc -V

SCO UNIX Development System Release 5.1.1A 27Jul98


I wouldn't be surprised, SCO systems is absolute crap. And they object
reality.

http://lwn.net/Articles/51374/

--
Jarek Zgoda
Registered Linux User #-1
http://www.zgoda.biz/ JID:ja***@jabbe rpl.org http://zgoda.jogger.pl/
Jul 18 '05 #2
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.1
cc -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
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
5617
by: Matt Mower | last post by:
Hi folks, I have an old Linux box that I am messing about with Python on. The RedHat installed version is 1.5 something so I have built & installed 2.2.2 in /opt/python. I've started trying to play with XML and ran into an error when attempting to parse a document: >Traceback (most recent call last):
10
2211
by: Kylotan | last post by:
I have the following code: def IntToRandFloat(x): """Given a 32-bit integer, return a float in """ x = int(x) x = int(x << 13) ^ x return (1.0-((x*(x*x*15731+789221)+1376312589)&0x7fffffff)/1073741824.0) Basically it's a function directly copied from a C implementation. Now
11
2620
by: Chris Green | last post by:
Hey folks, Is there anyway for a signal handler in python to get the information from a 3 argument signal handler rather than just the signal number and stack frame? I've got an application where I have to check for F_SETLEASE on a file in python on Linux 2.4. What this does is tells the kernel to notify the current process with SIGIO that a particular file descriptor is being modified by another process.
0
1767
by: google account | last post by:
*sigh* I have done all that I know how.... I am using fedora core1, I believe. I have updated the MySQL version to 4.0.17-0. I am trying this: rpm -i MySQL-python2.1-0.9.2-1.i386.rpm
1
1867
by: Peter Hartmann | last post by:
How do I influence the platform type during install? Could you look at this and tell me what I'm doing wrong? It's still using information from get_platform instead of using my preference. # python setup.py install --install-purelib=lib.linux=i686-2.3 --install-lib=/usr/lib/python2.3/site-packages running install running build running build_py
1
1695
by: mathieu.malaterre | last post by:
Hello, I am trying to build an executable that link against python libraries. If I only link to python lib I get thoses errors(*). This machine is a gentoo AMD64. I installed python by doing 'emerge python' and my USE flags uses 'zlib'. I am wondering if there is a 'python-config' like script that would tell me that I also need to link against zlib libraries in order to properly link my executable ?
1
3166
by: cesco | last post by:
Hi, I wanted to install python, numpy and matplotlib on Linux Ubuntu. I installed python with the following commands ../configure --enable-unicode=ucs4 make make install and then I installed numpy running python setup.py install Finally I came to matplotlib, that for the installation requires the
0
999
by: martinezfive | last post by:
Hi. I was attempting to instal the 2.5 release on my Ubuntu box. Config went fine. Make went fine. Make instal, not so much. I get: Compiling /usr/local/lib/python2.5/test/test_compare.py ... Compiling /usr/local/lib/python2.5/test/test_compile.py ... Compiling /usr/local/lib/python2.5/test/test_compiler.py ... Compiling /usr/local/lib/python2.5/test/test_complex.py ... Compiling /usr/local/lib/python2.5/test/ test_complex_args.py ......
9
2269
by: wyleu | last post by:
I'm running on Mandriva 2007 (2.6.17-5mdv) and thus have python2.4.3 installed by default, I'm running code requiring yield(), so need python2.5 and have installed this sucessfully, and linked appropriately to allow me to start python2.5 by typing python2.5. However I'd like to use idle so require to be able to import _tkinter. I gather I need to modift the setup.py script in my python directory but am wary of experimenting since I've...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.