djmuhlestein / csv2ofx

Convert CSV files from Yodlee (or other sources) into OFX files for import into other financial software.
66 stars 28 forks source link

AttributeError when starting csv2ofx #5

Open Tova opened 14 years ago

Tova commented 14 years ago

csv2ofx exits bofore opening with this error:

Traceback (most recent call last): File "/usr/local/bin/csv2ofx", line 14, in a=csv2ofx.csv2ofx() File "/usr/local/lib/python2.6/dist-packages/csv2ofx/init.py", line 25, in init wx.App.init(self,redirect=False) File "/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in init self._BootstrapApp() File "/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp return core.PyApp__BootstrapApp(_args, *_kwargs) File "/usr/local/lib/python2.6/dist-packages/csv2ofx/init.py", line 46, in OnInit self.grid.EnableEditing(False) AttributeError: 'NoneType' object has no attribute 'EnableEditing'

a month ago it was working. Any suggestions?

djmuhlestein commented 14 years ago

It looks like somehow in your setup the grid wasn't created. (Hence the grid is None and then has not method EnableEditing). I wonder if this is a python 2.6 error. Can you try with Python 2.5 to see? It works for me still. I'll see if I can get a 2.6 installation somewhere to try it out.

Tova commented 14 years ago

I'm not sure how to try it with another version of Python. So that's what I've done:

python2.5 setup.py install

then

/usr/bin/csv2ofx

But that stil doesn't work:

"Traceback (most recent call last): File "/usr/bin/csv2ofx", line 14, in a=csv2ofx.csv2ofx() File "/usr/lib/python2.5/site-packages/csv2ofx/init.py", line 25, in init wx.App.init(self,redirect=False) File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in init self._BootstrapApp() File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp return core.PyApp__BootstrapApp(_args, *_kwargs) File "/usr/lib/python2.5/site-packages/csv2ofx/init.py", line 46, in OnInit self.grid.EnableEditing(False) AttributeError: 'NoneType' object has no attribute 'EnableEditing' "

should I try it another way?