Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compile python extension

Reply
Thread Tools

Compile python extension

 
 
Martijn de Munnik
Guest
Posts: n/a
 
      10-11-2006
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:5 [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%frameptr
CXX=CC
CXXFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all
-xlibmil -xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%frameptr
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=sqlite3

/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._sqlite' extension
Traceback (most recent call last):
File "setup.py", line 159, in ?
main()
File "setup.py", line 156, in main
setup(**get_setup_args())
File "/opt/python/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/opt/python/lib/python2.4/distutils/dist.py", line 946, in
run_commands
self.run_command(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_command(cmd_name)
File "/opt/python/lib/python2.4/distutils/cmd.py", line 333, in run_command
self.distribution.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_extensions()
File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
405, in build_extensions
self.build_extension(ext)
File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line
470, in build_extension
depends=ext.depends)
File "/opt/python/lib/python2.4/distutils/ccompiler.py", line 699, in
compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/opt/python/lib/python2.4/distutils/unixccompiler.py", 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.dry_run)
File "/opt/python/lib/python2.4/distutils/spawn.py", line 37, in spawn
_spawn_posix(cmd, 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
How to convert a .txt file extension to a .xls file extension? Steve ASP .Net 3 08-25-2006 05:43 PM
New extension? saw extension .emf is it safe to open Jer Computer Support 5 10-08-2005 04:43 PM
C extension=> pow(2,1) gives DIFFERENT answers in different parts of C extension!?!?! Any ideas why? Christian Seberino Python 3 02-05-2004 04:36 AM
Unload extension modules when python22.dll unloads... [using C extension interpreter] Anand Python 3 11-08-2003 05:50 AM



Advertisments