Csound Csound-dev Csound-tekno Search About

[Csnd] manual from CVS

Date2010-10-31 14:30
Frommenno
Subject[Csnd] manual from CVS
Hi,

i am trying to produce html pages from the manual from CVS, but i get this
error:

menno@muziek:~/eigen handboek/manual$ python csd2docbook.py -a
Traceback (most recent call last):
  File "csd2docbook.py", line 23, in 
    import csnd
ImportError: No module named csnd


i copied the manual from CVS (got it with Cervisia) and tried 'python
csd2docbook.py -a' from there. I use Csound from CVS build today.
Maybe the solution is staring me in the face but i do not see it.

thank you
menno

Date2010-10-31 14:49
FromPINOT Francois
Subject[Csnd] Re: manual from CVS
Hi menno,

csd2docbook.py is a script to automatically turn csd files from the 
example directory to xml docbook files into the example-xml directory, 
to produce syntax highlighted examples for the manual.

To compile the manual from cvs, you need to install the docbook-xml 
system and the xsltproc utility. Then you just have to run the command 
'make' from the manual directory. I do this on linux. On windows 
systems, you have to run the make command from a mingw console.

Hope this helps

Francois


Le 31/10/2010 15:30, menno a écrit :
> Hi,
>
> i am trying to produce html pages from the manual from CVS, but i get this
> error:
>
> menno@muziek:~/eigen handboek/manual$ python csd2docbook.py -a
> Traceback (most recent call last):
>    File "csd2docbook.py", line 23, in
>      import csnd
> ImportError: No module named csnd
>
>
> i copied the manual from CVS (got it with Cervisia) and tried 'python
> csd2docbook.py -a' from there. I use Csound from CVS build today.
> Maybe the solution is staring me in the face but i do not see it.
>
> thank you
> menno
>    


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"

Date2010-10-31 16:01
Frommenno
Subject[Csnd] Re: manual from CVS
Hello Francois,

i use KxStudio, a Kubuntu version with realtime kernel. And i forgot that i
had re-installed it a week ago, so i was indeed missing xsltproc.

 But i got the same error:
menno@muziek:~/eigen handboek/manual$ python csd2docbook.py
Traceback (most recent call last):
  File "csd2docbook.py", line 23, in 
    import csnd
ImportError: No module named csnd

i also installed docbook-utils, docbook (docbook-xml was already installed)
and docbook-xsl-doc-html and python-libxslt1. But still no succes.

Any ideas?

menno

Date2010-10-31 16:32
FromSteven Yi
Subject[Csnd] Re: manual from CVS
Hi Menno,

Are you getting this when running "make"?

Steven

On 10/31/10, menno  wrote:
>
> Hello Francois,
>
> i use KxStudio, a Kubuntu version with realtime kernel. And i forgot that i
> had re-installed it a week ago, so i was indeed missing xsltproc.
>
>  But i got the same error:
> menno@muziek:~/eigen handboek/manual$ python csd2docbook.py
> Traceback (most recent call last):
>   File "csd2docbook.py", line 23, in 
>     import csnd
> ImportError: No module named csnd
>
> i also installed docbook-utils, docbook (docbook-xml was already installed)
> and docbook-xsl-doc-html and python-libxslt1. But still no succes.
>
> Any ideas?
>
> menno
>
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/manual-from-CVS-tp3244055p3244113.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"
>
>

Date2010-10-31 17:01
Frommenno
Subject[Csnd] Re: manual from CVS
No Steven, when i run make it starts writing the html pages, that works, but
shouldn't i run 'python csd2docbook.py' before that. And that is when i get
the error:
  File "csd2docbook.py", line 23, in 
    import csnd
ImportError: No module named csnd

menno

Date2010-10-31 17:02
FromPINOT Francois
Subject[Csnd] Re: manual from CVS
In fact you don't have to use csd2docbook.py. This python script is only 
useful for manual files authors when they want to produce an xml file 
with syntax highlighting from a csd file example. The way to compile the 
manual is to run the make command from the manual directory.

Francois

Le 31/10/2010 17:01, menno a écrit :
> Hello Francois,
>
> i use KxStudio, a Kubuntu version with realtime kernel. And i forgot that i
> had re-installed it a week ago, so i was indeed missing xsltproc.
>
>   But i got the same error:
> menno@muziek:~/eigen handboek/manual$ python csd2docbook.py
> Traceback (most recent call last):
>    File "csd2docbook.py", line 23, in
>      import csnd
> ImportError: No module named csnd
>
> i also installed docbook-utils, docbook (docbook-xml was already installed)
> and docbook-xsl-doc-html and python-libxslt1. But still no succes.
>
> Any ideas?
>
> menno
>
>    


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"

Date2010-10-31 17:06
Frommenno
Subject[Csnd] Re: manual from CVS
I am in the process of developing the manual, so i really need to see if my
updates work.

menno 

Date2010-10-31 17:12
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: manual from CVS
Do you hav ecsound installed?  The code for highlighting .csd files relies
on a working cspund being available.  I have had this problem myself as I
usually do not install Csound as I change it so often

=John ff

