<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body dir="auto"><div dir="auto">Hello Wu,</div><div dir="auto">Just a guess, but would specifying the full path to the upload area and your file in "file=" help?</div><div dir="auto">Best,</div><div dir="auto">Graham.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div id="composer_signature" dir="auto"><div style="font-size:85%;color:#575757" dir="auto">Envoyé depuis mon appareil Galaxy</div></div><div dir="auto"><br></div><div><br></div><div align="left" dir="auto" style="font-size:100%;color:#000000"><div>-------- Message d'origine --------</div><div>De : wu liangping <liangpingwu@126.com> </div><div>Date : 26/07/2021 08:23 (GMT+01:00) </div><div>À : cwb@sslmit.unibo.it </div><div>Objet : [CWB] [CQPweb] problem encountered when installing a corpus from scratch using install-corpus.php </div><div><br></div></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin:0;">Dear all,</div><div style="margin:0;"><br></div><div style="margin:0;">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.</div><div style="margin:0;"><br></div><div style="margin:0;">I have a tiny (experimental) corpus test.txt with only two columns:</div><div style="margin:0;"><pre><text id="sample">
<s>
I        I
am        am
just        just
a        a
testing        testing
line        line
.        .
</s>
<s>
I        I
am        am
just        just
another        another
testing        testing
line        line
.        .
</s>
</text>
</pre><pre>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:</pre><pre>php install-corpus.php --corpus_name="test" --corpus_description="a test corpus" --cssBuiltIn="blue.css" --corpus_charset="utf8" --useXmlTemplate=2 --useAnnotationTemplate=6 --file="test.txt"</pre><pre>However, it keeps saying that "You must specify at least one file to include in the corpus!" (my CQPweb version is 3.2.43)</pre><pre>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.</pre><pre>Any hint? </pre><pre>Thanks for any input.</pre></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);">Best,<br></span><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> <div style="clear:both"></div></div></div></body></html>