[Create package] Wiican

Bug #501342 reported by Christoph Korn
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GetDeb Software Portal
Fix Released
Medium
Christoph Korn
WiiCan
Invalid
Undecided
Unassigned

Bug Description

Description: Simple wiimote usage assistant and mapping manager
 Wiican it's an user-friendly systray application for use
 and configure wiimote (or Wii remote controller).
 On backend it's wminput , the cwiid event driver for wiimote.
 .
 It tracks if the needed bluetooth adapter it's available and drives
 the user into the process of connect/disconnect wiimote
 .
 A mapping manager it's supplied for edit and create multiple wiimote
 configurations.

Homepage: http://launchpad.net/wiican

Revision history for this message
Christoph Korn (c-korn) wrote :

I took the packages from the PPA as starting point.

Lintian reports these errors:
W: wiican: script-in-etc-init.d-not-registered-via-update-rc.d /etc/init.d/wiican
N:
N: The package installs an /etc/init.d script which is not registered in
N: the postinst script. This is usually a bug, unless you omit the links
N: intentionally for some reason or create the links some other way.
N:
N: Severity: normal, Certainty: possible
N:
W: wiican: init.d-script-missing-lsb-section /etc/init.d/wiican
N:
N: This /etc/init.d script does not have an LSB keyword section (or the ###
N: BEGIN INIT INFO tag is incorrect). This section provides description and
N: runlevel information in a standard format and provides dependency
N: information that can be used to parallelize the boot process. Please
N: consider adding it.
N:
N: Refer to http://wiki.debian.org/LSBInitScripts for details.
N:
N: Severity: normal, Certainty: certain
N:

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Since http://wiki.debian.org/LSBInitScripts doesn't teach me how to prevent those lintian warnings, i'm going to check how other packages provides the respective upstart jobs.

Anyway it makes sense to me: upstart job files doesn't need to be registered via update-rc.d or provides a LSB-kind header at all.

Revision history for this message
Juanje Ojeda (juanje) wrote :

Actually this seems to be not a wiican's bug, but a lintian's one:

http://bugs.launchpad.net/ubuntu/+source/lintian/+bug/496798

Revision history for this message
Christoph Korn (c-korn) wrote :

Ok, I uploaded the package to the getdeb karmic apps testing repository.

I have no wii controller around so I cannot test it.

Changed in getdeb.net:
status: Triaged → Fix Committed
Revision history for this message
Christoph Korn (c-korn) wrote :

Package has been built for karmic.

Revision history for this message
Christoph Korn (c-korn) wrote :
Revision history for this message
J. Félix Ontañón (fontanon) wrote :

There must be some problems with the URL:

Forbidden
You don't have permission to access /getdeb/ubuntu/pool/apps/w/wiican/ on this server.

Revision history for this message
Christoph Korn (c-korn) wrote :
Revision history for this message
Christoph Korn (c-korn) wrote :

Taking wiican 0.2.1-0ubuntu1 as starting point.

Changed in getdeb.net:
status: Fix Committed → In Progress
Revision history for this message
Christoph Korn (c-korn) wrote :

$ wiican
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/wiican", line 58, in <module>
    wiimanager = wiimotemanager.WiimoteManager()
  File "/usr/lib/pymodules/python2.6/wiican/wiimotemanager.py", line 74, in __init__
    self.__bluediscover = BlueDiscover()
  File "/usr/lib/pymodules/python2.6/wiican/wiimotemanager.py", line 56, in __init__
    self.__bus = dbus.SystemBus()
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 202, in __new__
    private=private)
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 108, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 125, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

In lucid it crashes with this output.

Changed in getdeb.net:
status: In Progress → Incomplete
Revision history for this message
Christoph Korn (c-korn) wrote :

Is anyone interested in a package actually ?

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Wop! Hi Christoph,

Sorry for forgetting about this. I Really don't know about that traceback. It seems to be runned in a system without dbus or something like, isn't?

Anyway, i don't want to cause you any trouble, maybe we can wait for Wiican 0.3 and try to package again.

Thanks for your interest.

tags: added: packaging
Christoph Korn (c-korn)
Changed in getdeb.net:
status: Incomplete → Fix Released
Revision history for this message
Yoshi (akira44oka-regist) wrote :

I was redirected here to leave a message by J. Félix Ontañón.

I found wiican 0.3.0-1~getdeb1 at getdeb.net.
And I installed it on ubuntu 10.04.

But I had to do 2 more things to run wiican correctly.

1. I had to install "python-ply" separately using synaptic.
2. I have to "cd /usr/share/wiican" to manually change the current directory before running,
    otherwise get error saying:
          Traceback (most recent call last):
            File "/usr/bin/wiican", line 297, in <module>
              wiican = WiimoteStatusIcon()
            File "/usr/bin/wiican", line 62, in __init__
              if not builder.add_from_file(WIIMOTEMANAGER_UI):
          glib.GError: can't open './wiimotemanager.ui' : No such file or directory

