views:

111

answers:

5

hi expert, hi develop code in python to scan wifi and send to the server, its working fine when execute manually, but i packaged it via http://www.python-packager.com by uploading my .py file and they create package for me as deb file for linux, and i download it and install the package but nothing happen when i click the .exe or set it as startup application,

why this happen, nothing is printed in the terminal

in .py file i'm having print statement to check manually to list out the wifi scan value, data to post to the server, response from the server once send

how this can be solve

thanks

+1  A: 

"How this can be solved?"

Use a standard packager. Read this: http://docs.python.org/distutils/introduction.html and this: http://pypi.python.org/pypi/pip and this: http://pypi.python.org/pypi/zc.buildout

S.Lott
+4  A: 

Hi

I'm the maintainer of the project, I thought I'd chime in and give my 2c.

I had a look at your program. With .deb's, it installs everything to /opt/application-name. So to debug-it, run it from the command line. eg. "/opt/Jemapoh_Wifi/Jemapoh_Wifi".

I just ran it myself and your programs gives the error "IOError: [Errno 2] No such file or directory: '/opt/Jemapoh_Wifi/config.txt'". So your program's looking for config.txt but you didn't upload it with the program. :-)

If you have any further problems, please email me or report a bug on Launchpad - http://launchpad.net/python-packager. There'll be a re-vamped version coming out soon, hopefully it'll make things easier to understand.

Hope that helps/makes sense.

Cheers, Jackson

Jackson Cooper
Hi Jackson, thanks 4 ur reply, yes its using config.txt, when i use python-packager site, its only asking to upload .py file, how to upload the config.txtthen i already manually add the config.txt into /opt/Jemapoh_Wifi and already try run in cmd line as u mention but nothing is happen,i also try to add as startup application, but nothing happen alsothanks
Apache
You can upload a .py file, a .zip file, a .tar or .tar.gz file to the site. Try making a zip file and put 2 files in it. The config.txt and the Python file for your program. And where it has "Upload Source", upload the zip file with the two files in it. Hope that helps!
Jackson Cooper
A: 

same problem comes in front of me...i also need solution of it,and i tried jackson answer but my problem same not solved....yet. pls help us.....if u can.i really need your help.

Business expansion
Hi and welcome to Stackoverflow. :) Upvote the question to "bump" it and dont post answers that doesnt answer the question. For more info, check the faq: http://stackoverflow.com/faq
mizipzor
A: 

Hi

The Python world has been talking about solutions for packaging and distributing Python libraries for a very long time. I remember when I was new in the Python world about a decade ago in the late 90s, it was considered important and urgent that the Python community implement something like Perl's CPAN. I'm sure too that this debate had started long before I started paying attention...........

Thanks for Sharing...................

Honda uk
A: 

Hi

I also need solution of it,and i tried jackson answer but my problem same not solved when, i use python-packager site, its only asking to upload .py file, how to upload the config.txt then i already manually add the config.txt into /opt/Jemapoh_Wifi and already try run in cmd line as u mention but nothing is happen, i also try to add as startup application, but nothing happen.......

Thanks for Sharing......

stevenage developments