Hi


i've some problem to get python modules working

$ python -v
# /users/www/local/lib/python2.2/site.pyc matches /users/www/local/lib/python2.2/site.py
import site # precompiled from /users/www/local/lib/python2.2/site.pyc
# /users/www/local/lib/python2.2/os.pyc matches /users/www/local/lib/python2.2/os.py
import os # precompiled from /users/www/local/lib/python2.2/os.pyc
import posix # builtin
# /users/www/local/lib/python2.2/posixpath.pyc matches /users/www/local/lib/python2.2/posixpath.py
import posixpath # precompiled from /users/www/local/lib/python2.2/posixpath.pyc
# /users/www/local/lib/python2.2/stat.pyc matches /users/www/local/lib/python2.2/stat.py
import stat # precompiled from /users/www/local/lib/python2.2/stat.pyc
# /users/www/local/lib/python2.2/UserDict.pyc matches /users/www/local/lib/python2.2/UserDict.py
import UserDict # precompiled from /users/www/local/lib/python2.2/UserDict.pyc
# /users/www/local/lib/python2.2/copy_reg.pyc matches /users/www/local/lib/python2.2/copy_reg.py
import copy_reg # precompiled from /users/www/local/lib/python2.2/copy_reg.pyc
# /users/www/local/lib/python2.2/types.pyc matches /users/www/local/lib/python2.2/types.py
import types # precompiled from /users/www/local/lib/python2.2/types.pyc
# /users/www/local/lib/python2.2/__future__.pyc matches /users/www/local/lib/python2.2/__future__.py
import __future__ # precompiled from /users/www/local/lib/python2.2/__future__.pyc
Python 2.2.2 (#1, Jun 6 2003, 12:03:32)
[GCC 3.2.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named math
>>> import socket
# /users/www/local/lib/python2.2/socket.pyc matches /users/www/local/lib/python2.2/socket.py
import socket # precompiled from /users/www/local/lib/python2.2/socket.pyc
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/users/www/local/lib/python2.2/socket.py", line 41, in ?
from _socket import *
ImportError: No module named _socket
>>> ^D
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] __future__
# cleanup[1] signal
# cleanup[1] site
# cleanup[1] posix
# cleanup[1] types
# cleanup[1] exceptions
# cleanup[1] socket
# cleanup[2] stat
# cleanup[2] copy_reg
# cleanup[2] posixpath
# cleanup[2] UserDict
# cleanup[2] os
# cleanup[2] os.path
# cleanup sys
# cleanup __builtin__
# cleanup ints: 3 unfreed ints in 1 out of 3 blocks
# cleanup floats
$ rpm -ql python |egrep '(socket|math)'
/users/www/local/lib/python2.2/socket.py
/users/www/local/lib/python2.2/socket.pyc
/users/www/local/lib/python2.2/socket.pyo


openpkg is current and:

$ rpm -qa |grep python
python-2.2.2-1.2.0

and host is sparc SunOS 5.7


Regards


Julien

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to