Unable to compile pyprocessing module on SUN solaris

Deepak Rokade smartpawn at gmail.com
Thu Mar 26 10:12:44 EDT 2009


Hi,
 I treed to comple the python 2.6 on Solaris 5.8 with gcc version 3.3.2
Initially multiprocessing package was not compile succesfully.

below errors:

Failed to find the necessary bits to build these modules:

_bsddb             _hashlib           _sqlite3

_ssl               _tkinter           bsddb185

gdbm               linuxaudiodev      ossaudiodev

readline

To find the necessary bits, look in setup.py in detect_modules() for the
module's name.





Failed to build these modules:

_curses            _curses_panel      _multiprocessing



running build_scripts

creating build/scripts-2.6

copying and adjusting
/home/drokade/packages_less/PYTHON_2.6/Python-2.6.1/Tools/scripts/pydoc ->
build/scripts-2.6

copying and adjusting
/home/drokade/packages_less/PYTHON_2.6/Python-2.6.1/Tools/scripts/idle ->
build/scripts-2.6

copying and adjusting
/home/drokade/packages_less/PYTHON_2.6/Python-2.6.1/Tools/scripts/2to3 ->
build/scripts-2.6

copying and adjusting
/home/drokade/packages_less/PYTHON_2.6/Python-2.6.1/Lib/smtpd.py ->
build/scripts-2.6

changing mode of build/scripts-2.6/pydoc from 664 to 775

changing mode of build/scripts-2.6/idle from 664 to 775

changing mode of build/scripts-2.6/2to3 from 664 to 775

changing mode of build/scripts-2.6/smtpd.py from 664 to 775



drokade at himalaya:~/packages_less/PYTHON_2.6/Python-2.6.1

(Deepak:)



(Deepak:)gcc -v

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs

Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls

Thread model: posix

gcc version 3.3.2



Then later I modified the "setup.py" script as
        else:                                   # Linux and other unices
            macros = dict(
                HAVE_SEM_OPEN=0,
                HAVE_SEM_TIMEDWAIT=0,
                HAVE_FD_TRANSFER=0
                )

and then I could compile multiprocessing module , after "make clean"
however I got error while importing this module

bash-2.03$ python2.6
Python 2.6.1 (r261:67515, Mar 26 2009, 11:44:45)
[GCC 3.3.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import multiprocessing
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/home/drokade/packages_less/PYTHON_2.6/Python-2.6.1_Compiled//lib/python2.6/multiprocessing/__init__.py",
line 63, in <module>
    from multiprocessing.process import Process, current_process,
active_children
  File
"/home/drokade/packages_less/PYTHON_2.6/Python-2.6.1_Compiled//lib/python2.6/multiprocessing/process.py",
line 18, in <module>
    import itertools
ImportError: No module named itertools
>>>
>>> ^D



I think we should have these flags seperate for "SunOs" currently.

bash-2.03$
bash-2.03$ python2.6  -c "import sys; print sys.platform"
sunos5
bash-2.03$


On Sat, Mar 21, 2009 at 12:57 AM, Christian Heimes <lists at cheimes.de> wrote:

> Deepak Rokade wrote:
> > I am trying to build package "pyprocessing" for python 2.5
> >
> > I am using sun machine with Solaris 5.8
> >
> > drokade at himalaya:~/modules_python/processing-0.52
> > (Deepak:)uname -a
> > SunOS himalaya 5.8 Generic_117350-35 sun4u sparc SUNW,Sun-Fire
> >
> > While building the package I get below warnings.
> >
> > (Deepak:)python setup.py build
> > Macros:
> >         HAVE_FD_TRANSFER = 1
> >         HAVE_SEM_OPEN = 1
> >         HAVE_SEM_TIMEDWAIT = 1
> >
> > Libraries:
> >         ['rt']
>
> Can you do me a favor and compile Python 2.6.1 on your machine? The
> download link is http://www.python.org/download/releases/2.6.1/
>
> I like to know if the multiprocessing module in 2.6.1 builds correctly
> on Solaris. I also need the version number of GCC (gcc -v) and the value
> of sys.platform (python -c "import sys; print sys.platform").
>
> Thanks!
>
> I'm including Jesse, the maintainer of Python 2.6's multiprocessing
> module, in our discussion. It seem like Solaris needs
> HAVE_FD_TRANSFER=0, HAVE_SEM_TIMEDWAIT = 0 in order to compile
> multiprocessing.
>
> Christian
>
>
>
>
>


-- 
Thanx & Regards,
Deepak Rokade

Do what u Enjoy &
               Enjoy what u Do...........
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090326/9ad830eb/attachment-0001.html>


More information about the Python-list mailing list