473,748 Members | 5,429 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 1610

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

Similar topics

1
2755
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
1330
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
3815
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
3577
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
2034
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
1381
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
2083
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
2226
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
8826
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
9534
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
9366
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
9241
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
8239
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
6793
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
4597
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.