Can't be launched after installation from the deb

Bug #794666 reported by Thibault Lemaitre
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
ComplexShutdown
Confirmed
Undecided
Unassigned

Bug Description

I download the deb file today, installed it with the software-center, and try to launch ComplexShutdown, but nothing happened!

I'm using Ubuntu 11.04. I first try with the Unity launcher's and then with the command line. I finally found that the both files complexshutdown.py and complexshutdown.ui (in the folder /usr/bin/) aren't executable.

I put the first one executable and tried again in command line. The result follows:
thibault@thibault-Latitude-D830:/home/thibault$ complexshutdown.py
Traceback (most recent call last):
  File "/usr/bin/complexshutdown.py", line 98, in <module>
    xlib = ctypes.cdll.LoadLibrary('libX11.so')
  File "/usr/lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libX11.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type

Is there any dependency I must install or something else to do?

Revision history for this message
Martin Hlavacek (mhlavacek-ca) wrote :

The problem is just a missing symbolic link. I assume libX11-6 is installed on your system. This command will solve it (on Ubuntu 11.04):

sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so

If it doesn't help, type

find /usr/lib -type f -name "libX11.so.6"

to obtain correct path to file libX11.so.6 and create the link with your path.
Any of files omplexshutdown.py and complexshutdown.ui doesn't need to be executable (and probably shouldn't be).

Revision history for this message
Nick Lemaire (koukin) wrote :

Thanks, it was indeed a missing symbolic link.
It is now working correctly.

Revision history for this message
Thibault Lemaitre (thibault.lemaitre) wrote :

Thanks, it works ! Great, I can try complexshutdown now !

Event it's not the original description of this bug, it seems that complexshutdown is not in the path : is it normal?

And also, one have to type the first letter of complexshutdown in the "search tool" of unity. It should be better if one could search on "shut" or "down", etc. I know that some application used that : I can for example find VLC by typing "multi" or "lect" as in French, it has the long name "Lecteur mutlimédia VLC". Is it possible?

Changed in complexshutdown:
status: New → Confirmed
Revision history for this message
humanplayer2 (humanplayer2) wrote :

Can you tell me how to fix the same problem for 64 bit 11.10 and 12.04?

Kind regards,
Rasmus

Revision history for this message
gogo (trebelnik-stefina) wrote :

PPA for EasyShutdown and ComplexShutdown:

https://launchpad.net/~trebelnik-stefina/+archive/myppa

Revision history for this message
Ron W (spamno) wrote :

If the above error occurs but on either a 32 or a 64bit system, in order for the window to show up correctly you only need to paste these commands to the terminal:

#create symlinks
sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libX11.so

#create program folder and program settings file
mkdir $HOME/.complexshutdown/
touch $HOME/.complexshutdown/settings.cfg

Have a nice evening
Ronald W

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.