473,503 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1632
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1545
by: Berteun Damman | last post by:
Hello, First I was trying to get PyOSD, but as soon as I did `import pyosd' Python received a SIGABRT. Then I wrote my own module, which looks like: #include <Python.h> static PyMethodDef...
9
2756
by: phil | last post by:
And sorry I got ticked, frustrating week >And I could help more, being fairly experienced with >threading issues and race conditions and such, but >as I tried to indicate in the first place,...
28
12049
by: dcrespo | last post by:
Hi all, How can I get a raised exception from other thread that is in an imported module? For example: --------------- programA.py ---------------
1
5170
by: Kevin | last post by:
In a newsgroup thread from Jan 8, 2003 between Barry Holsinger and the VBDotNet Team, please review this excerpt: "You understood my problem completely. Your sample code provides a really...
1
1925
by: Toon Verstraelen | last post by:
Hi, I recently had a thread problem and I could reduce it to a very short example that shows the problem. I hope it has its origin in my misunderstanding of how python threads work. Here it is:...
3
1986
by: =?ISO-8859-1?Q?Gregory_Pi=F1ero?= | last post by:
Hi Python Experts, I hope I can explain this right. I'll try. Background: I have a module that I leave running in a server role. It has a module which has data in it that can change. So...
3
5524
by: NaeiKinDus | last post by:
Hello, i'm trying to program a thread that would be locked (by a mutex) and that would only be unlocked once that a function (generating data) is done. The purpose is to generate data, and unlock...
4
1411
by: fniles | last post by:
I create a thread where I pass thru a message. When I click very fast many times (like 50 times) to create 50 threads, the message did not get pass thru ProcessMessage. For example: strBuffer =...
23
4247
by: =?GB2312?B?0rvK18qr?= | last post by:
Hi all, Recently I had a new coworker. There is some dispute between us. The last company he worked for has a special networking programming model. They split the business logic into...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.