<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0;">I copied the install-corpus.php from version 3.3.9 into my&nbsp;v3.2.43 box and included two more parameters of $_GET["includeFile"] and $_GET["cssBuiltIn"] and it works now.</div><div style="margin: 0;">Plus, I also made an experimental install-metadata.php in the exe folder (and it automatically populates itself into every individual corpus), following the suit of the good install-corpus.php.</div><div style="margin: 0;">So now it is (in theory) possbile to automate the setup of a dynamic corpus (without much pain).</div><div style="margin: 0;">Thanks a lot for your work!</div><div style="margin: 0;"><br></div><div style="margin: 0;">Best,</div><div style="position:relative;zoom:1"><span style="color: rgb(128, 128, 128);"><span style="color: rgb(128, 128, 128);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">WU Liangping</span></span></span></span><span style="color: rgb(128, 128, 128);"><span style="color: rgb(128, 128, 128);"><br></span></span>&nbsp;<div style="clear:both"></div></div><div id="divNeteaseMailCard"></div><p style="margin: 0;"><br></p><p>At 2021-07-27 16:20:03, "Hardie, Andrew" &lt;a.hardie@lancaster.ac.uk&gt; wrote:</p><blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">



<style><!--

_font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
_font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
_font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
_font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
_page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Thanks for this! I’ve fixed the install-corpus.php &nbsp;script in the repo.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">(I think. Pending other bug reports.)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> cwb-bounces@sslmit.unibo.it &lt;cwb-bounces@sslmit.unibo.it&gt;
<b>On Behalf Of </b>wu liangping<br>
<b>Sent:</b> 27 July 2021 04:06<br>
<b>To:</b> Open source development of the Corpus WorkBench &lt;cwb@sslmit.unibo.it&gt;<br>
<b>Subject:</b> Re: [CWB] [CQPweb] problem encountered when installing a corpus from scratch using install-corpus.php<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">I think I've got it.&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">The version info part in&nbsp; install-corpus.php says: "This script tracks the install-corpus form."&nbsp; If we look at what happens when we submit that form to the server
 (in Chrome F12 will do the job), the url link explains everything.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Problem solved.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Best,<br>
WU Liangping</span><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:gray"><br>
</span><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">&nbsp;
<o:p></o:p></span></p>
</div>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
<p><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">At 2021-07-26 14:21:53, "wu liangping" &lt;<a href="mailto:liangpingwu@126.com">liangpingwu@126.com</a>&gt; wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm" id="isReplyContent">
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Dear all,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Installing a corpus anew from the command line without clikcing around is such an attracitve option in terms of efficiency (and automation), so the install-corpus.php
 story here.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">I have a tiny (experimental) corpus test.txt with only two columns:<o:p></o:p></span></p>
</div>
<div>
<pre><span style="color:black">&lt;text id="sample"&gt;<o:p></o:p></span></pre>
<pre><span style="color:black">&lt;s&gt;<o:p></o:p></span></pre>
<pre><span style="color:black">I&nbsp;&nbsp;&nbsp;&nbsp; I<o:p></o:p></span></pre>
<pre><span style="color:black">am&nbsp;&nbsp;&nbsp; am<o:p></o:p></span></pre>
<pre><span style="color:black">just&nbsp; just<o:p></o:p></span></pre>
<pre><span style="color:black">a&nbsp;&nbsp;&nbsp;&nbsp; a<o:p></o:p></span></pre>
<pre><span style="color:black">testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; testing<o:p></o:p></span></pre>
<pre><span style="color:black">line&nbsp; line<o:p></o:p></span></pre>
<pre><span style="color:black">.&nbsp;&nbsp;&nbsp;&nbsp; .<o:p></o:p></span></pre>
<pre><span style="color:black">&lt;/s&gt;<o:p></o:p></span></pre>
<pre><span style="color:black">&lt;s&gt;<o:p></o:p></span></pre>
<pre><span style="color:black">I&nbsp;&nbsp;&nbsp;&nbsp; I<o:p></o:p></span></pre>
<pre><span style="color:black">am&nbsp;&nbsp;&nbsp; am<o:p></o:p></span></pre>
<pre><span style="color:black">just&nbsp; just<o:p></o:p></span></pre>
<pre><span style="color:black">another&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; another<o:p></o:p></span></pre>
<pre><span style="color:black">testing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; testing<o:p></o:p></span></pre>
<pre><span style="color:black">line&nbsp; line<o:p></o:p></span></pre>
<pre><span style="color:black">.&nbsp;&nbsp;&nbsp;&nbsp; .<o:p></o:p></span></pre>
<pre><span style="color:black">&lt;/s&gt;<o:p></o:p></span></pre>
<pre><span style="color:black">&lt;/text&gt;<o:p></o:p></span></pre>
<pre><span style="color:black">The test.txt file has been uploaded to cqpweb's upload area, and the XmlTemplate and AnnotationTemplate have also been defined from the CQPweb GUI, and finally I run the following command from /path/to/cqpweb/bin:<o:p></o:p></span></pre>
<pre><span style="color:black">php install-corpus.php&nbsp; --corpus_name="test"&nbsp; --corpus_description="a test corpus" --cssBuiltIn="blue.css" --corpus_charset="utf8" --useXmlTemplate=2 --useAnnotationTemplate=6&nbsp; --file="test.txt"<o:p></o:p></span></pre>
<pre><span style="color:black">However, it keeps saying that "You must specify at least one file to include in the corpus!" (my CQPweb version is 3.2.43)<o:p></o:p></span></pre>
<pre><span style="color:black">My first guess is that something might be wrong with the format of the parameters specified. According to the online documentation, --file would expect a "list" of files (at least one file is required). However, I tried different combinations but without luck.<o:p></o:p></span></pre>
<pre><span style="color:black">Any hint?&nbsp; <o:p></o:p></span></pre>
<pre><span style="color:black">Thanks for any input.<o:p></o:p></span></pre>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Best,<br>
WU Liangping</span><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:gray"><br>
</span><span style="font-size:10.5pt;font-family:&quot;Arial&quot;,sans-serif;color:black">&nbsp;
<o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>


</blockquote></div>