exxeleron / qPython

interprocess communication between Python and kdb+
http://www.devnet.de
Apache License 2.0
152 stars 89 forks source link

Twisted Integration #53

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi there!

I'm currently trying to get the Twisted integration example you provided to work, but I', running into a few issues. First of all: when I'm trying to connect to kdb the line self.transport.write(self.credentials + '\3\0') throws an TypeError telling me the "Data must not be unicode". So I tried changing it to self.transport.write(str(self.credentials + '\0').encode("utf-8")) (not the most sexy solution, I know) and the error disappeared... But as it usually goes, another showed up. This time a TypeError with cause "not all arguments converted during string formatting" popped up, and I do not seem to be able to find where It is coming from. Is this about data that's coming from kdb that is not being converted, or outgoing data?

The kdb database I'm currently working with has no users so I did not provide a username and password --> factory = IPCClientFactory('', '', onConnectSuccess, onConnectFail, onMessage, onError).

Could that be in the way of succes? I'm a bit clueless..

Thanks in advance!

ghost commented 6 years ago

Regular string injection like so: "%s\0" % self.credentials worked.. My bad...

maciejlach commented 6 years ago

As a User I would like to share a video of my choice on social media so that I am able to recommend it to my followers or leave social commentary