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

Unable to start #25

Closed
guido4000 opened this issue Jul 26, 2014 · 12 comments
Closed

Unable to start #25

guido4000 opened this issue Jul 26, 2014 · 12 comments

Comments

@guido4000
Copy link

OSX 10.9.4.

Successfully installed rainbowstream python-dateutil requests six
Cleaning up...

@main ➜ ~ rainbowstream

Traceback (most recent call last):
  File "/usr/local/bin/rainbowstream", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: Pillow
@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

Hi @guido4000 . It seems that the package Pillow wasn't installed correctly
Could you please check the installation log? Something similar to #10 ?

@guido4000
Copy link
Author

Hereby the log

sudo pip install -U rainbowstream
Downloading/unpacking rainbowstream
  Downloading rainbowstream-0.4.9.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/rainbowstream/setup.py) egg_info for package rainbowstream

Downloading/unpacking python-dateutil from https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.2.tar.gz#md5=c1f654d0ff7e33999380a8ba9783fd5c (from rainbowstream)
  Downloading python-dateutil-2.2.tar.gz (259kB): 259kB downloaded
  Running setup.py (path:/private/tmp/pip_build_root/python-dateutil/setup.py) egg_info for package python-dateutil

Downloading/unpacking requests from https://pypi.python.org/packages/2.7/r/requests/requests-2.3.0-py2.py3-none-any.whl#md5=f2d850fd48fc10a93aa03d69b87b96b4 (from rainbowstream)
  Downloading requests-2.3.0-py2.py3-none-any.whl (452kB): 452kB downloaded
Requirement already up-to-date: pyfiglet in /Library/Python/2.7/site-packages (from rainbowstream)
Requirement already up-to-date: SQLAlchemy in /Library/Python/2.7/site-packages (from rainbowstream)
Requirement already up-to-date: twitter in /Library/Python/2.7/site-packages (from rainbowstream)
Requirement already up-to-date: Pillow in /Library/Python/2.7/site-packages (from rainbowstream)
Requirement already up-to-date: pysqlite in /Library/Python/2.7/site-packages (from rainbowstream)
Downloading/unpacking six (from python-dateutil->rainbowstream)
  Downloading six-1.7.3-py2.py3-none-any.whl
Installing collected packages: rainbowstream, python-dateutil, requests, six
  Running setup.py install for rainbowstream

    Installing rainbowstream script to /usr/local/bin
  Found existing installation: python-dateutil 1.5
    Uninstalling python-dateutil:
      Successfully uninstalled python-dateutil
  Running setup.py install for python-dateutil

  Found existing installation: requests 2.2.1
    Uninstalling requests:
      Successfully uninstalled requests
Successfully installed rainbowstream python-dateutil requests six
Cleaning up...

And I tried to install Pillow manually

@main ➜  ~  sudo pip install Pillow
Password:
Requirement already satisfied (use --upgrade to upgrade): Pillow in /Library/Python/2.7/site-packages
Cleaning up...

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

Could you try sudo pip install -U Pillow and start rainbowstream again ?

@guido4000
Copy link
Author

I tried that

@main ➜  ~  sudo pip install -U Pillow
Password:
Requirement already up-to-date: Pillow in /Library/Python/2.7/site-packages
Cleaning up...
@main ➜  ~  rainbowstream
Traceback (most recent call last):
  File "/usr/local/bin/rainbowstream", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: Pillow

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

Hmm it's very weird.
Could you try the virtualenv installation to see what will happen when we install a brand new Pillow package ?

@guido4000
Copy link
Author

Tried that:

Successfully installed rainbowstream python-dateutil requests pyfiglet SQLAlchemy twitter Pillow pysqlite six
Cleaning up...

Same error.
I tried out the solution from #10, too. No success

@main ➜  ~  rainbowstream
Traceback (most recent call last):
  File "/usr/local/bin/rainbowstream", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: Pillow
(venv)@main ➜  ~

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

I think this rainbowstream is /usr/local/bin/rainbowstream - the version installed with sudo but not with virtualenv.

Could you try the virtualenv version with below command ?

$ venv/bin/rainbowstream # In case your virtualenv named "venv"

@guido4000
Copy link
Author

Correct! Just had run it like this and to chown .rainbow_config.json and now it is working.

Thank you!

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

You are welcome 👌
But I still concerned about your system's installed Pillow package. Maybe following commands

sudo pip uninstall Pillow
sudo pip install Pillow

will fix the problem with /usr/local/bin/rainbowstream as well :)

@guido4000
Copy link
Author

This did not help, but I tried to easy_install the packages and it worked:

sudo easy_install Pillow
sudo easy_install twitter
sudo easy_install requests
sudo easy_install six

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

👍

@Thomasxiaof
Copy link

D:\Python27\pip-1.5.6>testdroid
Traceback (most recent call last):
File "D:\Python27\Scripts\testdroid-script.py", line 5, in
from pkg_resources import load_entry_point
File "D:\Python27\lib\site-packages\pkg_resources.py", line 2603, in
working_set.require(requires)
File "D:\Python27\lib\site-packages\pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "D:\Python27\lib\site-packages\pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: pillow

Hi All,I do not know how to reslove it,please help?Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants