473,698 Members | 2,643 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

executing python remotely

2 New Member
I am trying to rsh from a server that does not have python installed to a server that has python but I get error message

rsh python-server "/usr/local/bin/python /home/s/src/utpython/UnitTrip.py"
Traceback (most recent call last):
File "/home/s/src/utpython/UnitTrip.py", line 66, in ?
import wx
ImportError: No module named wx

Then I created a script to call on the python server that will set the environment and now I get errors:

Traceback (most recent call last):
File "/home/s/src/utpython/UnitTrip.py", line 668, in ?
app = UTDisplay(0)
File "/opt/freeware/src/packages/SOURCES/wxPython-src-2.6.1.0/wxPython/wx/_core.py", line 7473, in __init__
self._Bootstrap App()
File "/opt/freeware/src/packages/SOURCES/wxPython-src-2.6.1.0/wxPython/wx/_core.py", line 7125, in _BootstrapApp
return _core_.PyApp__B ootstrapApp(*ar gs, **kwargs)
File "/home/s/src/utpython/UnitTrip.py", line 212, in OnInit
self.CreateTree ()
File "/home/s/src/utpython/UnitTrip.py", line 243, in CreateTree
self.OracleTree Populate()
File "/home/s/src/utpython/UnitTrip.py", line 335, in OracleTreePopul ate
Data = OracleData()
File "/home/s/src/utpython/OracleData.py", line 242, in __init__
ErrorDialog = wx.MessageDialo g( parent = self.frame,\
NameError: global name 'wx' is not defined


Any ideas? Thanks
Jul 14 '06 #1
3 2132
dvs
12 New Member
try to add
Expand|Select|Wrap|Line Numbers
  1. import wx
to the beginning of OracleData.py
Jul 20 '06 #2
dvs
12 New Member
BTW, wxPython = GUI apps. Is it possible to access GUI stuff via rsh?
Jul 20 '06 #3
moxie
2 New Member
That has already been added - no luck
try to add
Expand|Select|Wrap|Line Numbers
  1. import wx
to the beginning of OracleData.py
Jul 20 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1838
by: SS | last post by:
I am trying to execute some python commands within a perl script and running into problems. The following works: python -c "import mypkg;do this; do that" however when I try to do something like #!/bin/perl -w ...... ...... $cmd = "import mypkg; do this; do that"; $string = `python -c \"$cmd\"`;
8
1568
by: Darren Dale | last post by:
Is there a place to put python programs so I dont have to refer to the absolute path everytime I want to call them? For example: if I am in /home/me and want to execute: python /home/me/python/export.py temp.dat what could I do so this will work: python export.py temp.dat
2
1953
by: Shufen | last post by:
Hi, Can someone please advice me on the differences between this: #!/usr/bin/env python and these: #!/usr/local/bin/python or #!/usr/bin/python? I know the first one locates the Python interpreter according to my system searching path setting. But I read about an article that mentioned that if we are running the scripts as a CGI from a Web server then we should use the latter one. Because I'm using python
13
2278
by: Darren Dale | last post by:
Some time ago I asked about executing a python program or script. For windows, I was informed that the .py extension could be added to some list of executable extensions, and then I could just type "mycode" instead of "python mycode.py". Great advice, worked like a charm. I recently jumped ship, and have been running Gentoo Linux for about two months. Is it possible to get the same behavior on Linux? I thought it would have something to...
3
2406
by: Pankaj | last post by:
I am facing a very basic problem as any new bie would face. I know perl and now i want to use python In perl, it is very simple , just "perl scriptname.pl" will execute the script. But i think python is worse than perl
0
1632
by: nadeemabdulhamid | last post by:
Hello, I'm trying to write some Java code that will launch a python interpreter shell and pipe input/output back and forth from the interpreter's i/o streams and the Java program. The code posted below seems to work just fine under Mac OS X; however, under Windows XP (Java 1.6 and Python 2.5 installed) the program hangs when I give a command to import the Tkinter (Python GUI library) and create a top- level frame window. Specifically,...
2
2773
by: Jorgen Bodde | last post by:
Hi all, This is slightly OT but it drives me nuts. Whenever I create a shortcut in the start menu (in Windows) of a python script, it will only execute it when the path where the script resides in contains no spaces. For example; d:\src\app\app.py If I drag that to the Start Menu it can be executed fine.
0
1057
by: Gordon Fraser | last post by:
Hi, I'm trying to parse Python code to an AST, apply some changes to the AST and then compile and run the AST, but I'm running into problems when trying to evaluate/execute the resulting code object. It seems that the global namespace differs depending on where I call parse and eval/exec. The following code parses a file, compiles and then evaluates the AST. If I call Python directly on this code, then it works:
0
1339
by: Orestis Markou | last post by:
Have you tried passing in empty dicts for globals and locals? I think that the defaults will be the *current* globals and locals, and then of course your namespace is broken... On Tue, Oct 7, 2008 at 1:26 PM, Gordon Fraser <gfraser79@gmail.comwrote: -- orestis@orestis.gr
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8904
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.