running python apps with csound in source dir

View: New views
6 Messages — Rating Filter:   Alert me  

running python apps with csound in source dir

by Oeyvind Brandtsegg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to run some Csound/Python apps, still keeping Csound in the
source directory (not creating an installer and installing it, just
running it from where I compiled it).
It seems, by setting PATH and OPCODEDIR (or OPCODEDIR64) to point to
the source code directory, I can run Csound just fine. But I get
problems when trying to run some of my Python apps using the
CsoundAPI.
I did also set PYTHONPATH to point to the Csound source code directory..

Is there something more I need to do to make it work ?

best
Oeyvind

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: running python apps with csound in source dir

by Steven Yi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Oevyind,

Could you elaborate a bit on the problems you're seeing?

Thanks!
steven

On Wed, Jul 2, 2008 at 3:07 PM, Oeyvind Brandtsegg <obrandts@...> wrote:

> Hello,
>
> I'm trying to run some Csound/Python apps, still keeping Csound in the
> source directory (not creating an installer and installing it, just
> running it from where I compiled it).
> It seems, by setting PATH and OPCODEDIR (or OPCODEDIR64) to point to
> the source code directory, I can run Csound just fine. But I get
> problems when trying to run some of my Python apps using the
> CsoundAPI.
> I did also set PYTHONPATH to point to the Csound source code directory..
>
> Is there something more I need to do to make it work ?
>
> best
> Oeyvind
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: running python apps with csound in source dir

by Michael Gogins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

csnd.py, _csnd.pyd, and csnd.dll need to be in PYTHONPATH. You need Python
of the same version as Csound was built for.

I assume that is the case...

What are your problems, exactly?

Sometimes Python import problems can be caused by not doing a complete cleanup
before building. The files above are not always correctly regenerated from a previous build with different options,
or even a change in the code.

The cleanup.sh script does a truly complete cleanup for this purpose.

Regards,
Mike


----- Original Message -----
From: "Oeyvind Brandtsegg" <obrandts@...>
To: "Developer discussions" <csound-devel@...>
Sent: Wednesday, July 02, 2008 6:07 PM
Subject: [Cs-dev] running python apps with csound in source dir


> Hello,
>
> I'm trying to run some Csound/Python apps, still keeping Csound in the
> source directory (not creating an installer and installing it, just
> running it from where I compiled it).
> It seems, by setting PATH and OPCODEDIR (or OPCODEDIR64) to point to
> the source code directory, I can run Csound just fine. But I get
> problems when trying to run some of my Python apps using the
> CsoundAPI.
> I did also set PYTHONPATH to point to the Csound source code directory..
>
> Is there something more I need to do to make it work ?
>
> best
> Oeyvind
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel 




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: running python apps with csound in source dir

by Oeyvind Brandtsegg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is this:

The application loads just fine, csound compiling and starting to run,
all wx graphics displayed correctly, and so on,
then after a short time (one second or so), I get the dialog:
**
python.exe has encountered a problem and needs to close.  We are sorry
for the inconvenience.
**
Then I click on "more information", and can see that the error is related to:
ModName: msvcrt.dll
****

But, I'm now confident that there's at least something wrong with my
latest build of Csound, as I get crashes when trying to run
Csound-only "apps" too, like PartikkelFLTK for example. PartikkelFLTK
crashes with a segmentation violation before even displaying the FLTK
window (but after selecting audio devices).

Now, I fully understand that it is difficult to make suggestions as to
what might be wrong.

best
Oeyvind






2008/7/3, Michael Gogins <gogins@...>:

