LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problems installing tweepy (https://www.linuxquestions.org/questions/linux-software-2/problems-installing-tweepy-4175550167/)

jazzo 08-07-2015 01:44 PM

problems installing tweepy
 
Hi guys,
I wonder if you can help me with this please.
I'm trying to install tweepy but I run into some problems. First of all I installed python-pip which went through OK it looks like, then when I tried tweepy I got the following error:
Code:

antobbo@antobbo-linux-Dell-System-XPS-L702X:~$ pip install tweepy
Downloading/unpacking tweepy
  Downloading tweepy-3.3.0.tar.gz
  Running setup.py egg_info for package tweepy
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/antobbo/build/tweepy/setup.py", line 17, in <module>
        install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
    TypeError: parse_requirements() got an unexpected keyword argument 'session'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/antobbo/build/tweepy/setup.py", line 17, in <module>

    install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())

TypeError: parse_requirements() got an unexpected keyword argument 'session'

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/antobbo/.pip/pip.log

I then tried from github but got the same error:
Code:

antobbo@antobbo-linux-Dell-System-XPS-L702X:~$ git clone https://github.com/tweepy/tweepy.git
Cloning into 'tweepy'...
remote: Counting objects: 4026, done.
remote: Total 4026 (delta 0), reused 0 (delta 0), pack-reused 4026
Receiving objects: 100% (4026/4026), 1.93 MiB | 1.22 MiB/s, done.
Resolving deltas: 100% (2323/2323), done.
antobbo@antobbo-linux-Dell-System-XPS-L702X:~$ cd tweepy
antobbo@antobbo-linux-Dell-System-XPS-L702X:~/tweepy$ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 17, in <module>
    install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
TypeError: parse_requirements() got an unexpected keyword argument 'session'

Do you guys have any idea what to do pls?
thanks

knudfl 08-08-2015 07:02 AM

? Which "Linux OS" ?
a) The reply from the command $ uname -m
b) OS name, version : Must be specified by every question
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/~esr/faqs/smart-questions.html

? Which python version : $ python

* No tweepy issues with my test : Python 2.7.9 .


-

jazzo 08-09-2015 04:40 AM

Apologies, I forgot.
Linux version is 12.04.
Code:

antobbo@antobbo-linux-Dell-System-XPS-L702X:~$  uname -m
x86_64

Code:

antobbo@antobbo-linux-Dell-System-XPS-L702X:~$ python --version
Python 2.7.3

Should I upgrade do you think?

knudfl 08-09-2015 08:19 AM

No luck with Ubuntu 12.04 (i686 or x86_64) / python 2.7.3 . EDIT ...
EDIT : See #5.

OK is Ubuntu 14.04 (i686 or x86_64) / python 2.7.6 :
$ sudo apt-get install git python-setuptools python-pip python-all-dev
$ git clone https://github.com/tweepy/tweepy.git
$ cd tweepy/
$ python setup.py build


-

knudfl 08-09-2015 03:06 PM

Ubuntu 12.04 : $ sudo apt-get install python-tweepy

....Which will provide version 1.7.1
http://packages.ubuntu.com/precise/python-tweepy
.. http://packages.ubuntu.com/search?ke...searchon=names



-

jazzo 08-10-2015 03:12 PM

OK, looks like I've installed it with the command you suggested knudfl, thanks, I will see how it goes now


All times are GMT -5. The time now is 05:35 PM.