jbjorne / TEES

Turku Event Extraction System
147 stars 42 forks source link

problem with linux install: can't unzip .gz file #37

Open charliejeynes opened 3 years ago

charliejeynes commented 3 years ago

HI I'm following the configure.py file - but it doesn't seem to want to unzip the downloaded .gz files (they are there I checked in the .tees file)

also i'm a little confused about the .tees file downloads - should this be in the same root directory as the rest of TEES github clone, or does it not matter

the error i get is below

thanks

Charlie

--------------- Downloading preconverted corpora --------------- Downloading file http://sourceforge.net/projects/tees/files/data/BioNLP09-corpus-XML-150114.tar.gz to /home/UK/cjeynes/.tees/corpora/download/BioNLP09-corpus-XML-150114.tar.gz 1.64 K/s <<<|######################################################################################################################################################################################################|>>> 100% Time: 00:00:00 Extracting /home/UK/cjeynes/.tees/corpora/download/BioNLP09-corpus-XML-150114.tar.gz to /home/UK/cjeynes/.tees/corpora
[| |] 0% ETA: --:--:-- Exception processing menu 'Corpora' option 'i (Install)
Exception: not a gzip file
Traceback (most recent call last):
File "/home/UK/cjeynes/git_repos/TEES/Utils/Menu.py", line 229, in _runHandler
handler(*handlerArgs)
File "/home/UK/cjeynes/git_repos/TEES/Utils/Convert/convertBioNLP.py", line 38, in installPreconverted
Utils.Download.downloadAndExtract(Settings.URL[url], destPath, downloadPath, redownload=redownload)
File "/home/UK/cjeynes/git_repos/TEES/Utils/Download.py", line 106, in downloadAndExtract
return extractPackage(downloadFile, extractPath, packagePath)
File "/home/UK/cjeynes/git_repos/TEES/Utils/Download.py", line 81, in extractPackage
package = opener(path, mode)
File "/apps_shared/python/Python-2.7.9/lib/python2.7/tarfile.py", line 1684, in open
return func(name, filemode, fileobj, **kwargs)
File "/apps_shared/python/Python-2.7.9/lib/python2.7/tarfile.py", line 1742, in gzopen
raise ReadError("not a gzip file")
ReadError: not a gzip file

==================================== Error ==================================== There was an error processing the menu option. Please choose whether to quit or continue

i) Ignore and continue