Giter Club home page Giter Club logo

badtranslator's People

Contributors

mlesniew avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

daukantas

badtranslator's Issues

Index out of range

i run the translator in my windows laptop after adding .py extension and it gave me an error in goslate.py
error:

C:\Users\Nicholas\Downloads\extract-adf\badtranslator>py -3.8 translate.py --language=en "Something"
Traceback (most recent call last):
  File "translate.py", line 64, in <module>
    text = gs.translate(text, language, last)
  File "C:\Program Files\Python38\lib\site-packages\goslate.py", line 407, in translate
    return _unwrapper_single_element(self._translate_single_text(text, target_language, source_language))
  File "C:\Program Files\Python38\lib\site-packages\goslate.py", line 332, in _translate_single_text
    results = list(self._execute(make_task(i) for i in split_text(text)))
  File "C:\Program Files\Python38\lib\site-packages\goslate.py", line 201, in _execute
    yield each()
  File "C:\Program Files\Python38\lib\site-packages\goslate.py", line 330, in <lambda>
    return lambda: self._basic_translate(text, target_language, source_lauguage)[0]
  File "C:\Program Files\Python38\lib\site-packages\goslate.py", line 251, in _basic_translate
    data = {'src': raw_data[-1][0][0]}
IndexError: list index out of range

someone pls tell me how to fix im using python 3.8 and 3.10 as parallel versions i ran it with python 3.8 because it is the latest version supporting goslate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.