By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

executing python remotely

P: 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
Share this Question
Share on Google+
3 Replies


P: 12
dvs
try to add
Expand|Select|Wrap|Line Numbers
  1. import wx
to the beginning of OracleData.py
Jul 20 '06 #2

P: 12
dvs
BTW, wxPython = GUI apps. Is it possible to access GUI stuff via rsh?
Jul 20 '06 #3

P: 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

Post your reply

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