Closed GoogleCodeExporter closed 9 years ago
Original comment by dclinton
on 9 Sep 2008 at 4:04
I've experienced the same problem.
Original comment by odio....@gmail.com
on 19 Sep 2008 at 11:28
Me too.
Original comment by gavin.gi...@gmail.com
on 4 Oct 2008 at 12:03
What architecture, version of python, etc, are you guys using?
Original comment by dclinton
on 4 Oct 2008 at 4:35
This patch resolves the test failures. My best guess is that simplejson's
changes at
2.0.0 are to "blame" here. I tested on Fedora Rawhide x86_64, simplejson 2.0.3,
and
simplejson 2.0.1 just for good measure, both needed this patch.
Original comment by spo...@gmail.com
on 20 Oct 2008 at 7:20
Attachments:
Hmm. Unfortunately that breaks on non 2.0 versions of simplejson. Should we be
bundling simplejson with twitter-python just to make sure there isn't a
mismatch?
Original comment by dclinton
on 20 Oct 2008 at 7:25
Where and how do I install the patch?
Original comment by philipp....@googlemail.com
on 26 Oct 2008 at 8:41
I think there are ways to enforce a version of a module, but I've never done it
myself. I'm all for bundling, unless
there are some critical problems fixed since this change. The change happened
in 1.8, by the way, not 2.0.
Original comment by dan.y.t...@gmail.com
on 13 Nov 2008 at 10:49
The alternative could be to modify the simplejson stuff from the twitter module
if simplejson's __version__ is 1.8
or up. Kind of hackish and you have to disable the C encoder, but it prevents
the need to bundle simplejson.
Example patch included.
Original comment by dan.y.t...@gmail.com
on 14 Nov 2008 at 5:44
Attachments:
Hey guys, I am relatively new to Python and I'm unsure about how to install
either of
patches that have been made available for this fix. Would someone mind posting
instructions on how to install them or point me in the right direction? I'd
really
appreciate the help, thanks.
Original comment by kunal.d....@gmail.com
on 1 Dec 2008 at 8:09
If you're on a Unix system, download the file to the directory containing
twitter.py
and type "patch < xxx.patch" in a terminal, where xxx is replaced by the name
of the
patch you want to apply. I've never done it in Windows before, so I don't know
how
people normally do it. Alternatively, you can just replace your twitter.py with
the
attached file. The only difference is the first if statement after the imports.
Original comment by dan.y.t...@gmail.com
on 1 Dec 2008 at 8:17
Attachments:
Hey Dan, thanks for posting that file. I am on a Windows machine, and when I
replaced my twitter.py file, reinstalled, and tested again, my JSON errors were
gone
but I got 3 new errors relating to the Status class -
FAIL: Test all of the twitter.Status getters and setters
FAIL: Test all of the twitter.Status properties
FAIL: Test various permutations of Status relative_created_at
Not quite sure why these are occurring, any help you could provide would be
appreciated. Thanks.
Original comment by kunal.d....@gmail.com
on 1 Dec 2008 at 8:27
Ah, I was working on the development version of the library. Try this test file
with
it.
Original comment by dan.y.t...@gmail.com
on 1 Dec 2008 at 8:46
Attachments:
Great, that worked, thanks for the help with this issue!
Original comment by kunal.d....@gmail.com
on 1 Dec 2008 at 8:51
Fixed in trunk. Please verify.
Original comment by dclinton
on 21 Jan 2009 at 7:55
Original issue reported on code.google.com by
pobri...@gmail.com
on 9 Sep 2008 at 3:57