Twython().search(q="anythong") throws unicode2utf8() takes exactly 1 argument (2 given) #103
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am using Ubuntu 11.10 and installed using sudo pip install twython.
TypeError: unicode2utf8() takes exactly 1 argument (2 given)
Am i missing some dependency. I am using Python version: '2.7.2+ (default, Oct 4 2011, 20:06:09) \n[GCC 4.6.1]'
othe API's like getDailyTrends() work fine.
Looks like @michaelhelmick is on this, we'll merge it when his other patches are good to go. Thanks for filing!
Thanks for the quick fix.
Hi,
I am trying to develop a small program. I can use getUserTimeline & getWeeklyTrends from using proxy but when I try to use search I get below error.
Traceback (most recent call last):
File "search_results.py", line 9, in
print twitter.search(q='python')
File "C:\Python26\lib\site-packages\twython\twython.py", line 368, in search
return self.get('https://search.twitter.com/search.json', params=kwargs)
File "C:\Python26\lib\site-packages\twython\twython.py", line 239, in get
return self.request(endpoint, params=params, version=version)
File "C:\Python26\lib\site-packages\twython\twython.py", line 234, in request
content = self.request(url, method=method, params=params, files=files, api
call=url)
File "C:\Python26\lib\site-packages\twython\twython.py", line 171, in _request
File "C:\Python26\Lib\site-packages\requests\sessions.py", line 254, in get
return self.request('get', url, **kwargs)
File "C:\Python26\Lib\site-packages\requests\sessions.py", line 241, in reques
t
r.send(prefetch=prefetch)
File "C:\Python26\Lib\site-packages\requests\models.py", line 634, in send
raise ConnectionError(sockerr)
requests.exceptions.ConnectionError: [Errno 10051] A socket operation was attemp
ted to an unreachable network
Am I missing something here?
Thanks in advance,
Dhananjay