python packaging problem
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,开发者_JAVA百科 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
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
"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
精彩评论