| I think that, in your Python code that you run in your csound Python
opcodes, you need to do something like this first:
import sys
sys.path.append(r'path/to/X')
sys.path.append(r'path/to/Y')
where you substitute the complete path to the relevant Python
packages, e.g. Tix, for 'path/to/X' or whatever.
Also, if you have more than 1 version of Python installed on your
computer, that could be causing this problem; make sure that the
python.exe and python26.dll or .so that you need come FIRST in your
path.
Hope this helps,
Mike
On Mon, Nov 1, 2010 at 1:18 PM, francesco wrote:
>
> What i mean it is that i can import random and math in python, but not when
> python went
> call from csound. I have reinstalled python and all the packages, and all
> from repository.
> Same problem of above. I have also tried drone.py example and here the
> output:
>
> Traceback (most recent call last):
> File "drone.py", line 656, in
> tk = Tix.Tk()
> File "/usr/lib/python2.6/lib-tk/Tix.py", line 210, in __init__
> self.tk.eval('package require Tix')
> TclError: can't find package Tix
>
> but if i run python alone i am able to import the package Tix.
> Also i can import either csnd and CsoundAC.
> Somethings wrong with my setup about python?
>
> Thanks,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/python-problem-tp3244959p3245376.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|