I am writing a simple app to interact with DAAP (itunes shares). I would like to use pyzeroconf as the zeroconf library, but I am running into some problems with it. Is this project still maintained, or would I be better off using another library instead (like Avahi)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In hopes that someone will respond, this is my problem.
Under linux, when I do a call to Zeroconf.getServiceInfo it always returns None. I saw that someone else had this issue and fixed it by changing his /etc/hosts file. I have played around with that, but was not able to get the same results.
Here is an example. If I run the test in Zeroconf.py, this is the result:
Multicast DNS Service Discovery for Python, version 0.12
1. Testing registration of a service...
Registering service...
Registration done.
2. Testing query of service information...
Getting ZOE service: None
Query done.
3. Testing query of own service...
Getting self: None
Query done.
4. Testing unregister of service information...
Unregister done.
Notice that under 3 "Getting ZOE service: None" shows that the object returned from getServiceInfo is none.
I could really use some help here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For the record, I'm having the exact same problem. In fact whenever I call getServiceInfo I am returned None. I an experiencing this problem on both Apple OSX (Tiger) and Linux Ubuntu. Any help would be appreciated...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have written a patch that fixes this issue and also the issue of Zeroconf.py not detecting services on startup. This patch has fixed all of the problems that I have experienced, but I am only using a subset of the Zeroconf.py features so I don't know if it breaks anything in the process (I am only using the library to connect to services, not to create any services).
Thanks very (very, very!) much, that works a treat. I'm now able to discover services without any problems.
For the record, if I run the test in Zeroconf.py, this is now the result:
Multicast DNS Service Discovery for Python, version 0.12
1. Testing registration of a service...
Registering service...
Registration done.
2. Testing query of service information...
Getting ZOE service: None
Query done.
3. Testing query of own service...
Getting self: service[My Service Name._http._tcp.local.,127.0.0.1:1234,a=test valuever...]
Query done.
4. Testing unregister of service information...
Unregister done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since the project appears to be abandoned on sourceforge, and there is no code in CVS, I have registered this project in launchpad so that I can apply the patches which are sitting in the tracker. If Paul shows up I will gladly hand over control of the project to him.
The project page is here: https://launchpad.net/pyzeroconf
And there is a bazaar branch which has the 3 patches from sourceforge applied. I will apply other patches or give other people commit access if anyone is actively working with this code.
cheers,
-elliot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am writing a simple app to interact with DAAP (itunes shares). I would like to use pyzeroconf as the zeroconf library, but I am running into some problems with it. Is this project still maintained, or would I be better off using another library instead (like Avahi)?
In hopes that someone will respond, this is my problem.
Under linux, when I do a call to Zeroconf.getServiceInfo it always returns None. I saw that someone else had this issue and fixed it by changing his /etc/hosts file. I have played around with that, but was not able to get the same results.
Here is an example. If I run the test in Zeroconf.py, this is the result:
Multicast DNS Service Discovery for Python, version 0.12
1. Testing registration of a service...
Registering service...
Registration done.
2. Testing query of service information...
Getting ZOE service: None
Query done.
3. Testing query of own service...
Getting self: None
Query done.
4. Testing unregister of service information...
Unregister done.
Notice that under 3 "Getting ZOE service: None" shows that the object returned from getServiceInfo is none.
I could really use some help here.
For the record, I'm having the exact same problem. In fact whenever I call getServiceInfo I am returned None. I an experiencing this problem on both Apple OSX (Tiger) and Linux Ubuntu. Any help would be appreciated...
I have written a patch that fixes this issue and also the issue of Zeroconf.py not detecting services on startup. This patch has fixed all of the problems that I have experienced, but I am only using a subset of the Zeroconf.py features so I don't know if it breaks anything in the process (I am only using the library to connect to services, not to create any services).
The patch is here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1600775&group_id=100909&atid=628622
Thanks very (very, very!) much, that works a treat. I'm now able to discover services without any problems.
For the record, if I run the test in Zeroconf.py, this is now the result:
Multicast DNS Service Discovery for Python, version 0.12
1. Testing registration of a service...
Registering service...
Registration done.
2. Testing query of service information...
Getting ZOE service: None
Query done.
3. Testing query of own service...
Getting self: service[My Service Name._http._tcp.local.,127.0.0.1:1234,a=test valuever...]
Query done.
4. Testing unregister of service information...
Unregister done.
Hi!
Since the project appears to be abandoned on sourceforge, and there is no code in CVS, I have registered this project in launchpad so that I can apply the patches which are sitting in the tracker. If Paul shows up I will gladly hand over control of the project to him.
The project page is here: https://launchpad.net/pyzeroconf
And there is a bazaar branch which has the 3 patches from sourceforge applied. I will apply other patches or give other people commit access if anyone is actively working with this code.
cheers,
-elliot