From: Werner F. B. <wer...@fr...> - 2010-03-29 13:13:05
|
Hi Tom, Can we keep it on the list for the archive - you might need to use reply to list or similar. On 29/03/2010 15:00, Tom wrote: > On 29/03/2010 13:25, Werner F. Bruhin wrote: >> Hi Tom, >> >> On 29/03/2010 12:52, Tom wrote: >>> hi, >>> >>> I am currently doing my university dissertation and have created a >>> program that collects statistics on basketball games and uploads an xml >>> file via ftp to a php script that generates a report. >>> >>> Running my program from the .py files it all works nicely but after i >>> package it using py2exe the ftp section does not work when the program >>> is lauched via the .exe. >> What is the meaning/details of "does not work"? Are you getting an >> exception, is not being executed ............................ >> >> Werner > hi sorry i was not clear, but "does not work" i mean the .exe runs and > the code executes yet it does not upload the file. there are no errors > that i can see. the program runs as if it is working i.e. the code for > the upload is basically, upload the file given then navigate the > QWebView to a url based upon the file passed, the webview tries to > show the generated output from the php but fails due to the file not > uploading. In a case like this I would add some print statements or better use the python logging module to give you some debugging tool with the exe. I use py2exe for a Python/wxPython app, so haven't used the libraries you use. So, I can only guess that maybe something is "failing" quietly instead of raising an exception, or you 'eat' an exception without realizing it. Put tons of print/logging statements into the section of the code which should do the upload. I.e. check that the ftp connection is made etc etc. Sorry for not being more help on this. Werner > > |