467,921 Members | 1,299 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,921 developers. It's quick & easy.

Subprocess Not Working on Solaris

Lee
Has anyone ran into this problem? I've done extensive googling and
research and I cannot seem to find the answer.

I downloaded the source for 2.5.1 from python.org compiled and
installed it on a Solaris box,

uname -a returns

SunOS unicom5 5.8 Generic_117350-26 sun4u sparc SUNW,Sun-Fire-V210

When I launch the python interpreter, I try the following:

"
Python 2.5.1 (r251:54863, Jun 13 2007, 13:40:52)
[GCC 3.2.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>import subprocess
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/subprocess.py", line 401, in <module>
import select
ImportError: No module named select
"

The subprocess module works just fine on a BSD box I have and after
doing a 'find' I notice there is a select.so module. This does not
exist on the Solaris box, only subprocess exists. Within subprocess.py
on the Solaris box, exists the following:

"
else:
import select
import errno
import fcntl
import pickle
"

Any ideas? I'd like to get the subprocess module working...

-Lee

Jun 15 '07 #1
  • viewed: 2348
Share:
3 Replies
On 15 Jun, 17:00, Lee <huyslo...@gmail.comwrote:
Has anyone ran into this problem? I've done extensive googling and
research and I cannot seem to find the answer.

I downloaded the source for 2.5.1 from python.org compiled and
installed it on a Solaris box,
Aren't there additional linking flags for the networking libraries on
Solaris? Did the configure script and the related machinery work this
out, or was the select module disabled as a consequence of such things
not being discovered? It would surprise me somewhat that this still
needed manual adjustment given that this has always been the case with
Solaris.

[...]
The subprocess module works just fine on a BSD box I have and after
doing a 'find' I notice there is a select.so module. This does not
exist on the Solaris box, only subprocess exists.
I imagine that something failed to work as anticipated in the
configuration process.

Paul

Jun 15 '07 #2
FWIIW, on my Solaris 10 (Opteron) machine, there are no import
subprocess errors, not with Python 2.4.3 nor with Python 2.5.

/Jean Brouwers

PS) Python 2.4.3 is the ActivePython Solaris build 11 from
ActivState. Python 2.5 was built from source using SUN compilers, not
GNU. There is an ActivePython Solaris build for 2.5.1 but I have not
tried that one yet. See <http://www.activestate.com/store/
download.aspx?prdGUID=b08b04e0-6872-4d9d-a722-7a0c2dea2758>

On Jun 15, 8:00 am, Lee <huyslo...@gmail.comwrote:
Has anyone ran into this problem? I've done extensive googling and
research and I cannot seem to find the answer.

I downloaded the source for 2.5.1 from python.org compiled and
installed it on a Solaris box,

uname -a returns

SunOS unicom5 5.8 Generic_117350-26 sun4u sparc SUNW,Sun-Fire-V210

When I launch the python interpreter, I try the following:

"
Python 2.5.1 (r251:54863, Jun 13 2007, 13:40:52)
[GCC 3.2.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.>>import subprocess

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/subprocess.py", line 401, in <module>
import select
ImportError: No module named select
"

The subprocess module works just fine on a BSD box I have and after
doing a 'find' I notice there is a select.so module. This does not
exist on the Solaris box, only subprocess exists. Within subprocess.py
on the Solaris box, exists the following:

"
else:
import select
import errno
import fcntl
import pickle
"

Any ideas? I'd like to get the subprocess module working...

-Lee
Jun 15 '07 #3
Python 2.5.1 (r251:54863, Jun 13 2007, 13:40:52)
[GCC 3.2.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>>import subprocess
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/subprocess.py", line 401, in <module>
import select
ImportError: No module named select
"
The select module should certainly be present on Solaris. If it isn't,
something went wrong in the installation.

Regards,
Martin
Jun 16 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by rh0dium | last post: by
reply views Thread by Corey Wallis | last post: by
12 posts views Thread by Eric_Dexter | last post: by
12 posts views Thread by bhunter | last post: by
7 posts views Thread by skunkwerk | last post: by
2 posts views Thread by dudeja.rajat | last post: by
reply views Thread by Eric Carlson | last post: by
1 post views Thread by yogamatt1970 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.