> csnd.py, _csnd.pyd, and csnd.dll need to be in PYTHONPATH. You need Python
> of the same version as Csound was built for.
>
> I assume that is the case...
>
> What are your problems, exactly?
>
> Sometimes Python import problems can be caused by not doing a complete cleanup
> before building. The files above are not always correctly regenerated from a previous build with different options,
> or even a change in the code.
>
> The cleanup.sh script does a truly complete cleanup for this purpose.
>
> Regards,
> Mike
>
>
> ----- Original Message -----
> From: "Oeyvind Brandtsegg" <obrandts@...>
> To: "Developer discussions" <csound-devel@...>
> Sent: Wednesday, July 02, 2008 6:07 PM
> Subject: [Cs-dev] running python apps with csound in source dir
>
>
> > Hello,
> >
> > I'm trying to run some Csound/Python apps, still keeping Csound in the
> > source directory (not creating an installer and installing it, just
> > running it from where I compiled it).
> > It seems, by setting PATH and OPCODEDIR (or OPCODEDIR64) to point to
> > the source code directory, I can run Csound just fine. But I get
> > problems when trying to run some of my Python apps using the
> > CsoundAPI.
> > I did also set PYTHONPATH to point to the Csound source code directory..
> >
> > Is there something more I need to do to make it work ?
> >
> > best
> > Oeyvind
> >
> > -------------------------------------------------------------------------
> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > Studies have shown that voting for your favorite open source project,
> > along with a healthy diet, reduces your potential for chronic lameness
> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@...
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: running python apps with csound in source dir

by Oeyvind Brandtsegg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

One of the things I am unsure about is the
Microsoft.VC90.CRT
installed by the Csound5.08 windows installer.

Should I do something similar (make the V90 available) to enable my
system to run Csound from the source code dir ?

Oeyvind

2008/7/3, Oeyvind Brandtsegg <obrandts@...>:

> The problem is this:
>
> The application loads just fine, csound compiling and starting to run,
> all wx graphics displayed correctly, and so on,
> then after a short time (one second or so), I get the dialog:
> **
> python.exe has encountered a problem and needs to close.  We are sorry
> for the inconvenience.
> **
> Then I click on "more information", and can see that the error is related to:
> ModName: msvcrt.dll
> ****
>
> But, I'm now confident that there's at least something wrong with my
> latest build of Csound, as I get crashes when trying to run
> Csound-only "apps" too, like PartikkelFLTK for example. PartikkelFLTK
> crashes with a segmentation violation before even displaying the FLTK
> window (but after selecting audio devices).
>
> Now, I fully understand that it is difficult to make suggestions as to
> what might be wrong.
>
> best
> Oeyvind
>
>
>
>
>
>
> 2008/7/3, Michael Gogins <gogins@...>:
> > csnd.py, _csnd.pyd, and csnd.dll need to be in PYTHONPATH. You need Python
> > of the same version as Csound was built for.
> >
> > I assume that is the case...
> >
> > What are your problems, exactly?
> >
> > Sometimes Python import problems can be caused by not doing a complete cleanup
> > before building. The files above are not always correctly regenerated from a previous build with different options,
> > or even a change in the code.
> >
> > The cleanup.sh script does a truly complete cleanup for this purpose.
> >
> > Regards,
> > Mike
> >
> >
> > ----- Original Message -----
> > From: "Oeyvind Brandtsegg" <obrandts@...>
> > To: "Developer discussions" <csound-devel@...>
> > Sent: Wednesday, July 02, 2008 6:07 PM
> > Subject: [Cs-dev] running python apps with csound in source dir
> >
> >
> > > Hello,
> > >
> > > I'm trying to run some Csound/Python apps, still keeping Csound in the
> > > source directory (not creating an installer and installing it, just
> > > running it from where I compiled it).
> > > It seems, by setting PATH and OPCODEDIR (or OPCODEDIR64) to point to
> > > the source code directory, I can run Csound just fine. But I get
> > > problems when trying to run some of my Python apps using the
> > > CsoundAPI.
> > > I did also set PYTHONPATH to point to the Csound source code directory..
> > >
> > > Is there something more I need to do to make it work ?
> > >
> > > best
> > > Oeyvind
> > >
> > > -------------------------------------------------------------------------
> > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > > Studies have shown that voting for your favorite open source project,
> > > along with a healthy diet, reduces your potential for chronic lameness
> > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@...
> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> >
> >
> > -------------------------------------------------------------------------
> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> > Studies have shown that voting for your favorite open source project,
> > along with a healthy diet, reduces your potential for chronic lameness
> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@...
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: running python apps with csound in source dir

