Comments (3)
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.
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.
from android2po.
Related Issues (20)
- Babel-1.0dev isn't installable because "elsdoerfer.name" is down HOT 4
- Travis CI builds are not being built HOT 3
- a2po does not support ISO 639-2 language codes HOT 7
- KeyError: 'plural_form' HOT 1
- 'pip install android2po' is missing termcolor module
- [improvement] Add option to ignore strings that have the translatable="false" HOT 2
- android resource files with hyphens in filename
- line wrapping width system dependent HOT 3
- Locales: id, he, yi -> in, iw, ji HOT 4
- fy-NL is not a valid locale HOT 2
- Error on unicode character \u00A0 HOT 4
- Automate releases
- Don't mark formated strings as c-format HOT 7
- n/a
- Not emitting empty items in string-array HOT 1
- Cannot process <item>\?</item>
- [feature request] Support for iOS
- wrong issue
- Port to Python3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android2po.