Comments (12)
Thanks, investigating.
from mdns.
approach: f658137
pls try, should be fixed. One more Python3 issue.
from mdns.
I made this PR: #13
I still get an error (on python 3.4.1(debian sid) and 3.4.0(sailfishOS)):
python3 ex.py
Traceback (most recent call last):
File "ex.py", line 31, in <module>
info = ServiceInfo(d, n, inet_aton('127.0.0.1'), 12345, properties=txt)
File "/home/titilambert/projets_opensource/mdns/mdns/zeroconf.py", line 1367, in __init__
self.set_properties(self.properties)
File "/home/titilambert/projets_opensource/mdns/mdns/zeroconf.py", line 1393, in set_properties
self.sync_properties()
File "/home/titilambert/projets_opensource/mdns/mdns/zeroconf.py", line 1387, in sync_properties
self.text = dict_to_text(self.properties)
File "/home/titilambert/projets_opensource/mdns/mdns/zeroconf.py", line 237, in dict_to_text
result = ''.join((result, struct.pack('!c', chr(len(item))), item))
struct.error: char format requires a bytes object of length 1
from mdns.
If you can give me exact variables — what you provide to DNSServiceRegister() here (https://github.com/titilambert/HeySms/blob/master/heysms/lib/friend.py#L97 ) — I would be able to reproduce and fix.
from mdns.
Here my test:
import sys
from mdns.zeroconf import *
from socket import *
n = 'bala3._presence._tcp.local.'
d = '_presence._tcp.local.'
txt = {}
txt['1st'] = "self.fullname3"
txt['last'] = ""
txt['status'] = 'avail'
txt['port.p2pj'] = 12345
txt['nick'] = "self.fullnick3"
#txt['node'] = self.node
txt['jid'] = "self.node"
txt['email'] = "self.node"
txt['version'] = 1
txt['txtvers'] = 1
records = [16]
info = ServiceInfo(d, n, inet_aton('127.0.0.1'), 12345, properties=txt)
r.register_service(info)
r.engine.join()
from mdns.
Thanks!
from mdns.
Passes
from mdns.
Thanks !
I don't get any error, but I didn't sse any registered service and I don't see any packet sent (with wireshark)
It's still working correctly with python2
from mdns.
Continuing :) Excuse me for that mess with the third python.
from mdns.
Don't worry ! :) Thank to you to help me !
from mdns.
Try again :)
from mdns.
It's working ! Thanks !
from mdns.
Related Issues (9)
- How to advertise a service? HOT 14
- What is the minimal version of Python this lib should support? HOT 3
- Compatibility status with Bonjour (OSX, Win) and Avahi HOT 1
- RFC 6763 HOT 1
- Mysterious implementation of the write_name function HOT 1
- How to browse services ? HOT 24
- Python 3 support HOT 9
- Utf-8 error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdns.