executing python remotely

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moxie
    New Member
    • Jul 2006
    • 2

    executing python remotely

    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
  • dvs
    New Member
    • Jul 2006
    • 12

    #2
    try to add
    Code:
    import wx
    to the beginning of OracleData.py

    Comment

    • dvs
      New Member
      • Jul 2006
      • 12

      #3
      BTW, wxPython = GUI apps. Is it possible to access GUI stuff via rsh?

      Comment

      • moxie
        New Member
        • Jul 2006
        • 2

        #4
        That has already been added - no luck
        Originally posted by dvs
        try to add
        Code:
        import wx
        to the beginning of OracleData.py

        Comment

        Working...