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
3 2132 dvs 12
New Member
try to add
to the beginning of OracleData.py
dvs 12
New Member
BTW, wxPython = GUI apps. Is it possible to access GUI stuff via rsh?
That has already been added - no luck
try to add
to the beginning of OracleData.py
Sign in to post your reply or Sign up for a free account.
Similar topics |
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\"`;
|
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
|
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
|
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...
|
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
| |
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,...
|
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.
|
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:
|
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
|
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...
|
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,...
| |
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |