Code Monkey home page Code Monkey logo

vntnt's Introduction

vntnt

Simple converter from .vnt format into plain text.

vntnt's People

Contributors

tbrs avatar

Watchers

 avatar

vntnt's Issues

Error when converting files on Windows 7 64-bit

I tried running the vntnt.py file in the windows command prompt in the file directory, with 2 folders for the input and output of the vnt files.
The folder that had the .vnt files was named 'vnts', and had 40 .vnt files with the names unchanged from when they were copied from the android phone.
The output folder was named 'outputvnt', and they were both in the same directory as the vntnt.py file.
I wrote this in the command prompt in the file directory:
"python vntnt.py vnts outputvnt" (without the quotes) and it gave me this output:
Traceback (most recent call last):
File "vntnt.py", line 96, in
convertNote(fullFileName, outputDir)
File "vntnt.py", line 73, in convertNote
note.write(outFilename)
File "vntnt.py", line 64, in write
file = codecs.open(filename, "w", "utf-8")
File "C:\Python27\lib\codecs.py", line 881, in open
file = builtin.open(filename, mode, buffering)
IOError: [Errno 22] invalid mode ('wb') or filename: 'outputvnt\2019-01-02T10:08:55.txt'
I think it is probably having trouble with the name string, maybe because it has colons in it, and windows does not allow naming of files with colons in the name. I think this problem could probably be fixed by removing colons from the output file name, or maybe naming the file something else than the date and time in the .vnt file.

I think it is probably just a problem with naming the file because that is what the error message looks like it has a problem with, but I might be wrong and it isn't actually trying to name it with colons, and it means somehthing else, because I don't understand or use python very much.

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.