Comments (17)
Original comment by dclinton
on 9 Sep 2008 at 4:04
- Changed state: Accepted
from python-twitter.
I've experienced the same problem.
Original comment by [email protected]
on 19 Sep 2008 at 11:28
from python-twitter.
Me too.
Original comment by [email protected]
on 4 Oct 2008 at 12:03
from python-twitter.
What architecture, version of python, etc, are you guys using?
Original comment by dclinton
on 4 Oct 2008 at 4:35
from python-twitter.
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 [email protected]
on 20 Oct 2008 at 7:20
Attachments:
from python-twitter.
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
from python-twitter.
Where and how do I install the patch?
Original comment by [email protected]
on 26 Oct 2008 at 8:41
from python-twitter.
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 [email protected]
on 13 Nov 2008 at 10:49
from python-twitter.
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 [email protected]
on 14 Nov 2008 at 5:44
Attachments:
from python-twitter.
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 [email protected]
on 1 Dec 2008 at 8:09
from python-twitter.
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 [email protected]
on 1 Dec 2008 at 8:17
Attachments:
from python-twitter.
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 [email protected]
on 1 Dec 2008 at 8:27
from python-twitter.
Ah, I was working on the development version of the library. Try this test file
with
it.
Original comment by [email protected]
on 1 Dec 2008 at 8:46
Attachments:
from python-twitter.
Great, that worked, thanks for the help with this issue!
Original comment by [email protected]
on 1 Dec 2008 at 8:51
from python-twitter.
Fixed in trunk. Please verify.
Original comment by dclinton
on 21 Jan 2009 at 7:55
- Changed state: Fixed
from python-twitter.
Issue 46 has been merged into this issue.
Original comment by dclinton
on 6 Mar 2009 at 6:54
from python-twitter.
validated that it is fixed in the lastest svn.
Original comment by [email protected]
on 6 Mar 2009 at 1:38
from python-twitter.
Related Issues (20)
- Patch for /twitter.py
- TwitterHTTPError HOT 1
- geocode does not return the right location for GetSearch HOT 1
- Follower info for user, not self
- twitter.Api.GetTrendsCurrent() does not work HOT 2
- creating /tmp/python.cache_<USER_NAME> and not deleting it. HOT 2
- [patch] Add exclude_replies parameter to GetUserTimeline HOT 1
- Failed to catch twitter api errors (current code checks for error)
- AttributeError: 'unicode' object has no attribute 'get' in NewFromJsonDict() HOT 1
- How to start?
- Can't encode ! It can't READ!
- Update needed in Pypi HOT 10
- Patch: adding support for include_entities in the GetSearch() function HOT 1
- twitterApi will return exception which are not twitter exceptions HOT 1
- python-twitter throws KeyError
- AttributeError: 'unicode' object has no attribute 'get' HOT 1
- Character Limit does not accurately match URL t.co wrapper
- NewFromJsonDict AttributeError HOT 2
- "UnicodeEncodeError: 'ascii' codec can't encode characters" during GetSearch() for utf-8 encoded search terms
- Current head (dca91beb7418) has a failing unit test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-twitter.