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

Script runs in IDLE but not by itself!?

Hey everyone! I've been working with python for quite a while and
have been able to fix all my problems by searching... except for this
one!

I have a python script that runs *BEAUTIFULLY* when run in windows in
IDLE. However, if I try to run it in a simple python console (be
double clicking it) it fails. It uses a DLL that I wrote in another
language. The part that calls the dll looks like this:

#### TOP OF PROGRAM ####
import pythoncom, win32com.client, time
pythoncom.CoInitialize()
dll=win32com.client.Dispatch("test_3.KickAssClass" )
dll.testfunc("ooga","booga")
sleep(10)
print dll.showstatus()
#### END OF PROGRAM ####

The way the DLL is made, it takes in a login and password ("ooga" and
"booga") and signs on AIM with the names (using the oscar protocol).
The strange part is that when I run this program in IDLE, everything
goes just fine. When I run it raw (by double clicking it) it just
seems to sit there and when I show the status, it was like nothing
happened in the DLL. No connections were made...

I know this is too vague to get help on the details of my progra, but
my question is how does IDLE differ from the raw python console? If I
can figure that one out, then I can decide where to look to get my
program working. Thank you for all your help everyone! --Scott
Jul 18 '05 #1
1 1505
kn**********@cfl.rr.com (Scott) wrote in message news:<9a**************************@posting.google. com>...
Hey everyone! I've been working with python for quite a while and
have been able to fix all my problems by searching... except for this
one!

I have a python script that runs *BEAUTIFULLY* when run in windows in
IDLE. However, if I try to run it in a simple python console (be
double clicking it) it fails. It uses a DLL that I wrote in another
language. The part that calls the dll looks like this:


Just a shot in the dark, maybe a problem with sys.path, that one of
your modules is not found when you start the program from explorer?
Have you tried to call your program from a dos box, the traceback you
get might be helpful.

Michael
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ollie | last post by:
I am trying to figure out how a complex program written in python works. I am new to python so looking at the source code directly is not helping me much. As such, I am running the program under...
16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
9
by: nephish | last post by:
Hey there, i have a python cgi script that prints out html just fine in the Opera browser but doesnt print at all under FireFox. weird, eh? i am getting nothing in the apache logs about any...
7
by: Patrick Allaire | last post by:
How to create a script that list itself ? I would like to know, where is the script's code is stored once we start it. I know I can achieve that, using files : print...
0
by: kaioshin00 | last post by:
Hello, I am the owner of some bots on AOL's instant messenger service (Screenames: TrivDaddy and WordToYourBrain if you want to try them out :) ) I use windows xp media center edition. My bots...
10
by: gh | last post by:
I have a short JS program that runs fine from the command line: #!/usr/bin/java org.mozilla.javascript.tools.shell.Main print("Hello World"); I saved it as HelloWorld.js. (It's the shabang...
1
by: Rajeesh123 | last post by:
I have a dom tree in asp with jscript(same kind of treeview in .net). when user clicks on it , I pass the id to a hidden field and update it with ajax. The main page has one if clause to get the...
0
by: Beany | last post by:
Hi All, im running the following login script (vbs) when users log in: ' **************************************************************************** ' Copy Fonts From Network Share To...
2
by: DeepNik | last post by:
I have simple awk scripts which copies information from one file based on the conditions satisfied and pastes to another. When I execute this script, no eeor is invoked, it just runs without doing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.