freebsd thread problem

D

Dorian Mcfarland

Hi there,
I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the ports collection and I seem to have an underlying problem with the thread module.

Pysqlite is calling 'import thread' which is failing with "no such module" and causing it not to load. I thought that 'thread' was one of the core sys.modules and when I install python via ports I can see in the makefile that threading is turned on.

Salling 'import thread' from the python prompt yields the same result.

I have a 'threading.py' and a 'dummy_thread.py' in my /usr/local/lib/python2.4 folder and I only have one version of python installed.

Can anyone help me with this? I've googled it and can't find any mention of a similar problem anywhere else. I've also been through the trac mailing-list, but it doesn't seem like a trac-specific problem.

All/any help greatly appreciated

dorian
 
I

Ivan Voras

Dorian said:
Hi there,
I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the
ports collection and I seem to have an underlying problem with the
thread module.
Salling 'import thread' from the python prompt yields the same result.

I have a 'threading.py' and a 'dummy_thread.py' in my
/usr/local/lib/python2.4 folder and I only have one version of python
installed.

How did you install python? By default, if built from ports, it should
pop up a configuration dialog in which one of the options is to enable
thread support. If you have a bad configuration record, you can do a
"make config" in /usr/ports/lang/python to re-create it.

(if there's no such option, then maybe using threads with python is
disabled in 4.x)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top