473,839 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compile python extension

Hi,

I'm trying to build/install pysqlite on a Solaris 10 platform. I've got
Sun Studio 11 on a AMD 64 platform and got this error. I'm a python newbie
and just want to install trac. I've got ActiveState python:

ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on
Python 2.4.3 (#1, Apr 3 2006, 18:07:58) [C] on sunos5
Type "help", "copyright" , "credits" or "license" for more information.

And sqlite build with the following options ./configure
--prefix=/opt/64/sqlite --enable-threadsafe --disable-tcl

my environment looks like this:
CC=cc
CFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil
-xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%framep tr
CXX=CC
CXXFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all
-xlibmil -xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%framep tr
LDFLAGS=-xtarget=opteron -xarch=amd64

and setyp.cfg looks like this
[build_ext]
define=
include_dirs=/opt/sqlite/include
library_dirs=/opt/sqlite/lib
libraries=sqlit e3

/opt/sqlite is a symlink to /opt/64/sqlite

and finally the build command:

% python setup.py build
running build
running build_py
running build_ext
building 'pysqlite2._sql ite' extension
Traceback (most recent call last):
File "setup.py", line 159, in ?
main()
File "setup.py", line 156, in main
setup(**get_set up_args())
File "/opt/python/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_comman ds()
File "/opt/python/lib/python2.4/distutils/dist.py", line 946, in
run_commands
self.run_comman d(cmd)
File "/opt/python/lib/python2.4/distutils/dist.py", line 966, in
run_command
cmd_obj.run()
File "/opt/python/lib/python2.4/distutils/command/build.py", line 112,
in run
self.run_comman d(cmd_name)
File "/opt/python/lib/python2.4/distutils/cmd.py", line 333, in run_command
self.distributi on.run_command( command)
File "/opt/python/lib/python2.4/distutils/dist.py", line 966, in
run_command
cmd_obj.run()
File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
279, in run
self.build_exte nsions()
File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
405, in build_extension s
self.build_exte nsion(ext)
File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
470, in build_extension
depends=ext.dep ends)
File "/opt/python/lib/python2.4/distutils/ccompiler.py", line 699, in
compile
self._compile(o bj, src, ext, cc_args, extra_postargs, pp_opts)
File "/opt/python/lib/python2.4/distutils/unixccompiler.p y", line 112,
in _compile
self.spawn(self .compiler_so + cc_args + [src, '-o', obj] +
File "/opt/python/lib/python2.4/distutils/ccompiler.py", line 1040, in
spawn
spawn (cmd, dry_run=self.dr y_run)
File "/opt/python/lib/python2.4/distutils/spawn.py", line 37, in spawn
_spawn_posix(cm d, search_path, dry_run=dry_run )
File "/opt/python/lib/python2.4/distutils/spawn.py", line 122, in
_spawn_posix
log.info(string .join(cmd, ' '))
File "/opt/python/lib/python2.4/distutils/log.py", line 33, in info
self._log(INFO, msg, args)
File "/opt/python/lib/python2.4/distutils/log.py", line 23, in _log
print msg % args
TypeError: not enough arguments for format string
I've got the same issues with mysql and postgresql extensions, any ideas???

BTW anybody succesfully compiled python on Solaris using Sun Studio?

thanks,

Martijn
Oct 11 '06 #1
0 1615

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

Similar topics

1
2757
by: Edward C. Jones | last post by:
I compile and link Python extension modules using the script gcc -fPIC -g -I/usr/local/include/python2.3 \ -Wall -Wstrict-prototypes -c mymodule.c g++ -shared mymodule.o -L/usr/local/lib -o mymodule.so It works for me but it isn't pretty. Is there a better way to write it? Gcc finds all the libraries that need to be linked in. For example, "/usr/local/lib/python2.3/site-packages/numarray/libnumarray.so". How
0
1335
by: Greg Ewing (using news.cis.dfn.de) | last post by:
I'm trying to use MingGW32 to compile a Python extension module that links with the Firebird relational database system. I've used pexports/dlltool to create a libgds32_ms.a file containing definitions for linking with gds32.dll, the Firebird interface library. All goes well until the linking, when I get Info: resolving _isc_start_transaction by linking to
5
3827
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace ) Person.xsd includes Common-Naming.xsd ( anonimous schemas ) Common-Naming.xsd includes common.xsd ( both are anonimous schemas ) Compilation of Resident.xsd raise the following exception: "System.Xml.Schema.XmlSchemaException: The attribute 'oid'...
7
3588
by: venkatbo | last post by:
Hi all, We've managed to cross-compile (from i686 targeting ppc) python (2.4.2) binaries and extension modules. However we cannot figure out how to cross-compile the .py (of distribution) files and generate the .pyc files for the target ppc from an i686 system. Is it possible to cross
0
2040
by: Jérôme Le Bougeant | last post by:
Hello (and sorry for my English), I downloaded the VideoCapture module on the http://videocapture.sourceforge.net/ site. I tested it with a webcam and that functions. Now I want to compile his file .cpp (vidcap.cpp). Thereafter, the idea is to be able to modify the code to include my own modifications.
0
1388
by: John Ling | last post by:
Hello, I have been trying to install an application which requires Python: http://chip.dfci.harvard.edu/~wli/MAT/ My environment is AIX 5.2. Below is the section of the setup that has failed, which BTW works fine on Fedora 5. I suspect it has to do with Python on AIX and/or the setup.py script. Has anyone experienced this before? MAT-2.04182006python setup.py install Found make and swig.
1
2090
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules written using other languages. Extensions of Python could be done via special interpreter extensions. From Python sources, the special modules would look like other modules, with the Python API (the key feature from
0
312
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 408 open ( -9) / 3585 closed (+20) / 3993 total (+11) Bugs : 968 open ( +8) / 6505 closed ( +7) / 7473 total (+15) RFE : 267 open ( +1) / 251 closed ( +0) / 518 total ( +1) New / Reopened Patches ______________________
2
2232
by: jmtulloss | last post by:
Hello all, I've been trying to get Python to cross compile to linux running on an ARM. I've been fiddling with the cross compile patches here: http://sourceforge.net/tracker/index.php?func=detail&aid=1597850&group_id=5470&atid=305470 and I've had some success. Python compiles and now all of the extensions do too, but when I try to import some of them (time, socket, etc.), they have trouble finding certain symbols. Py_Exc_IOError and...
0
9697
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10908
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10587
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10295
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7018
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
5867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4487
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
4064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3136
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.