>
> I am in the process of developing the manual, so i really need to see if
> my
> updates work.
>
> menno
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/manual-from-CVS-tp3244055p3244174.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"
>
>
>
>




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"

Date2010-10-31 17:23
Frommenno
Subject[Csnd] Re: Re: manual from CVS
menno@muziek:~$ csound
time resolution is 1000.000 ns
virtual_keyboard real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.12 beta (double samples) Oct 31 2010
libsndfile-1.0.21

and it works too!
it's in /usr/local/bin, build and installed today.

menno

Date2010-10-31 17:23
Frommenno
Subject[Csnd] Re: Re: manual from CVS
menno@muziek:~$ csound
time resolution is 1000.000 ns
virtual_keyboard real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.12 beta (double samples) Oct 31 2010
libsndfile-1.0.21

and it works too!
it's in /usr/local/bin, build and installed today.

menno

Date2010-10-31 17:25
FromSteven Yi
Subject[Csnd] Re: Re: Re: manual from CVS
Hi Menno,

Did you build csnd for python interfaces, and if so did you install it
where python could find it?

What happens if you type on a commandline:

python

and then type:

import csnd

?

steven

On Sun, Oct 31, 2010 at 1:23 PM, menno  wrote:
>
> menno@muziek:~$ csound
> time resolution is 1000.000 ns
> virtual_keyboard real time MIDI plugin for Csound
> PortMIDI real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 5.12 beta (double samples) Oct 31 2010
> libsndfile-1.0.21
>
> and it works too!
> it's in /usr/local/bin, build and installed today.
>
> menno
> --
> View this message in context: http://csound.1045644.n5.nabble.com/manual-from-CVS-tp3244055p3244187.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"
>
>


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"


Date2010-10-31 17:40
Frommenno
Subject[Csnd] Re: Re: Re: manual from CVS
Ha Steven you are right, it does not find csnd.

menno@muziek:~$python                                                                                                     
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)                                            
[GCC 4.4.3] on linux2                                                                                                                                                                                                                                                          
Type "help", "copyright", "credits" or "license" for more information.                                                                                                                                                                                                         
>>> import csnd                                                                                                                                                                                                                                                                
Traceback (most recent call last):                                                                                                                                                                                                                                             
  File "", line 1, in                                                                                                                                                                                                                                           
ImportError: No module named csnd                                                                                                                                                                                                                                              
>>>                              

I simply have to add csnd to the Pythonpath. This is what happens with a
clean install..

menno

Date2010-10-31 18:50
Frommenno
Subject[Csnd] manual from CVS
thanks evreyone for helping me out, 'python csd2docbook.py -a' works now that
i have created a PYTHONPATH

i have another small question i'd like to ask. csd2docbook creates a small
list and when it is ready it says:
....
....
....
examples/trscale.csd
examples/cabasa.csd
examples/pchmidi.csd
examples/STKBandedWG.csd
Traceback (most recent call last):
  File "csd2docbook.py", line 329, in 
    main()
  File "csd2docbook.py", line 322, in main
    ct.transform(f)
  File "csd2docbook.py", line 254, in transform
    csddoc = minidom.parseString(s)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 940, in
parseString
    return builder.parseString(string)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 223, in
parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: no element found: line 35, column 10

I guess this ExpatError is of no significance and the list is produced
allright?

thanks again,
menno

Date2010-11-04 16:34
FromAndres Cabrera
Subject[Csnd] Re: manual from CVS
Hi,

The problem is that some csd files didn't have the
 closing tags, so the syntax colouring parser
choked. I have left an error in those cases but now with a more
helpful message.

I've now fixed the examples in cvs and updated the xml-examples directory.

Cheers,
Andres


On Sun, Oct 31, 2010 at 6:50 PM, menno  wrote:
>
> thanks evreyone for helping me out, 'python csd2docbook.py -a' works now that
> i have created a PYTHONPATH
>
> i have another small question i'd like to ask. csd2docbook creates a small
> list and when it is ready it says:
> ....
> ....
> ....
> examples/trscale.csd
> examples/cabasa.csd
> examples/pchmidi.csd
> examples/STKBandedWG.csd
> Traceback (most recent call last):
>  File "csd2docbook.py", line 329, in 
>    main()
>  File "csd2docbook.py", line 322, in main
>    ct.transform(f)
>  File "csd2docbook.py", line 254, in transform
>    csddoc = minidom.parseString(s)
>  File "/usr/lib/python2.6/xml/dom/minidom.py", line 1928, in parseString
>    return expatbuilder.parseString(string)
>  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 940, in
> parseString
>    return builder.parseString(string)
>  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 223, in
> parseString
>    parser.Parse(string, True)
> xml.parsers.expat.ExpatError: no element found: line 35, column 10
>
> I guess this ExpatError is of no significance and the list is produced
> allright?
>
> thanks again,
> menno
> --
> View this message in context: http://csound.1045644.n5.nabble.com/manual-from-CVS-tp3244055p3244274.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"
>
>



-- 


Andrés


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"


Date2010-11-04 17:59
Frommenno
Subject[Csnd] Re: manual from CVS
thank you Andres.

greetings
menno