I assure you I'm using Python's bind correctly - this isn't my first rodeo :-). self.port resolves to the path name, in that code. The test program I wrote worked on my system as I expected it to. Regarding the documentation you're referring to: the documentation on that page says "The format of address depends on the address family — see above". Scanning back up the page, it says "Socket addresses are represented as follows: A single string is used for the AF_UNIX address family.". The type of socket here is indeed an AF_UNIX socket, and the address is its path name. Anyway, this is starting to get pretty far off topic for calendar server: basically, in this case, there's something wrong with the underlying platform; either Python or the kernel or some library that a build of Python depends on. For some reason, one of these components can't open a UNIX socket. Once that's addressed (whatever the problem is) the server should work fine. On Jun 8, 2011, at 11:05 PM, Scott Cherf wrote:
John -
Thanks, I was thinking the same thing myself and was reading that page when I received your mail.
Glyph had a simple test to see if my installation of python was working correctly. The actual line that's reporting the error is in the file unix.py, which shows up in the Twisted/twisted/internet/unix.py file at line 89 and reads:
skt.bind(self.port)
I'm not sure what self.port resolves to.
Regards, Scott.
On Jun 8, 2011, at 10:35 PM, Holland, John wrote:
On 09.06.2011, at 07:25, "Scott Cherf" <cherf@ambient-light.com> wrote:
Using the fresh python 2.6 installed at /opt/local/bin/python I observed the following:
[alphonse:tags/release/Twisted] cherf% python Python 2.6.6 (r266:84292, Jun 8 2011, 18:50:17) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import socket skt = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) skt.bind("some.socket") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 1, in bind socket.error: [Errno 22] Invalid argument
I believe your using pythons bind incorrectly. Have a look at http://docs.python.org/release/2.6.6/library/socket.html ___________________________________
Cellent Finance Solutions AG
Firmensitz: Calwer Straße 33, 70173 Stuttgart Registergericht: Amtsgericht Stuttgart, HRB 720743 Vorstand: Thomas Wild Vorsitzender des Aufsichtsrats: Rudolf Zipf
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users