473,385 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
3 2591
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Will | last post by:
I have this bit of code: #!/usr/bin/python import subprocess calc = subprocess.Popen("dc", stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) max = 5
3
by: rh0dium | last post by:
Hi all, Here I was happily coming to working thinking - OK I need to create a wrapper for a tool (UNIX) which does nothing but lauch the end tool and send a sql instert letting the db know the...
0
by: Corey Wallis | last post by:
Dear All, I'm currently working on a project that needs to collect the output of the JHOVE application. More information about the application is available at this website: ...
12
by: Eric_Dexter | last post by:
I am trying to modify a programming example and I am coming up with two problems... first is that I can't seem to pass along the arguments to the external command (I have been able to do that with...
12
by: bhunter | last post by:
Hi, I've used subprocess with 2.4 several times to execute a process, wait for it to finish, and then look at its output. Now I want to spawn the process separately, later check to see if it's...
7
by: skunkwerk | last post by:
Hi, i'm trying to call subprocess.popen on the 'rename' function in linux. When I run the command from the shell, like so: rename -vn 's/\.htm$/\.html/' *.htm it works fine... however when I...
2
by: dudeja.rajat | last post by:
On Mon, Sep 8, 2008 at 11:50 AM, <dudeja.rajat@gmail.comwrote: Ok, I re-phrase my question: there is a batch file that executes a exe file. The batch just works if run from command prompt and...
0
by: Eric Carlson | last post by:
Werner F. Bruhin wrote: Try: p = subprocess.Popen(command, shell=True, tdin=subprocess.PIPE, stdout=subprocess.PIPE) was working on xp and osx
1
by: yogamatt1970 | last post by:
I have some code which runs on a number of different machines, however I see problems on one particular Solaris box. When I call Popen.wait(), the following exception is raised: .. . . File...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.