Giter Club home page Giter Club logo

Comments (3)

miracle2k avatar miracle2k commented on July 17, 2024

Python 3 support was recently merged, and I'd wager it is related to that.

Until the bug is fixed (I don't have time to look right now), you could try using the other Python version (2 if the error occurs with 3, or 3 if the error occurs with 2).

from android2po.

farindk avatar farindk commented on July 17, 2024

I am a complete python noob, but I now tried with python3. Hope that I did everything correctly. Now I get this error:

$ a2po init --android . --gettext .
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/android2po/program.py", line 215, in main
command_result = cmd.execute()
File "/usr/local/lib/python3.4/dist-packages/android2po/commands.py", line 407, in execute
something_done = self.generate_templates(update=False)
File "/usr/local/lib/python3.4/dist-packages/android2po/commands.py", line 293, in generate_templates
kind, do_write=True, update=update)
File "/usr/local/lib/python3.4/dist-packages/android2po/commands.py", line 279, in make_or_get_template
action=action, ignore_exists=True, update=update):
File "/usr/local/lib/python3.4/dist-packages/android2po/commands.py", line 171, in write_file
action.done('exists')
File "/usr/local/lib/python3.4/dist-packages/android2po/utils.py", line 165, in done
self.writer._print_action(self)
File "/usr/local/lib/python3.4/dist-packages/android2po/utils.py", line 297, in _print_action
self._print_action_header(action)
File "/usr/local/lib/python3.4/dist-packages/android2po/utils.py", line 323, in _print_action_header
self.stdout.write(colored("%_s" % (self.max_event_len, tag), attrs=['bold',], *_style))
File "/usr/lib/python3.4/codecs.py", line 369, in write
self.stream.write(data)
TypeError: must be str, not bytes

It's not that urgent. I will simply wait for an update :)

from android2po.

mauriciogior avatar mauriciogior commented on July 17, 2024

@farindk fixed on #36

from android2po.

Related Issues (20)

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.