by Michael Gogins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes,

Mike

-----Original Message-----

>From: Oeyvind Brandtsegg <obrandts@...>
>Sent: Jul 3, 2008 4:47 AM
>To: Developer discussions <csound-devel@...>
>Subject: Re: [Cs-dev] running python apps with csound in source dir
>
>One of the things I am unsure about is the
>Microsoft.VC90.CRT
>installed by the Csound5.08 windows installer.
>
>Should I do something similar (make the V90 available) to enable my
>system to run Csound from the source code dir ?
>
>Oeyvind
>
>2008/7/3, Oeyvind Brandtsegg <obrandts@...>:
>> The problem is this:
>>
>> The application loads just fine, csound compiling and starting to run,
>> all wx graphics displayed correctly, and so on,
>> then after a short time (one second or so), I get the dialog:
>> **
>> python.exe has encountered a problem and needs to close.  We are sorry
>> for the inconvenience.
>> **
>> Then I click on "more information", and can see that the error is related to:
>> ModName: msvcrt.dll
>> ****
>>
>> But, I'm now confident that there's at least something wrong with my
>> latest build of Csound, as I get crashes when trying to run
>> Csound-only "apps" too, like PartikkelFLTK for example. PartikkelFLTK
>> crashes with a segmentation violation before even displaying the FLTK
>> window (but after selecting audio devices).
>>
>> Now, I fully understand that it is difficult to make suggestions as to
>> what might be wrong.
>>
>> best
>> Oeyvind
>>
>>
>>
>>
>>
>>
>> 2008/7/3, Michael Gogins <gogins@...>:
>> > csnd.py, _csnd.pyd, and csnd.dll need to be in PYTHONPATH. You need Python
>> > of the same version as Csound was built for.
>> >
>> > I assume that is the case...
>> >
>> > What are your problems, exactly?
>> >
>> > Sometimes Python import problems can be caused by not doing a complete cleanup
>> > before building. The files above are not always correctly regenerated from a previous build with different options,
>> > or even a change in the code.
>> >
>> > The cleanup.sh script does a truly complete cleanup for this purpose.
>> >
>> > Regards,
>> > Mike
>> >
>> >
>> > ----- Original Message -----
>> > From: "Oeyvind Brandtsegg" <obrandts@...>
>> > To: "Developer discussions" <csound-devel@...>
>> > Sent: Wednesday, July 02, 2008 6:07 PM
>> > Subject: [Cs-dev] running python apps with csound in source dir
>> >
>> >
>> > > Hello,
>> > >
>> > > I'm trying to run some Csound/Python apps, still keeping Csound in the
>> > > source directory (not creating an installer and installing it, just
>> > > running it from where I compiled it).
>> > > It seems, by setting PATH and OPCODEDIR (or OPCODEDIR64) to point to
>> > > the source code directory, I can run Csound just fine. But I get
>> > > problems when trying to run some of my Python apps using the
>> > > CsoundAPI.
>> > > I did also set PYTHONPATH to point to the Csound source code directory..
>> > >
>> > > Is there something more I need to do to make it work ?
>> > >
>> > > best
>> > > Oeyvind
>> > >
>> > > -------------------------------------------------------------------------
>> > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
>> > > Studies have shown that voting for your favorite open source project,
>> > > along with a healthy diet, reduces your potential for chronic lameness
>> > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
>> > > _______________________________________________
>> > > Csound-devel mailing list
>> > > Csound-devel@...
>> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > -------------------------------------------------------------------------
>> > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
>> > Studies have shown that voting for your favorite open source project,
>> > along with a healthy diet, reduces your potential for chronic lameness
>> > and boredom. Vote Now at http://www.sourceforge.net/community/cca08
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@...
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>
>-------------------------------------------------------------------------
>Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
>Studies have shown that voting for your favorite open source project,
>along with a healthy diet, reduces your potential for chronic lameness
>and boredom. Vote Now at http://www.sourceforge.net/community/cca08
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@...
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel