1

This is likely a rookie error, but im in the early stages of learning python.

  • Running Win7 64bit
  • Python is 2.7.2 64bit, python runs fine from CMD prompt.
  • I downloaded TweetStream. and its under c:/
  • Opened the setup.py in pyscripter.
  • Executing it, I get this error:

enter image description here

Not too sure what I have done wrong, or how to rectify this problem.
Here is a short screencast if it sheds anymore light.

EDIT - in response to comment.

c:\tweetstream-1.1.1>python setup.cfg install
  File "setup.cfg", line 2
    tag_build =
               ^
SyntaxError: invalid syntax
jakc
  • 1,161
  • 3
  • 15
  • 42
  • 1
    execute from a command-line: `python setup.py install` and paste the full traceback – jfs Nov 03 '12 at 08:26
  • setup. **py** is a Python script. setup. **cfg** is a configuration file. Look at the command in the previous comment more carefully. – jfs Nov 03 '12 at 10:40
  • my bad, rushed that without thinking. It now installs, however I believe this was a result of me having to install setuptools as this was missing. Let me know if you think im wrong. – jakc Nov 03 '12 at 10:49
  • 1
    missing setuptools is the most probable cause. The traceback would tell it for certain. – jfs Nov 03 '12 at 10:56

2 Answers2

7

Maybe this can help you. Otherwise, you can install setuptools in your python, I don't think you have it installed. setuptools

Unknown
  • 5,722
  • 5
  • 43
  • 64
  • 2
    I had the same issue, but in my case the version of setuptools was just too old. I uninstalled it via `pip uninstall setuptools` and reinstalled it. That helped – Stoecki Aug 15 '19 at 09:33
3

I did the following and it worked for me:

pip uninstall setuptools

and then reinstall it:

pip install setuptools

Aymen Alsaadi
  • 1,329
  • 1
  • 11
  • 12
  • This isn't working for me. I uninstalled setuptools which was 62.0.3 then reinstalled it with 41.0.1, looks like I went backwards for unknown reasons – bobsmith76 Jun 05 '22 at 06:07
  • actually i got setuptools installed again, 62.0.3 which is the most update version but `find_packages` is still not working – bobsmith76 Jun 05 '22 at 06:09
  • I got it fixed. I have to write `from setuptools import find_packages`, I was writing `import find_packages` – bobsmith76 Jun 05 '22 at 06:13