Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while using api.update_status('hello') #659

Closed
harshdattani opened this issue Oct 11, 2015 · 5 comments
Closed

Error while using api.update_status('hello') #659

harshdattani opened this issue Oct 11, 2015 · 5 comments
Labels
Dependency This is regarding the library's dependencies

Comments

@harshdattani
Copy link

Getting this error while running api.update_status('hello')
Library is imported perfectly and all keys are verified to be truely entered.

Error:
Traceback (most recent call last):
File "runme.py", line 12, in
api.update_status('tweepy + oauth!')
File "/usr/local/lib/python2.7/dist-packages/tweepy/api.py", line 193, in update_status
)(post_data=post_data, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 243, in _call
return method.execute()
File "/usr/local/lib/python2.7/dist-packages/tweepy/binder.py", line 189, in execute
raise TweepError('Failed to send request: %s' % e)
tweepy.error.TweepError: Failed to send request: cannot make memory view because object does not have the buffer interface

@fitnr
Copy link
Contributor

fitnr commented Oct 16, 2015

I believe this is a bug in requests, a library tweepy relies on. I had the same issue and solved it by downgrading to requests 2.7.0:

pip uninstall requests
pip install requests==2.7

@yprez
Copy link
Contributor

yprez commented Oct 16, 2015

Might be the same issue as #644 #578 #554 , etc.

tl;dr - try using: api.update_status(status='tweepy + oauth!')

@jontsai
Copy link

jontsai commented Nov 3, 2015

I'm having a similar issue:
api.lookup_users(user_ids=chunk) results in Failed to send request: cannot make memory view because object does not have the buffer interface

Downgrading requests==2.8.1 to requests==2.7.0 also seems to fix it for me.

@pcawthron
Copy link

I'm very new to tweepy but api.update_status("A test from the tweepy API") works fine here with requests 2.9.1 with Python 2.7.11 32-bit on Windows 8.1 Pro 64-bit.

My packages are:

PySide 1.2.4 has no metadata
Pygments 2.0.2 has no metadata
cycler 0.9.0 has no metadata
decorator 4.0.6 has no metadata
ipykernel 4.2.1 has no metadata
ipython-genutils 0.1.0 has no metadata
ipython 4.0.1 has no metadata
jupyter-client 4.1.1 has no metadata
jupyter-core 4.0.6 has no metadata
matplotlib 1.5.0 has no metadata
numexpr 2.4.6 has no metadata
numpy 1.9.3 has no metadata
oauthlib - 1.0.3 - active
pandas 0.17.1 has no metadata
path.py 8.1.2 has no metadata
pickleshare - 0.5 - active
pip 7.1.2 has no metadata
pyparsing 2.0.6 has no metadata
python-dateutil 2.4.2 has no metadata
pytz 2015.7 has no metadata
pyzmq 15.1.0 has no metadata
qtconsole 4.1.1 has no metadata
requests-oauthlib 0.6.0 has no metadata
requests 2.9.1 has no metadata
setuptools 18.2 has no metadata
simplegeneric - 0.8.1 - active
six 1.10.0 has no metadata
tables 3.2.2 has no metadata
traitlets 4.0.0 has no metadata
tweepy 3.5.0 has no metadata
twitter 1.17.1 has no metadata
twython 3.3.0 has no metadata
wheel 0.26.0 has no metadata
yolk - 0.4.3 - active

@wallstreetbets
Copy link

Downgrading the module "requests" 2.7 did for me, thank you

@Harmon758 Harmon758 added the Dependency This is regarding the library's dependencies label Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependency This is regarding the library's dependencies
Projects
None yet
Development

No branches or pull requests

7 participants