473,324 Members | 2,581 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,324 software developers and data experts.

executing python remotely

2
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._BootstrapApp()
File "/opt/freeware/src/packages/SOURCES/wxPython-src-2.6.1.0/wxPython/wx/_core.py", line 7125, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **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.OracleTreePopulate()
File "/home/s/src/utpython/UnitTrip.py", line 335, in OracleTreePopulate
Data = OracleData()
File "/home/s/src/utpython/OracleData.py", line 242, in __init__
ErrorDialog = wx.MessageDialog( parent = self.frame,\
NameError: global name 'wx' is not defined


Any ideas? Thanks
Jul 14 '06 #1
3 2117
dvs
12
try to add
Expand|Select|Wrap|Line Numbers
  1. import wx
to the beginning of OracleData.py
Jul 20 '06 #2
dvs
12
BTW, wxPython = GUI apps. Is it possible to access GUI stuff via rsh?
Jul 20 '06 #3
moxie
2
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
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...
8
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...
2
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...
13
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...
3
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...
0
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...
2
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...
0
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...
0
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,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.