Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with creating new taxi file #8

Closed
dasrecht opened this issue Nov 5, 2012 · 3 comments
Closed

Problem with creating new taxi file #8

dasrecht opened this issue Nov 5, 2012 · 3 comments

Comments

@dasrecht
Copy link

dasrecht commented Nov 5, 2012

EHLO

I just encountered a problem with Taxi 3.0-beta2 when i try to create a new file (this bug was also in the former version but i upgraded to seeif there's a bugfix for that)

~/tks > taxi --version
taxi 3.0-beta2

I get following errors

~/tks > taxi edit --verbose
Traceback (most recent call last):
  File "/usr/local/bin/taxi", line 4, in <module>
    app.main()
  File "/Library/Python/2.7/site-packages/taxi/app.py", line 148, in main
    app.run()
  File "/Library/Python/2.7/site-packages/taxi/app.py", line 136, in run
    action.run()
  File "/Library/Python/2.7/site-packages/taxi/commands.py", line 401, in run
    t.save()
  File "/Library/Python/2.7/site-packages/taxi/models.py", line 399, in save
    self.parser.save()
  File "/Library/Python/2.7/site-packages/taxi/parser/parsers/__init__.py", line 35, in save
    self.io.write(lines)
  File "/Library/Python/2.7/site-packages/taxi/parser/io.py", line 24, in write
    f.write('%s\n' % line)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 691, in write
    return self.writer.write(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 10: ordinal not in range(128)
~/tks > 

/bastian

@sephii
Copy link
Owner

sephii commented Dec 10, 2012

Can you check if this bug is still present in 3.0?

@sephii sephii closed this as completed Dec 10, 2012
@sephii sephii reopened this Dec 10, 2012
@dasrecht
Copy link
Author

Installed currently

taxi --version
taxi 3.0-beta4

without having a file present in my dir it throws following error

~/tks > taxi edit
Traceback (most recent call last):
  File "/usr/local/bin/taxi", line 4, in <module>
    app.main()
  File "/Library/Python/2.7/site-packages/taxi/app.py", line 148, in main
    app.run()
  File "/Library/Python/2.7/site-packages/taxi/app.py", line 136, in run
    action.run()
  File "/Library/Python/2.7/site-packages/taxi/commands.py", line 391, in run
    is_top_down = self.get_entries_direction()
  File "/Library/Python/2.7/site-packages/taxi/commands.py", line 79, in get_entries_direction
    p = PlainTextParser(PlainFileIo(oldfile))
  File "/Library/Python/2.7/site-packages/taxi/parser/parsers/plaintext.py", line 12, in __init__
    super(PlainTextParser, self).__init__(file)
  File "/Library/Python/2.7/site-packages/taxi/parser/parsers/__init__.py", line 7, in __init__
    self.lines = io.read()
  File "/Library/Python/2.7/site-packages/taxi/parser/io.py", line 16, in read
    with codecs.open(self.file_path, 'r', 'utf-8') as f:
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: '/Users/bastianwidmer/TKS/2012_11.tks'
~/tks > 

@sephii
Copy link
Owner

sephii commented Dec 10, 2012

Ok sorry, I fixed it in 223bc27, so installing v3.0 will fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants