IndexError: list index out of range

See original GitHub issue

When I am running this code:

import epitran epi = epitran.Epitran('eng-Latn') print (epi.transliterate(u'Berkeley'))

I am using python+3. Would you please help me to fix this error?

File “/home/hamada/.local/lib/python3.6/site-packages/epitran/flite.py”, line 212, in english_g2p arpa_text = arpa_text.splitlines()[0] IndexError: list index out of range

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dmort27commented, Dec 7, 2020

Try

$ ./configure && make
$ sudo make install
$ cd testsuite
$ make lex_lookup
$ sudo cp lex_lookup /usr/local/bin

I think you’re using the older t2p method and everything in Epitran is now set up to use the newer lex_lookup method.

0reactions
dziecioucommented, Dec 7, 2020

Right, installing lex_lookup helped a lot. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

List Index Out of Range – Python Error Message Solved
You'll get the Indexerror: list index out of range error when iterating through a list and trying to access an item that doesn't...
Read more >
Python IndexError: List Index Out of Range Error Explained
Learn how to resolve the Python IndexError, list index out of range, why it occurs in for loops, while loops, and how to...
Read more >
Python IndexError: List Index Out of Range [Easy Fix]
The error “list index out of range” arises if you access invalid indices in your ...
Read more >
Indexerror: list Index Out of Range in Python
“List index out of range” error occurs in Python when we try to access an undefined element from the list. The only way...
Read more >
Index Error: list index out of range (Python) [duplicate]
Generally it means that you are providing an index for which a list element does not exist. E.g, if your list was [1,...
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