Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError on Windows #225

Closed
daniele-athome opened this issue Dec 10, 2015 · 3 comments
Closed

TypeError on Windows #225

daniele-athome opened this issue Dec 10, 2015 · 3 comments

Comments

@daniele-athome
Copy link

Using version 0.8.0.0.1 on Windows 7.

I StatusIcon    Using backend StatusIconGTK3 (primary)
Traceback (most recent call last):
  File "c:\syncthing-gui\syncthing_gtk\app.py", line 118, in do_startup
  File "c:\syncthing-gui\syncthing_gtk\app.py", line 321, in setup_connection
  File "c:\syncthing-gui\syncthing_gtk\app.py", line 369, in show_wizard
  File "c:\syncthing-gui\syncthing_gtk\wizard.py", line 62, in __init__
  File "c:\syncthing-gui\syncthing_gtk\wizard.py", line 181, in __init__
  File "c:\syncthing-gui\syncthing_gtk\wizard.py", line 470, in init_page
TypeError: bad operand type for unary +: 'unicode'

After that, an empty tray icon is created and the main window is empty. Any action on any menu has no effect.

syncthing-gtk-win32

I have a system-wide Python 2.5 installation on Windows, but I see that Syncthing-GTK has its own 2.7 stuff.

@kozec
Copy link
Owner

kozec commented Dec 10, 2015

Do you have accented or other non-ascii character in your home directory path?

@daniele-athome
Copy link
Author

No I don't: C:\Users[username]; username is a combination of plain letters and numbers.

@daniele-athome
Copy link
Author

I think it has been fixed in master:
https://github.com/syncthing/syncthing-gtk/blob/v0.8.0.0.1/syncthing_gtk/wizard.py#L469

self.label = WrappedLabel(
    "<b>" + _("Syncthing is generating RSA key and certificate.") + "</b"> +
    "\n\n" +
    _("This may take a while...")
)

That HTML tag is uncorrectly closed (the close tag sign is outside the string).
I think we can close this. Sorry I didn't check/try the latest code.

Repository owner locked and limited conversation to collaborators Nov 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants