platform.machine(): ImportError: No module named select

Ali H. Caliskan ali.h.caliskan at gmail.com
Wed Apr 15 20:25:26 CEST 2009


Hi!

I'm trying to use "platform.machine()" function, but it doesn't work on
python 3.0.1. Am I doing something wrong here or is it suppose to not work
on py3k? The errors I get while using the python interpreter:

>>> import platform
>>> platform.machine()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/lib/python3.0/platform.py", line 1222, in machine
    return uname()[4]
  File "/opt/lib/python3.0/platform.py", line 1152, in uname
    processor = _syscmd_uname('-p','')
  File "/opt/lib/python3.0/platform.py", line 905, in _syscmd_uname
    f = os.popen('uname %s 2> /dev/null' % option)
  File "/opt/lib/python3.0/os.py", line 629, in popen
    import subprocess, io
  File "/opt/lib/python3.0/subprocess.py", line 361, in <module>
    import select
ImportError: No module named select


Kind regards,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090415/8ea81b83/attachment.html>


More information about the Python-list mailing list