469,622 Members | 2,142 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

thread module on NetBSD

I've compiled Python 2.3.3 on NetBSD and the thread (and therefore the
threading) module is not available.
Am I missing the module because of the way I made the binary?
I could use the dummy_threading module, but then I'm sure I'd run into
deadlocks.

Thanks
Jul 18 '05 #1
2 1541
In article <d7**************************@posting.google.com >,
sa********@hotmail.com (Sandeep Gupta) wrote:
I've compiled Python 2.3.3 on NetBSD and the thread (and therefore the
threading) module is not available.
Am I missing the module because of the way I made the binary?
I could use the dummy_threading module, but then I'm sure I'd run into
deadlocks.


NetBSD has finally gotten around to supporting threads, but
you'll have to install 2.0 beta for that. NetBSD 1.6 does
not implement threads, so they won't be supported in Python
there. I occasionally use an early 2.0 beta, and it works
pretty well for me, but I don't expect the ports coverage
is very good yet.

Speaking of ports, I see there is a python23-pth-2.3.4nb2,
which might be what you need if GNU pth will serve in place
of real threads. I assume that's what "pth" refers to, I
have no experience with it (but have used GNU pth on NetBSD.)

Donn Cave, do**@u.washington.edu
Jul 18 '05 #2
In article <do************************@gnus01.u.washington.ed u>,
Donn Cave <do**@u.washington.edu> wrote:


In article <d7**************************@posting.google.com >,
sa********@hotmail.com (Sandeep Gupta) wrote:
I've compiled Python 2.3.3 on NetBSD and the thread (and therefore the
threading) module is not available.
Am I missing the module because of the way I made the binary?
I could use the dummy_threading module, but then I'm sure I'd run into
deadlocks.


NetBSD has finally gotten around to supporting threads, but
you'll have to install 2.0 beta for that. NetBSD 1.6 does
not implement threads, so they won't be supported in Python
there. I occasionally use an early 2.0 beta, and it works
pretty well for me, but I don't expect the ports coverage
is very good yet.

Speaking of ports, I see there is a python23-pth-2.3.4nb2,
which might be what you need if GNU pth will serve in place
of real threads. I assume that's what "pth" refers to, I
have no experience with it (but have used GNU pth on NetBSD.)


First of all, what you refer to as "ports" here are known as
"packages" in the NetBSD world since "ports" was already being used
to refer to "ports of the OS to different platforms".

More specifically, yes, the pythonXY-pth packages are built
against the GNU pth library to provide thread support and should
suffice for NetBSD 1.6.x. As Donn suggested, if you upgrade to a
later version (1.6X or 2.0*) you can just use the python package
with native pthread support. If you can't find it prebuilt, look
into using pkgsrc, which should be fairly painless (and quite
convenient.)

Gary Duzan
BBN Technologies
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Berteun Damman | last post: by
9 posts views Thread by phil | last post: by
28 posts views Thread by dcrespo | last post: by
3 posts views Thread by =?ISO-8859-1?Q?Gregory_Pi=F1ero?= | last post: by
4 posts views Thread by fniles | last post: by
23 posts views Thread by =?GB2312?B?0rvK18qr?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.