Notices


Reply
Thread Tools
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#11
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.
 

The Following User Says Thank You to xur17 For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#12
Originally Posted by xur17 View Post
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.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.

Last edited by uvatbc; 2011-03-03 at 07:28.
 

The Following User Says Thank You to uvatbc For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#13
Originally Posted by xur17 View Post
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.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#14
Code:
/usr/lib/python2.5/site-packages/
is where you need to put the symlink.
__________________
Quick Widgets - http://wiki.maemo.org/Quick_Widgets
 

The Following User Says Thank You to GreatGonzo For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#15
Build fired.
-> Link to mosquitto.py and pyc
-> c_bool = c_int

Should hit the repos in a few hours.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#16
New build! Merged 0.9.3 into the codebase.
Testers please help test!
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#17
New build: Fixed a problem in the socket creation function.
Changeset has been propagated upstream, will resync when Roger releases the next version.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#18
New build: Merge all the changes from Roger's 0.11.2 release.
Version bump.
Packages affected: libmosquitto, libmosquittopp and mosquitto.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#19
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.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:03.