nhoening / gritttt-rss

Implements 'cancelled' sharing-features of Google Reader for the excellent open-source RSS-Reader TinyTiny-RSS: share any page on the web via a bookmarklet and show your shared items in a widget on any website you want. Also allow to import shared&starred articles from Google Reader.
gritttt-rss.nicolashoening.de
Other
48 stars 4 forks source link

Error with import & Python json issue #47

Closed djronh1 closed 11 years ago

djronh1 commented 11 years ago

Had a couple of issues, one which I was able to resolve.

First issue was getting this error: Traceback (most recent call last): File "./import.py", line 16, in import json ImportError: No module named json

After some Googling, found that fix was to change line 16 from "import json" to "import simplejson", apparently because version of Python on my web host (Dreamhost) was too low. Issue happens with a version of Python less than 2.6

Second issue, which is currently unresolved, after running script; I'm now getting following error:

Writing gritttt-import.sql ... Traceback (most recent call last): File "./import.py", line 83, in ttim.write('-- SQL Import from Google Reader, created {0} \n\n '\ AttributeError: 'str' object has no attribute 'format'

Any suggestions?

nhoening commented 11 years ago

Yeah, str.format also exists only in "newer" versions of python. (I will have to look up which, but 2.5 is several years old by now). Why are you doing this conversion on your web host, anyway? Surely your local computer has a suitable version of python and you can then transfer the .sql file to your web host.

I should put the minimum python version requirement in the readme.

djronh1 notifications@github.com schrieb:

Had a couple of issues, one which I was able to resolve.

First issue was getting this error: Traceback (most recent call last): File "./import.py", line 16, in import json ImportError: No module named json

After some Googling, found that fix was to change line 16 from "import json" to "import simplejson", apparently becuase version of Python on my web host (Dreamhost) has a version of Python less than 2.6

Second issue, which is currently unresolved, after running script; I'm now getting following error:

Writing gritttt-import.sql ... Traceback (most recent call last): File "./import.py", line 83, in ttim.write('-- SQL Import from Google Reader, created {0} \n\n '\ AttributeError: 'str' object has no attribute 'format'

Any suggestions?


Reply to this email directly or view it on GitHub: https://github.com/nhoening/gritttt-rss/issues/47