Code Monkey home page Code Monkey logo

mltran's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mltran's Issues

Mincemeat

$ mltran mincemeat
Traceback (most recent call last):
  File ".../mltran/mltran.py", line 341, in <module>
    main()
  File ".../mltran/mltran.py", line 335, in main
    show_translations(phrase)
  File ".../mltran/mltran.py", line 81, in show_translations
    translations = translate(phrase)
  File ".../mltran/mltran.py", line 87, in translate
    return list(parse_translation_page(page_content))
  File ".../mltran/mltran.py", line 111, in parse_translation_page
    yield parse_translation(rows)
  File ".../mltran/mltran.py", line 125, in parse_translation
    header=parse_translation_header(rows.popleft()),
  File ".../mltran/mltran.py", line 141, in parse_translation_header
    assert translation_header_element is not None
AssertionError

AttributeError: 'str' object has no attribute 'decode'

When running a CLI I get this error:

❯ mltran exposure
Traceback (most recent call last):
  File "/home/v1rtl/.local/bin/mltran", line 281, in <module>
    main()
  File "/home/v1rtl/.local/bin/mltran", line 270, in main
    word = word.decode('utf8').encode('cp1251')
AttributeError: 'str' object has no attribute 'decode'

I have python (python2), python3 and python3.7 installed globally. which version does this CLI use?

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.