freebsd thread problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dorian Mcfarland

    freebsd thread problem

    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.p y' 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
  • Ivan Voras

    #2
    Re: freebsd thread problem

    Dorian Mcfarland wrote:[color=blue]
    > 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.[/color]
    [color=blue]
    > Salling 'import thread' from the python prompt yields the same result.
    >
    > I have a 'threading.py' and a 'dummy_thread.p y' in my
    > /usr/local/lib/python2.4 folder and I only have one version of python
    > installed.[/color]

    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)

    Comment

    • Dorian Mcfarland

      #3
      Re: freebsd thread problem

      That was the problem. thanks for the clarity - finally working.
      [color=blue]
      > 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)[/color]

      Comment

      Working...