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 invoking rainbowstream #16

Closed
jikkujose opened this issue Jul 14, 2014 · 14 comments
Closed

Error invoking rainbowstream #16

jikkujose opened this issue Jul 14, 2014 · 14 comments

Comments

@jikkujose
Copy link

Traceback (most recent call last):
File "/usr/local/bin/rainbowstream", line 5, in
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
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: pysqlite

@orakaro
Copy link
Owner

orakaro commented Jul 15, 2014

Can you provide a little more information ? Is this error occurred when running (or during install) the app ? Did you use Mac (which OSX version ? ) or Linux (which distro ?)

Did you tried pip install -U rainbowstream to get the latest version ?

@yaps8
Copy link

yaps8 commented Jul 25, 2014

I had the same output when I tried to install it with venv and launched it but actually there was an error upon installation:
$ pip install rainbowstream
[...]
In file included from src/module.c:24:0:
src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory
#include "sqlite3.h"
^
compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


The problem is the missing sqlite3.h which, on debian, is provided by the package libsqlite3-dev.
I hope it also fixes your problem.

@mikeforbes
Copy link

FYI: You also need python-dev if on ubuntu, which the instructions don't include.

sudo apt-get install python-dev

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

Thanks @mikeforbes and @yaps8 👍

@jikkujose
Copy link
Author

I am on Mavericks and I got it on running.

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

@jikkujose : Do you still have problem with install now ?
I saw you talk about other features in another thread so guessed this was ok but didn't know for sure.

@theanalyst
Copy link

@yaps8 try installing libsqlite3-dev

@jikkujose
Copy link
Author

Yup, still can't set it up in my home. I tried in office and it worked. At
home I am having Mavericks; it seems pysqlite is missing, but couldn't find
how to install it.

On 26 July 2014 12:05, Orakaro notifications@github.com wrote:

@jikkujose https://github.com/JikkuJose : Do you still have problem
with install now ?
I saw you talk about other features in another thread so guessed this was
ok but didn't know for sure.


Reply to this email directly or view it on GitHub
#16 (comment).

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

Did the installation wen fine without an error?
Can I see the output of pip list and pip install pysqlite on your env ?
By the way I'm using Mavericks/python2.7 too and output should be as below

(venv)DTVD@DTVD-Air :: ~/test -->> pip list
Pillow (2.5.1)
pip (1.5.4)
pyfiglet (0.7)
pysqlite (2.6.3)
python-dateutil (2.2)
rainbowstream (0.4.9)
requests (2.3.0)
setuptools (2.2)
six (1.7.3)
SQLAlchemy (0.9.7)
twitter (1.14.3)
wsgiref (0.1.2)
(venv)DTVD@DTVD-Air :: ~/test -->> pip install pysqlite
Requirement already satisfied (use --upgrade to upgrade): pysqlite in ./venv/lib/python2.7/site-packages
Cleaning up...

@jikkujose
Copy link
Author

Command Log
pip list log
pip install pysqlite log

Environment:

  • Mavericks
  • Python 2.7.5

@orakaro
Copy link
Owner

orakaro commented Jul 26, 2014

Hey! Maybe I know this error - The reason is your Maverick and Xcode 5.1 clang compiler treats unknown passed parameters as errors .

Please see more detail at #10 and try the work around to reinstall pysqlite

@erikcox
Copy link

erikcox commented Jul 30, 2014

I am running Ubuntu 14.04 and have python-dev and libsqlite3-dev installed. When trying to install with pip and the venv methods I get this error:

Running setup.py (path:/tmp/pip_build_root/rainbowstream/setup.py) egg_info for package rainbowstream
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_root/rainbowstream/setup.py", line 33, in
long_description=open("./README.rst", "r").read(),
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 372: ordinal not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/rainbowstream/setup.py", line 33, in

long_description=open("./README.rst", "r").read(),

File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode

return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 372: ordinal not in range(128)

@orakaro
Copy link
Owner

orakaro commented Jul 30, 2014

Let's try to specifying PYTHONIOENCODING before reinstall

export PYTHONIOENCODING=utf-8

There is a similar question on StackOverFlow.

@erikcox
Copy link

erikcox commented Jul 31, 2014

Thanks, I got it sorted. It was my fault. Python 3.x is the default on my system and is what the pip command uses. I forgot I had an alias for pip2 which uses Python 2.7. so pip2 install rainbowstream worked great.

@orakaro orakaro closed this as completed Jul 31, 2014
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

6 participants