jafeha / parabird

Simple script written in python to build an os independent truecrypt encrypted usb-stick containing a portable thunderbird, enigmail, torbirdy and vidalia.
GNU General Public License v3.0
10 stars 7 forks source link

silent dependencies #40

Closed chewyf5 closed 11 years ago

chewyf5 commented 11 years ago

show up, which dependency/eis is/are missing and exit normally - now it shows a python stacktrace ;-)

jojoo- commented 11 years ago

good point, also see #38

jafeha: imo we should log the stacktrace to debug

jafeha commented 11 years ago

you're right, we have to return the missing programm, i will have a look at that. right now we're logging to error and exception which would be ok for me.

jafeha commented 11 years ago

here we go, that the problem:

[INFO::main]: Checking all Dependencies...
[ERROR::utils]: Missing Depedencies: dmg2img not installed, exiting...
[ERROR::utils]: Missing Depedencies: dmg2img not installed, exiting...
Traceback (most recent call last):
  File "/home/jafeha/Dokumente/git/parabird/utils.py", line 184, in dependency_check
    subprocess.check_call(checked_app, stdout=FNULL)
  File "/usr/lib/python2.7/subprocess.py", line 506, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[ERROR::main]: Dependency Checks failed large scale, exiting...
[ERROR::main]: Dependency Checks failed large scale, exiting...
Traceback (most recent call last):
  File "parabird_build.py", line 96, in <module>
    dependency_check("dmg2img")
  File "/home/jafeha/Dokumente/git/parabird/utils.py", line 193, in dependency_check
    sys.exit()
SystemExit
jafeha commented 11 years ago

closed for the moment.

jojoo- commented 11 years ago

other ideas: (c&p from irc, so it's in german)