maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Mosquitto, libmosquitto and friends (https://talk.maemo.org/showthread.php?t=69604)

xur17 2011-03-03 02:34

Re: [Announce] Mosquitto, libmosquitto and friends
 
I got it to work!

I posted on stackoverflow a few days ago here, and just remembered it today.

See the first and only answer. Add:
Code:

c_bool = c_int
right after the line:
Code:

from ctypes import *
I made this change to my mosquitto.py file, and everything is working fine now. Any chance you could change this in the version in the repositories?

Also: I don't think the mosquitto.py file is in the correct location to be detected as a library. I had to manually copy the file to the directory I was working in.

uvatbc 2011-03-03 03:20

Re: [Announce] Mosquitto, libmosquitto and friends
 
Quote:

Originally Posted by xur17 (Post 959324)
Do you have any clue how to fix the Maemo c_types python library (or who to talk to)?

I am really interested in writing a mosquitto client for TOR, but this is preventing me from doing that.

I hacked at it from the other direction - for every type that it failed to find, I tried defining it myself.
I haven't had enough time to pursue that course of action though.

Edit: Woops too late! I see you did just that.

uvatbc 2011-03-03 03:23

Re: [Announce] Mosquitto, libmosquitto and friends
 
Quote:

Originally Posted by xur17 (Post 959343)
I got it to work!

I posted on stackoverflow a few days ago here, and just remembered it today.

See the first and only answer. Add:
Code:

c_bool = c_int
right after the line:
Code:

from ctypes import *
I made this change to my mosquitto.py file, and everything is working fine now. Any chance you could change this in the version in the repositories?

Also: I don't think the mosquitto.py file is in the correct location to be detected as a library. I had to manually copy the file to the directory I was working in.

Excellent!
I'll put it into the repositories tonight.
I am not sure where the py file is supposed to be. I'll research a bit based on other py libraries and put symlinks so that it's searchable.

GreatGonzo 2011-03-03 03:42

Re: [Announce] Mosquitto, libmosquitto and friends
 
Code:

/usr/lib/python2.5/site-packages/
is where you need to put the symlink.

uvatbc 2011-03-03 07:24

Re: [Announce] Mosquitto, libmosquitto and friends
 
Build fired.
-> Link to mosquitto.py and pyc
-> c_bool = c_int

Should hit the repos in a few hours.

uvatbc 2011-03-23 06:18

Re: [Announce] Mosquitto, libmosquitto and friends
 
New build! Merged 0.9.3 into the codebase.
Testers please help test!

uvatbc 2011-03-26 08:37

Re: [Announce] Mosquitto, libmosquitto and friends
 
New build: Fixed a problem in the socket creation function.
Changeset has been propagated upstream, will resync when Roger releases the next version.

uvatbc 2011-07-01 15:12

Re: [Announce] Mosquitto, libmosquitto and friends
 
New build: Merge all the changes from Roger's 0.11.2 release.
Version bump.
Packages affected: libmosquitto, libmosquittopp and mosquitto.

uvatbc 2011-08-05 16:21

Re: [Announce] Mosquitto, libmosquitto and friends
 
I'm trying to get selected for an n950 to port mosquitto and libmosquitto to it.
Please put in a good word for me on this thread.


All times are GMT. The time now is 12:16.

vBulletin® Version 3.8.8