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

Cannot start on Ubuntu 14.04 #1

Closed
kpuljek opened this issue Nov 19, 2014 · 10 comments
Closed

Cannot start on Ubuntu 14.04 #1

kpuljek opened this issue Nov 19, 2014 · 10 comments

Comments

@kpuljek
Copy link

kpuljek commented Nov 19, 2014

Hi!

I've tried searching online, but nobody seems to get this message.

The viberwrapper-indicator won't start with this terminal output:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in bootstrap_inner
self.run()
File "/usr/bin/viberwrapper-indicator", line 330, in run
sp_viber = subprocess.Popen([self.viber_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init

errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

<class 'Xlib.protocol.request.QueryExtension'>

Any ideas? Thank you!
Kristijan

@karas84
Copy link
Owner

karas84 commented Nov 20, 2014

Are you using an edited version of the file perhaps? That line (330) does not match with mine. Anyway the only think I can think of (looking at that "No such file or directory") is that it does not find viber on the predefined path ('/opt/viber/Viber'). Do you have viber installed? Is it installed in that path?

@kpuljek
Copy link
Author

kpuljek commented Nov 21, 2014

I installed it from the ppa:nilarimogard/webupd8 ppa as is, so perhaps that is the issue. I have assumed it's the same version as the one provided here, but maybe I'm wrong and there are indeed some modifications. I will try compliing it this evening and check the Viber installation path. Thank you!

@karas84
Copy link
Owner

karas84 commented Nov 27, 2014

Is it working? I'd really like some feedback about this so I can correct the code if there is a bug (and close the issue).

@ekho
Copy link

ekho commented Dec 2, 2014

Linux Mint 17 (Mate desktop)

Launched and exited after 5-10 seconds

$ viberwrapper-indicator 
<class 'Xlib.protocol.request.QueryExtension'>
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/bin/viberwrapper-indicator", line 333, in run
    gtk.main_quit()
RuntimeError: called outside of a mainloop

@karas84
Copy link
Owner

karas84 commented Dec 2, 2014

Hi i-ekho, what I made is an indicator for Unity, it is not supposed to work with other desktop environments, I'm sorry. Moreover, since it's been more than a week that kpuljek didn't reply I have to suppose that it is working for him now and so I'm closing this issue.

@karas84 karas84 closed this as completed Dec 2, 2014
@ekho
Copy link

ekho commented Dec 2, 2014

Ok, thx

@kpuljek
Copy link
Author

kpuljek commented Dec 4, 2014

Hey,

sorry for responding so late, been really busy and totally forgot about this, and the notification email ended up in my spam folder.

It turns out that my viber path is /usr/share/viber/Viber

Upon changing the path in the py file, I get the same error as above (I AM running unity, however):

<class 'Xlib.protocol.request.QueryExtension'>
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "viberwrapper-indicator.py", line 448, in run
gtk.main_quit()
RuntimeError: called outside of a mainloop

It does run viber for a few seconds, and the icon appears in the usual top left, out of place, position.

@karas84
Copy link
Owner

karas84 commented Dec 4, 2014

Did you get Viber right from viber's website? (The current url is the following: http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb) Because the one from the website has as installation path the one in the script (you can confirm that by downloading the deb I linked here and extract it somewhere, the executable should be in opt/viber and not in usr/share/viber).
My Viber is at version 4.2.2.6, can you check that (my executable in /opt/viber/Viber has the following md5sum: 668252631ed50ca9b10e4156dd32a3fc)? My guess is that somehow your Viber is not the same one I am using and my scritpt (although it's able to launch it) cannot find the running instance so after 10 seconds it kills it.

@kpuljek
Copy link
Author

kpuljek commented Dec 5, 2014

It was from the website indeed, but this is a bit newer version than I had and now it's installed in two places (?), however your indicator wrapper now runs this newer version and everything is okay. I have NO idea why it originally installed in the /usr/share, I install everything either through gdebi or the terminal with dpkg.

This can now be closed (it already is :) ), although I'm not sure I know exactly what happened. THANK YOU!

@karas84
Copy link
Owner

karas84 commented Dec 8, 2014

Glad to hear that it's working now :). Maybe you installed Viber right before the new version was pushed up online on the website, but anyway it's not important atm since it's working now :). Don't know if you noticed but I updated the wrapper and thanks to this issue now you can launch Viber minimized (sort of, the chat windows auto-closes after appearing for an instant), just launch the wrapper with --close-chat if you like the new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants