question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trouble with TLGU in new install

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kylepjohnsoncommented, May 21, 2016

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:

Hi,

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 http://docs.cltk.org/en/latest/greek.html#converting-tlg-and-phi-texts-with-tlgu, 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!

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/cltk/cltk/issues/293

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

0reactions
kylepjohnsoncommented, May 21, 2016

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:

Great, good idea 👍

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/cltk/cltk/issues/293#issuecomment-220780185

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found