The situation seems very strange, and it is hard to debug, as it works differently on different platforms (windows/OSX). Moreover, I only temporary had access to the OSX machine, so I'm working in the dark when trying to solve this from windows.
 
Could someone (preferably more than one) please try to run this application:
http://oeyvind.teks.no/ftp/PartikkelExplorer_july2008.zip
on OSX
 
There might be issues related to my Python code, or the problems might stem from the Csound API. As far as I can see I do use the CsoundAPI correctly, and the code runs fine on windows. However, there are several ways to set up the separate Csound thread in Python, so some subtle differences might lead to this problem when trying to run the same code on OSX.
 
best
Oeyvind
 
2008/6/26, victor <Victor.Lazzarini@nuim.ie>:
In fact, this might already be fixed in the CVS sources, as
I can't find a call to PyThreadState_Get anywhere (I changed
the GIL functions earlier on in the year).
 
Regards
 
Victor
----- Original Message -----
Sent: Wednesday, June 25, 2008 10:04 PM
Subject: [Cs-dev] OSX, csound.compile()

 
I'm testing Csound/Python on a Mac, using:
OSX 10.5
MacPython2.4.4
Csound5.08 OSX binary installer
wxPython 2.8 unicode for Python2.4
 
When running PartikkelExplorer.py (from the terminal), I get
$
csound loaded
Fatal Python error: PyThreadState_Get: no current thread
Csound tidy up: Abort trap
Abort trap
$
 
by inserting a print statements before and after the
self.csound.compile()
statement in cs/csModule.py
I can verify that the crash is related to that statement (csound.compile())
 
What could I do to try to make it work ?
 
I've tested the wxController.py example, and that works
(I rewrote the
from wxPython.wx import *
to
import wx
and changed subsequent references accordingly
to make wxController.py work)
 
best
Oeyvind


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php


_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel