Active Topics

 


Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
So, I have an app written with Python 3, using the requests module for the http API and gi.repository.Notify for showing notifications. Now I'd like to port it to Fremantle.

And here the problem arises. There are virtually no modules for Python 3 on Fremantle. Is there any way I could bundle the modules with my app?

I guess that porting the needed modules from Debian is out of reach. And requires much too much work.

Old contents:
I'm working on a simple app written in python3 which core feature is displaying notifications. It already works on desktop using the python bindings for libnotify.

Code:
import gi
gi.require('Notify', '0.7')
from gi.repository import Notify

# and so on
Now I'd like to port it to Fremantle. There are no binding for libnotify for python3 on Fremantle, no dbus module for python3.

I'll have to create a separate method of displaying notifications and I don't mind it. But what method would you suggest?
Using shell and `dbus-send` comes to my mind but its awful.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2016-08-16 at 11:02.
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 391 | Thanked: 908 times | Joined on Aug 2011 @ suncity
#2
Hi,

I do not know whether it is working with python3 but maybe you can try this.

jm
 

The Following User Says Thank You to justmemory For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#3
Basically, the only solution for me seems to be running this all in Easy Debian. After small patching one can even easily run daemons that way.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#4
What modules does it need? Easy Debian sounds like overkill.

I've still got a series of Perl modules to upload to fix get_iplayer. I posted a RFC to see what the preferred way of doing it would be (minimal to get it working vs more packages but potentially better performance but more to maintain) but never got a proper response.
 

The Following 2 Users Say Thank You to Android_808 For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#5
Originally Posted by Android_808 View Post
What modules does it need? Easy Debian sounds like overkill.

I've still got a series of Perl modules to upload to fix get_iplayer. I posted a RFC to see what the preferred way of doing it would be (minimal to get it working vs more packages but potentially better performance but more to maintain) but never got a proper response.
Basically:
Code:
import notify2
import xdg.BaseDirectory
import requests
or counterpart.

Our dbus is too old for the current Debian version of python-dbus, notify2 uses dbus.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:20.