Comment 5 for bug 793524

Revision history for this message
Philipp C. Heckel (binwiederhier) wrote : Re: [Bug 793524] Re: InitializationException: java.lang.NumberFormatException: For input string: \"Traceback (most recent call last):\"

Hi Isaak,

This doesnt get easier with all the distros :-d
Do you have an idea how to do that? Is there a way to make the script
work on python3 as well?

The only option I see for this is to make a wrapper script that tests
the distro... but that would be ugly^2 ... Java calls Bash calls
Python. I don't even like the "Java calls Python" version ...

On Tue, Jun 7, 2011 at 12:25 AM, isakkarlsson <email address hidden> wrote:
> You also need to run the script with "python2" instead of "python"
> (which is python3) on arch linux.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/793524
>
> Title:
>  InitializationException: java.lang.NumberFormatException: For input
>  string: \"Traceback (most recent call last):\"
>
> Status in Syncany:
>  Fix Committed
>
> Bug description:
>  I received this crash report via the Syncany report functionality.
>  Thanks for reporting @anonymous!
>
>  org.syncany.exceptions.InitializationException: java.lang.NumberFormatException: For input string: \"Traceback (most recent call last):\"
>         at org.syncany.gui.linux.LinuxNativeClient.startService(LinuxNativeClient.java:290)
>         at org.syncany.gui.linux.LinuxNativeClient.init(LinuxNativeClient.java:84)
>         at org.syncany.gui.tray.linux.LinuxTray.init(LinuxTray.java:51)
>         at org.syncany.Application.initUI(Application.java:175)
>         at org.syncany.Application.start(Application.java:105)
>         at org.syncany.Syncany.start(Syncany.java:92)
>         at org.syncany.Syncany.main(Syncany.java:49)
>  Caused by: java.lang.NumberFormatException: For input string: \"Traceback (most recent call last):\"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:481)
>         at java.lang.Integer.parseInt(Integer.java:514)
>         at org.syncany.gui.linux.LinuxNativeClient.startService(LinuxNativeClient.java:263)
>         ... 6 more
>
>
>  This  has to do with the new python script which is meant to show the tray icon. Instead of starting properly, the python script crashes. If other people have this problem, please do the following and post the results:
>
>  $ cd dist/bin
>  $ ./native.py /absolute/path/to/the/syncany/res/directory abc123
>
>  For me that would be
>  $ ./native.py /home/pheckel/Code/syncany/syncany/dist/res abc123
>
>  Thanks!
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/syncany/+bug/793524/+subscribe
>