After setting above two, it starts running.

But when I tried to create a new mapping file, I get an error saying:
          Traceback (most recent call last):
            File "/usr/lib/pymodules/python2.6/wiican/ui/managerdlg.py", line 84, in new_btn_clicked_cb
              mapping_editor_dlg = MappingEditorDialog(Mapping())
            File "/usr/lib/pymodules/python2.6/wiican/ui/editordlg.py", line 129, in __init__
              48, 48)
          glib.GError: failed to open file './wiican.svg' : No such file or directory

I still get some warnings saying:
          (wiican:3846): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient
but this is not quite a problem.

Now, this is my question. If these are just about a path problem, then where or how to declare the path to the wiican?

I'm not sure if these could be called bug,
but I hope them to be fixed in the next release.

Revision history for this message
mikey67156 (mikey67156) wrote :

I'm running Ubuntu 10.04 and am getting the same result.

mikey@mikey-laptop:~$ wiican

(wiican:5426): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:5426): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:5426): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:5426): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient
Traceback (most recent call last):
  File "/usr/bin/wiican", line 297, in <module>
    wiican = WiimoteStatusIcon()
  File "/usr/bin/wiican", line 62, in __init__
    if not builder.add_from_file(WIIMOTEMANAGER_UI):
glib.GError: Failed to open file './wiimotemanager.ui': No such file or directory
mikey@mikey-laptop:~$

Has anyone figured the answer to this. I'm stuck. I've talked to Felix and he directed me here as well.

Thanks,
Mike

Revision history for this message
Christoph Korn (c-korn) wrote :

Taking wiican 0.3.0-1~getdeb1 as starting point.

Changed in getdeb.net:
status: Fix Released → In Progress
Revision history for this message
Christoph Korn (c-korn) wrote :

The prefix was set to /usr/local instead of /usr

Changed in wiican:
status: New → Invalid
Revision history for this message
Christoph Korn (c-korn) wrote :

Package has been built for lucid.

Changed in getdeb.net:
status: In Progress → Fix Committed
tags: added: tested-lucid.amd64
Revision history for this message
Christoph Korn (c-korn) wrote :

Published.

Thanks.

---------------
wiican (0.3.0-1~getdeb2) lucid; urgency=low

  * debian/control: Depend on python-ply
  * debian/patches/load_icons.patch:
    Set the prefix to /usr (LP: #501342)

 -- Christoph Korn <email address hidden> Tue, 14 Sep 2010 18:13:17 +0200

Changed in getdeb.net:
status: Fix Committed → Fix Released
Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Cool! It seems to be a good packaging for wiican 0.3.0.

Maybe shall i ask you to change the homepage reference at http://www.getdeb.net/software/wiican from launchpad to the real homepage http://fontanon.org/wiican ?

And maybe you want to take some of the new snapshots for wiican 0.3.0 at http://picasaweb.google.com/felixonta/Wiican03Snapshots

Thanks Christoph!

Revision history for this message
mikey67156 (mikey67156) wrote :

I did a complete removal, and reinstalled the updated deb file (both trough Synaptic, and getdeb). I am getting a very similar error.

mikey@mikey-laptop:~$ wiican

(wiican:1549): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:1549): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:1549): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:1549): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient
Traceback (most recent call last):
  File "/usr/bin/wiican", line 306, in <module>
    wiican = WiimoteStatusIcon()
  File "/usr/bin/wiican", line 71, in __init__
    if not builder.add_from_file(WIIMOTEMANAGER_UI):
glib.GError: Failed to open file './wiimotemanager.ui': No such file or directory
mikey@mikey-laptop:~$

Is there something I need to remap?

Revision history for this message
Yoshi (akira44oka-regist) wrote :

Thanks Christoph!!
I tried the new version, and I see the definite progress.

What changed:
  Now I don't have to install python-ply manually.
  Now I don't have to change directory to /usr/share/wiican/ before running the program.
     so I can run this program by clicking the shortcut in the menu.
  Now I don't have to modify the /etc/modules file or manually modprobing for the uimput to work.
    (I don't know if this is something related to the new update?)

What is not changed:
  After running the program. Trying to create the new mapping, I get an error saying:

   Traceback (most recent call last):
     File "/usr/lib/pymodules/python2.6/wiican/ui/managerdlg.py", line 84, in new_btn_clicked_cb
        mapping_editor_dlg = MappingEditorDialog(Mapping())
     File "/usr/lib/pymodules/python2.6/wiican/ui/editordlg.py", line 136, in __init__
       48, 48)
   glib.GError: failed to open file '/usr/share/wiican/wiican.svg' : No such file or directory

With this, looks like the location of wiican.svg is now fixed at /usr/share/wiican/.
So I copied the wiican.svg file from /usr/share/pixmaps/ to the wiican directory
and now it starts working.

