Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
charliejeynes opened this issue Mar 17, 2021 · 0 comments
Open

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

charliejeynes opened this issue Mar 17, 2021 · 0 comments

Comments

@charliejeynes
Copy link

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                                                      
  • q) Quit
    ================================================================================

q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant