473,320 Members | 1,930 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,320 software developers and data experts.

Exit from python-Strange problem

Hi All,
I have a python program which was developed to for USB commincation. This program writes its results to .csv file.All is working fine on the PC with which we developed this program. Now I moved the same program to another PC here also its working almost ok expect that the program could not comeout of python(I dont receive any error message or exception) and I have force it quit( I mean End Now).
I am unable to open the .csv file until I close the cmd prompt

I tried to using
sys.exit(1)
os._exit(99)
os.abort()
noting is seems working...

Can someone tell me the reason for this strange behaviour?
Cheers
Sudhir
Jun 4 '07 #1
2 1924
bartonc
6,596 Expert 4TB
Hi All,
I have a python program which was developed to for USB commincation. This program writes its results to .csv file.All is working fine on the PC with which we developed this program. Now I moved the same program to another PC here also its working almost ok expect that the program could not comeout of python(I dont receive any error message or exception) and I have force it quit( I mean End Now).
I am unable to open the .csv file until I close the cmd prompt

I tried to using
sys.exit(1)
os._exit(99)
os.abort()
noting is seems working...

Can someone tell me the reason for this strange behaviour?
Cheers
Sudhir
This sounds like an issue with the "USB commincation" part of the system. My guess is the read() thread that waits for USB packet is sitting there waiting. I'll dig up a thread where I have posted a working, multi-threaded usb reader that doesn't hang (after much development) when the application quits.
Jun 4 '07 #2
bartonc
6,596 Expert 4TB
This sounds like an issue with the "USB commincation" part of the system. My guess is the read() thread that waits for USB packet is sitting there waiting. I'll dig up a thread where I have posted a working, multi-threaded usb reader that doesn't hang (after much development) when the application quits.
Here is that link.
Jun 4 '07 #3

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

Similar topics

1
by: Mark McEahern | last post by:
Is there a straightforward way to get the exit code from a windows process? I want to write a script that runs a bunch of .sql files against SQL Server using osql. I want it to stop if there's...
8
by: Mike Maxwell | last post by:
<vent> I see there has been traffic over the years on this gripe, so just let me vent my frustration, and add another reason why 'exit' (or possibly exit() or quit() or halt() or some such) should...
2
by: sunyao | last post by:
Hi Friend, I write a linux shell script to call a python script inside. But I got a wrong exit code from Python exit code. The linux shell script as follows; #!/bin/bash MyPython.py exit $? ...
2
by: Anthon | last post by:
I have a small C program that restarts a python based server application if the exit value of the system("python -m pythonscript arg1 arg2 ...") is greater than 127 (using WEXITSTATUS on the...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.