Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-28 Thread Gianfranco Costamagna
Hi Thomas, thanks for the full review :)

>- The following are not build time dependencies (OK, the setup script
>will issue a warning if some of them are not available, but that's just
>for info):
>
>gir1.2-gtk-3.0,
>gir1.2-notify-0.7,
>gobject-introspection,
>libgtk-3-bin,

removed

>python-docopt,>python-gi,
>python-yaml,
>python3-docopt,
>python3-gi,  
>python3-yaml,

yaml and docopt are listed in install_requires (setup.py).
For this reason I have to add them to build-dependencies to see them 
automatically added to runtime
dependencies (python:Depends substitution)

>- yaml/gi/docopt are runtime dependencies instead (yaml is technically
>not required, but recommended)

yaml if recommended shouldn't be in install_requires then?
gi is missing from the keyword

>>- gir1.2-gtk3.0 AND gir1.2-notify-0.7 are optional runtime dependencies
>>(again, recommended)

ok


>- a notification daemon is recommended (e.g. xfce4-notifyd or similar)
mmm there is nothing like a meta-package for this, right?

I added notification-daemon to recommends


https://packages.debian.org/unstable/notification-daemon
>- python-notify is not a runtime dependency
>

removed


>- I have added an optional dependency on python-keyutils in the 1.4 series
currently in new queue (thanks I noticed during the import of the new version 
:) )



>- I don't know about python-gi-cairo, what's that?
it should be the gi cairo binding, but it seems to be useless
https://packages.debian.org/unstable/python-gi-cairo


>- I don't know about xsltproc/docbook-xsl, they are at least not>directly 
>required by udiskie. So if they're needed, they should be
>resolved indirectly, right? (not sure, for what they would be needed)

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789453
they are used by a2x :) (manpage creation)


>- I think that gettext is only required for the build step. python has
>its own gettext implementation (or it brings it in as a dependency?)>that can 
>be used at runtime. (NOT SURE)


it is part of libpython*-stdlib package, so I guess we can drop it
(apt-get install python drags it, while apt-get install python-minimal doesn't)

>- I recommend using python3 from now on, I'm considering to abandon
>python2 in a future version altogether.

ok even better

>- I believe, I saw in some distribution that they would require the
>gnome-hicolor icon theme to prevent the udiskie package from taking
>ownership for the /usr/share/icons/hicolor folder, but I don't know how
>that works in your package manager;)


I don't think this is an issue in Debian

>Note, that I uploaded a new version (1.4.4) with important bug fixes for
>the legacy targets (udisks1 and/or python2).


I have it on my git, but I'll upload as soon as the new keyutils is accepted in 
unstable
and I fixed the above (and this bug fix reaches testing)



BTW from your wiki page
"Manual installation

First grep the following required runtime dependencies:"

I would say build-time dependencies.

cheers
(and a lot of thanks)


Gianfranco


>
>
> http://anonscm.debian.org/cgit/collab-maint/python-udiskie.git/tree/debian/control
>
> cheers!
>
> G.
>
>
> (new version uploaded a few seconds ago on unstable)
>



Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-24 Thread Gianfranco Costamagna
thanks you all!


BTW I would appreciate if you could look at build/runtime dependencies to see
if I missed any of them :)


http://anonscm.debian.org/cgit/collab-maint/python-udiskie.git/tree/debian/control

cheers!

G.


(new version uploaded a few seconds ago on unstable)



Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-24 Thread Thomas Gläßle
Hey,

Gianfranco Costamagna wrote on 12/24/2015 09:56 AM:
> thanks you all!
>
>
> BTW I would appreciate if you could look at build/runtime dependencies to see
> if I missed any of them :)

For a complete list, see:
https://github.com/coldfix/udiskie/wiki/Installation#manual-installation


- The following are not build time dependencies (OK, the setup script
will issue a warning if some of them are not available, but that's just
for info):

gir1.2-gtk-3.0,
gir1.2-notify-0.7,
gobject-introspection,
libgtk-3-bin,
python-docopt,
python-gi,
python-yaml,
python3-docopt,
python3-gi,   
python3-yaml,


- yaml/gi/docopt are runtime dependencies instead (yaml is technically
not required, but recommended)