I still get some warnings about locale..though it's working.
Thanks again for the quick fix!!

Revision history for this message
Yoshi (akira44oka-regist) wrote :

Well that's what I thought... everything is working...
However...

When I tried to save the new mapping file. I get permission error.
When wiican was installed, looks like ~/.local/share/wiican directory was created by root.
and the directory access permission is
       drwxr-xr-x 5 root root 4096 2010-09-07 09:36 wiican

no wonder..
So I chowned it to a desktop user. and it's now working.

This also may want to be added to the next fix?
Thanks.

PS: nice wiimote icons, Felix!!

Revision history for this message
Christoph Korn (c-korn) wrote :

Taking wiican 0.3.0-1~getdeb2 as starting point.

Changed in getdeb.net:
status: Fix Released → In Progress
Revision history for this message
Christoph Korn (c-korn) wrote :

The problem that ~/.local/share/wiican is owned by root was probably caused by you running wiican as root. I could not reproduce it here.

@mikey67156:
I could not reproduce your problem here.
What is the output of:
apt-cache policy wiican
?

Revision history for this message
Christoph Korn (c-korn) wrote :

Package has been built for lucid.

Changed in getdeb.net:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Christoph Korn (c-korn) wrote :

Published.

Thanks.

---------------
wiican (0.3.0-1~getdeb3) lucid; urgency=low

  * Place wiican.svg in /usr/share/wiican (LP: #501342)

 -- Christoph Korn <email address hidden> Fri, 17 Sep 2010 23:24:12 +0200

Revision history for this message
Yoshi (akira44oka-regist) wrote :

Thanks, it looks like all working!!

Well, strange is that I certainly selected "delete all (including settings)" once when I reinstall the apps using the Synaptic,
but did not delete the $HOME/.local/share/wiican directory... that had resumed the problem.

Thanks

Revision history for this message
Christoph Korn (c-korn) wrote :

"Delete all (including settings" means that it deletes configuration files in /etc.
But it never touches your $HOME directory.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Hi Christoph,

Don't know if this is the correct bug to report wiican-0.3.1 packaging errors. If i'm wrong just point me where to report this bugs:

* Wiican-0.3.1 getdeb packages lacks on hal as dependency and python-yaml it's not a dependency nevemore.
* An upstream bug: udev rule it's installed into /usr/lib/udev/rules.d instead of /lib/udev/rules.d The filename for the rule it's wrong too, the right name it's 99-uinput.rules but it's named 99-uinput-rules

The upstream bugfix has been committed on trunk branch.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Also, due uinput module i'ts builted into the kernel in Ubuntu 10.10 there's no need for the /etc/init/wiican.conf file at this distribution anymore.

Revision history for this message
Christoph Korn (c-korn) wrote :

Thanks for the information.

Changed in getdeb.net:
status: Fix Released → Confirmed
Revision history for this message
Christoph Korn (c-korn) wrote :

Taking wiican 0.3.1-1~getdeb1 as starting point.

Changed in getdeb.net:
status: Confirmed → In Progress
Revision history for this message
Christoph Korn (c-korn) wrote :

Package has been built for lucid.

Changed in getdeb.net:
status: In Progress → Fix Committed
tags: added: tested-maverick.amd64
Changed in getdeb.net:
status: Fix Committed → Fix Released
Revision history for this message
Christoph Korn (c-korn) wrote :

Published.

Thanks.

---------------
wiican (0.3.1-1~getdeb2) lucid; urgency=low

  * debian/control: Remove dependeny on python-yaml and add hal.
  * debian/patches/172_171.diff: Backport changes from upstream (LP: #501342)

 -- Christoph Korn <email address hidden> Mon, 01 Nov 2010 18:07:10 +0100

Revision history for this message
trab (roberto-trabattoni) wrote :

I get wiican 0.3.1-1~getdeb2 , I have ubuntu 10.4

but it doesn't work:

roberto@roberto-desktop:~$ wiican

(wiican:3433): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:3433): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:3433): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

(wiican:3433): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient
Traceback (most recent call last):
  File "/usr/bin/wiican", line 314, in <module>
    launch_statusicon()
  File "/usr/bin/wiican", line 273, in launch_statusicon
    wiican = WiimoteStatusIcon()
  File "/usr/bin/wiican", line 62, in __init__
    if not builder.add_from_file(WIIMOTEMANAGER_UI):
glib.GError: Apertura del file "./wiimotemanager.ui" non riuscita: Nessun file o directory

it's the same of "mikey67156 wrote on 2010-09-15"
but I don't find an answer to that

what i'm doing wrong?

thx

Revision history for this message
Christoph Korn (c-korn) wrote :

Can you try this:
LANG=C wiican

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

Other bug subscribers

Remote bug watches

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