Trouble with TLGU in new install
See original GitHub issueHi,
I tried on two different linux installations today; I always hit the same problem. I have installed cltk via pip, with python3.5 on ubuntu and python3.4 on fedora. tlgu is installed on my system:
which tlgu
/usr/bin/tlgu
However, when I try to run the example from the docs, I get this error:
t = TLGU()
/home/tas/mycltk/venv/lib64/python3.4/site-packages/cltk/corpus/greek/tlgu.py in __init__(self, testing)
43 """Check whether tlgu is installed, if not, import and install."""
44 self.testing = testing
---> 45 self._check_import_source()
46 self._check_install()
47
/home/tas/mycltk/venv/lib64/python3.4/site-packages/cltk/corpus/greek/tlgu.py in _check_import_source()
54 try:
55 corpus_importer = CorpusImporter('greek')
---> 56 corpus_importer.import_corpus('tlgu')
57 except Exception as exc:
58 logger.error('Failed to import TLGU: %s', exc)
/home/tas/mycltk/venv/lib64/python3.4/site-packages/cltk/corpus/utils/importer.py in import_corpus(self, corpus_name, local_path)
118 """
119 corpus_properties = self._check_corpus_availability(corpus_name)
--> 120 location = corpus_properties['location']
121 corpus_type = corpus_properties['type']
122 if location == 'remote':
TypeError: 'NoneType' object is not subscriptable
I saw a similar issue was closed a while ago, but that was on window, and I did not find any obvious solution. So I’d be grateful if someone could point me in the right direction. And yes, I would like to parse my local TLG files.
Thank you!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Problem with installing Telugu Phonetic keyboard
I was not able to install the phonetic key board from add key board in "Language ... Problem with installing Telugu Phonetic keyboard....
Read more >Windows 11 Installation Problems in Telugu - YouTube
0:00 · New ! Watch ads now so you can enjoy fewer interruptions. Got it.
Read more >How to Fix "App not Installed" Problem in Android in Telugu
How to Fix "App not Installed " Problem in Android in TeluguApp not installed android Fix**** you can also disable "play protect" in...
Read more >Play Store Download Pending Problem Fix Telugu - YouTube
... Download Pending Problem Fix Telugu | Play Store App Install Problem | Can't Install app ... SafetyHow YouTube worksTest new features.
Read more >Fix windows 7 update error 80072efe - YouTube
This solution is 2022 released and it will fix your all updating related issue. This method also works for fresh install of windows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Thomas,
I’m sorry for the problem. I am away from my computer for several days, but can reply fully on Monday.
Did you install TLGU manually yourself? You might try importing it first docs, then rerunning your code.
In the meanwhile, post here the end of
~/cltk_data/cltk.log
. There might be a little more information there.Thanks for reporting this bug! I am confident we can fix this.
On Friday, May 20, 2016, thomasaschmitz notifications@github.com wrote:
Kyle P. Johnson, Ph.D.
Natural language processing, data science, architecture https://kyle-p-johnson.comkyle@kyle-p-johnson.com | https://kyle-p-johnson.com | https://github.com/kylepjohnson
Classical Language Toolkit, Founder http://cltk.org | https://github.com/cltk/cltk
Thank you, Andreas. Good thinking.
Thomas, please let us know anywhere you think the docs should be improved. Maybe we can make this part of a new tutorial/quickstart area of the docs.
On Saturday, May 21, 2016, Andreas Grivas notifications@github.com wrote:
Kyle P. Johnson, Ph.D.
Natural language processing, data science, architecture https://kyle-p-johnson.comkyle@kyle-p-johnson.com | https://kyle-p-johnson.com | https://github.com/kylepjohnson
Classical Language Toolkit, Founder http://cltk.org | https://github.com/cltk/cltk