- gir1.2-gtk3.0 AND gir1.2-notify-0.7 are optional runtime dependencies
(again, recommended)

- a notification daemon is recommended (e.g. xfce4-notifyd or similar)

- python-notify is not a runtime dependency

- I have added an optional dependency on python-keyutils in the 1.4 series

- I don't know about python-gi-cairo, what's that?

- I don't know about xsltproc/docbook-xsl, they are at least not
directly required by udiskie. So if they're needed, they should be
resolved indirectly, right? (not sure, for what they would be needed)

- I think that gettext is only required for the build step. python has
its own gettext implementation (or it brings it in as a dependency?)
that can be used at runtime. (NOT SURE)

- I recommend using python3 from now on, I'm considering to abandon
python2 in a future version altogether.

- I believe, I saw in some distribution that they would require the
gnome-hicolor icon theme to prevent the udiskie package from taking
ownership for the /usr/share/icons/hicolor folder, but I don't know how
that works in your package manager;)

Note, that I uploaded a new version (1.4.4) with important bug fixes for
the legacy targets (udisks1 and/or python2).


>
>
> http://anonscm.debian.org/cgit/collab-maint/python-udiskie.git/tree/debian/control
>
> cheers!
>
> G.
>
>
> (new version uploaded a few seconds ago on unstable)
>




signature.asc
Description: OpenPGP digital signature


Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-23 Thread Thomas Gläßle
Hey,

> I just switched to gtk-3, and pushed the new release on unstable.
Sadly, I found additional bugs with (a) python2 and (b) with the udisks1
backend. Trying to get that fixed in the next 2-3 days, sorry for the
inconvenience..

>
> udiskie-mount and udiskie-umount still work, and now launching udiskie from 
> console doesn't show any bad error.
> However I don't see the icon come up, not sure if because I don't have any 
> disk attached or because some runtime dependency is missing...
>
> Thomas, can you enlight me?

Did you start udiskie with `--tray`?
Under which environment are you running? I've already noticed that
ubuntu doesn't show the systray anymore. They replaced it with a similar
notification area for which a different API (AppIndicator) must be used.





signature.asc
Description: OpenPGP digital signature


Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-23 Thread Greg Bognar
I think we are now talking about different bugs.  I have now solved the bug
that I reported originally -- the tray icon showing up, but no menu.  It can
be fixed by installing the gir1.2-gtk-3.0 package.  (This is on Debian
testing, python3-udiskie.  I have not tested with python-udiskie.)

I suggest making gir1.2-gtk-3.0 a dependency of python3-udiskie.

Cheers,
Greg



Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-23 Thread Thomas Gläßle

> it works with --tray :)
>
> I fail to understand what does it without that parameter then :)

automount + notifications are enabled by default.


>
> thanks!
>
> G.
>
>




signature.asc
Description: OpenPGP digital signature


Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-23 Thread Gianfranco Costamagna
Hi,



>Sadly, I found additional bugs with (a) python2 and (b) with the udisks1

>backend. Trying to get that fixed in the next 2-3 days, sorry for the
>inconvenience..


not a problem :)

>Did you start udiskie with `--tray`?
>Under which environment are you running? I've already noticed that
>ubuntu doesn't show the systray anymore. They replaced it with a similar
>notification area for which a different API (AppIndicator) must be used.


it works with --tray :)

I fail to understand what does it without that parameter then :)

thanks!

G.



Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-23 Thread Gianfranco Costamagna
Hi Greg and Thomas, 


I just switched to gtk-3, and pushed the new release on unstable.

udiskie-mount and udiskie-umount still work, and now launching udiskie from 
console doesn't show any bad error.
However I don't see the icon come up, not sure if because I don't have any disk 
attached or because some runtime dependency is missing...

Thomas, can you enlight me?

(I still haven't ever used that trayicon)

cheers!

Gianfranco



Il Venerdì 18 Dicembre 2015 18:03, Gianfranco Costamagna 
 ha scritto:



Hi,  yes i found the same, but I failed to find the time to fix the gtk issue. 
Honestly i always used the cmdline tool!

I'll try to look at it soon I hope

Thanks for confirming the issue

G.


Sent from Yahoo Mail on Android

On Fri, 18 Dec, 2015 at 16:11, Greg Bognar
> wrote:
>Hi,
>
>After some more testing, it seems that udiskie works fine, it automounts
>volumes and even presents the password dialog window for encrypted volumes.
>
>What is *not* working is the menu that you are supposed to get when you
>click on the system tray icon.  More precisely, it works on one of my
>laptops but not on another one (both under i3).
>
>So it seems that the problem is some missing dependency -- probably some
>gtk2/3 library that is present on one of my machines but not the other one.
>I will try to compare the list of packages on the two machines.  In any
>case, it seems this bug could be fixed by adding the missing library to the
>package(s)'s dependencies.
>
>Cheers,
>Greg
>
>
>On Wed, 16 Dec 2015 14:25:02 + (UTC), Gianfranco Costamagna wrote:
>> 
>> Hi,
>> 
>> I don't use udiskie too much anymore,
>> so if anybody wants to give a try to this package is really welcome.
>> (also to maintain it)
>> 
>> I tried to fix this problem, but I failed, and I will probably not have time 
>> to look at it until a few weeks
>> 
>> cheers,
>> 
>> G.
>



Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-18 Thread Greg Bognar
Hi,

After some more testing, it seems that udiskie works fine, it automounts
volumes and even presents the password dialog window for encrypted volumes.

What is *not* working is the menu that you are supposed to get when you
click on the system tray icon.  More precisely, it works on one of my
laptops but not on another one (both under i3).

So it seems that the problem is some missing dependency -- probably some
gtk2/3 library that is present on one of my machines but not the other one.
I will try to compare the list of packages on the two machines.  In any
case, it seems this bug could be fixed by adding the missing library to the
package(s)'s dependencies.

Cheers,
Greg

On Wed, 16 Dec 2015 14:25:02 + (UTC), Gianfranco Costamagna wrote:
> 
> Hi,
> 
> I don't use udiskie too much anymore,
> so if anybody wants to give a try to this package is really welcome.
> (also to maintain it)
> 
> I tried to fix this problem, but I failed, and I will probably not have time 
> to look at it until a few weeks
> 
> cheers,
> 
> G.



Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-18 Thread Gianfranco Costamagna
Hi,  yes i found the same, but I failed to find the time to fix the gtk issue. 
Honestly i always used the cmdline tool!
I'll try to look at it soon I hope
Thanks for confirming the issue
G.
Sent from Yahoo Mail on Android 
 
  On Fri, 18 Dec, 2015 at 16:11, Greg Bognar wrote:   Hi,

After some more testing, it seems that udiskie works fine, it automounts
volumes and even presents the password dialog window for encrypted volumes.

What is *not* working is the menu that you are supposed to get when you
click on the system tray icon.  More precisely, it works on one of my
laptops but not on another one (both under i3).

So it seems that the problem is some missing dependency -- probably some
gtk2/3 library that is present on one of my machines but not the other one.
I will try to compare the list of packages on the two machines.  In any
case, it seems this bug could be fixed by adding the missing library to the
package(s)'s dependencies.

Cheers,
Greg

On Wed, 16 Dec 2015 14:25:02 + (UTC), Gianfranco Costamagna wrote:
> 
> Hi,
> 
> I don't use udiskie too much anymore,
> so if anybody wants to give a try to this package is really welcome.
> (also to maintain it)
> 
> I tried to fix this problem, but I failed, and I will probably not have time 
> to look at it until a few weeks
> 
> cheers,
> 
> G.
  


Bug#806560: python3-udiskie/python-udiskie do not start

2015-12-16 Thread Gianfranco Costamagna
Hi,

I don't use udiskie too much anymore,
so if anybody wants to give a try to this package is really welcome.
(also to maintain it)

I tried to fix this problem, but I failed, and I will probably not have time to 
look at it until a few weeks

cheers,

G.



Bug#806560: python3-udiskie/python-udiskie do not start

2015-11-28 Thread Greg Bognar
Subject: python3-udiskie/python-udiskie do not start
Package: python3-udiskie
Version: 1.3.2-1
Justification: renders package unusable
Severity: grave

Dear Maintainer,

udiskie fails to start up; the icon appears in the system tray but no menu 
appears when
I click on it.

With python-udiskie, xsession-errors says the following:

--
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:50: RuntimeWarning: You 
have imported the Gtk 2.0 module.  Because Gtk 2.0 was not designed for use 
with introspection some of the interfaces and API will fail.  As such this is 
not supported by the pygobject development team and we encourage you to port 
your app to Gtk 3 or greater. PyGTK is the recomended python module to use with 
Gtk 2.0
  warnings.warn(warn_msg, RuntimeWarning)
/usr/lib/python2.7/dist-packages/udiskie/prompt.py:24: PyGIWarning: Gtk was 
imported without specifying a version first. Use gi.require_version('Gtk', 
'2.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Typelib for 'libnotify' is not available. Possible causes include:
- libnotify is not installed
- the typelib is provided by a separate package
- libnotify was built with introspection disabled

Starting udiskie without notifications.
not mounting /org/freedesktop/UDisks2/block_devices/mmcblk0p1: already mounted
"sni-qt/4318" WARN  22:14:33.168 void StatusNotifierItemFactory::connectToSnw() 
Invalid interface to SNW_SERVICE 
[i3bar/src/xcb.c:679] ERROR: Window 0282 violates the XEMBED protocol, 
_XEMBED_INFO not set
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/udiskie/tray.py", line 319, in 
_activate
self._popup_menu(icon, button=0, time=Gtk.get_current_event_time())
  File "/usr/lib/python2.7/dist-packages/udiskie/tray.py", line 325, in 
_popup_menu
m.popup(parent_menu_shell=None,
AttributeError: 'Menu' object has no attribute 'popup'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/udiskie/tray.py", line 319, in 
_activate
self._popup_menu(icon, button=0, time=Gtk.get_current_event_time())
  File "/usr/lib/python2.7/dist-packages/udiskie/tray.py", line 325, in 
_popup_menu
m.popup(parent_menu_shell=None,
AttributeError: 'Menu' object has no attribute 'popup'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/udiskie/tray.py", line 319, in 
_activate
self._popup_menu(icon, button=0, time=Gtk.get_current_event_time())
  File "/usr/lib/python2.7/dist-packages/udiskie/tray.py", line 325, in 
_popup_menu
m.popup(parent_menu_shell=None,
AttributeError: 'Menu' object has no attribute 'popup'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/udiskie/tray.py", line 325, in 
_popup_menu
m.popup(parent_menu_shell=None,
AttributeError: 'Menu' object has no attribute 'popup'
--

With python3-udiskie installed, xsession-errors have the following error:

--
/usr/lib/python3/dist-packages/gi/overrides/Gtk.py:50: RuntimeWarning: You have 
imported the Gtk 2.0 module.  Because Gtk 2.0 was not designed for use with 
introspection some of the interfaces and API will fail.  As such this is not 
supported by the pygobject development team and we encourage you to port your 
app to Gtk 3 or greater. PyGTK is the recomended python module to use with Gtk 
2.0
  warnings.warn(warn_msg, RuntimeWarning)
/usr/bin/udiskie:9: PyGIWarning: Gtk was imported without specifying a version 
first. Use gi.require_version('Gtk', '2.0') before import to ensure that the 
right version gets loaded.
  load_entry_point('udiskie==1.3.2', 'console_scripts', 'udiskie')()
Typelib for 'libnotify' is not available. Possible causes include:
- libnotify is not installed
- the typelib is provided by a separate package
- libnotify was built with introspection disabled

Starting udiskie without notifications.
not mounting /org/freedesktop/UDisks2/block_devices/mmcblk0p1: already mounted
"sni-qt/5786" WARN  22:20:51.131 void StatusNotifierItemFactory::connectToSnw() 
Invalid interface to SNW_SERVICE 
[i3bar/src/xcb.c:679] ERROR: Window 0282 violates the XEMBED protocol, 
_XEMBED_INFO not set
--

It seems some package is not installed, but I don't know what is missing.

Best,
Greg

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-udiskie depends on:
ii  gettext0.19.6-1
ii  gobject-introspection  1.46.0-2
ii  python-notify  0.1.1-4
ii  python3-docopt 0.6.2-1
ii  python3-gi 3.18.2-2
ii  python3-pkg-resources  18.4-2
ii  python3-yaml   3.11-2+b1
ii