cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

MissingSectionHeaderError #100

Closed paultroop closed 10 years ago

paultroop commented 10 years ago

I am having trouble launching NVpy since I added the simplenote details. I get the following when I type nvpy in terminal:

Traceback (most recent call last): File "/usr/local/bin/nvpy", line 9, in load_entry_point('nvpy==0.9.4', 'gui_scripts', 'nvpy')() File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 691, in main controller = Controller() File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 202, in init self.config = Config(self.appdir) File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 112, in init os.path.join(home, '.nvpyrc')]) File "/usr/lib/python2.7/ConfigParser.py", line 305, in read self._read(fp, filename) File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read raise MissingSectionHeaderError(fpname, lineno, line) ConfigParser.MissingSectionHeaderError: File contains no section headers. file: /home/xxxx/.nvpy.cfg, line: 1 'sn_username = xxxx\n'

paultroop commented 10 years ago

I have found the following information on the internet at: https://bbs.archlinux.org/viewtopic.php?id=150831

"Missed a '[' in .nvpy.cfg file. Fixed by fixing config file. Please ignore."

If this is the solution, can somebody clarify what this requires please?

paultroop commented 10 years ago

It seems that the phrase '[nvpy]' is required within the start of the .nvpy.cfg file. It is working now.

cpbotha commented 10 years ago

Glad you got it fixed.