-
Notifications
You must be signed in to change notification settings - Fork 105
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
Trying to run speed complainer here on RaspberryPi and receiving error on start #12
Comments
use the following codes first: Your error is that you do not have the daemon package installed |
I tried that based on other messages in the list Here’s what I get: ~/speedcomplainer# pip install daemon -bash: pip: command not found root@mercury:~/speedcomplainer# apt-get install pip Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package pip And yes to answer the second email and not clutter up with multiple mails that is the entire error message cut and pate from the system. From: DarthKeizer [mailto:[email protected]] use the following codes first: Your error is that you do not have the daemon package installed — |
It is a package, so run it it another terminal. What happens? also did you do: sudo apt-get install daemon ? |
I installed daemon but still get similar results as shown below - install of dEmon and result all shown: root@mercury: [1]+ Exit 1 python speedcomplainer.py > /dev/null George R. Kasica
|
You need to install Python's daemon module:
|
OK that’s fixed now I’m seeing this…hate to keep posting these but I’m not a python programmer root@mercury:~/speedcomplainer# python speedcomplainer.py Traceback (most recent call last): File "speedcomplainer.py", line 8, in
ImportError: No module named twitter From: The Doctor [mailto:[email protected]] You need to install Python's daemon module: sudo apt-get install -y python-daemon — |
I think there you've got a problem, but it's not insurmountable. You'll have to set up a virtualenv and install the Twitter Python module into it. I can walk you through the process if you like. |
So this can’t be run in the standard OS environment then? If you’re willing to sure. Can I install the twitter python module into the regular OS Environment on the Raspberry OS? From: The Doctor [mailto:[email protected]] I think there you've got a problem, but it's not insurmountable. You'll have to set up a virtualenv and install the Twitter Python module into it. I can walk you through the process if you like. — |
It can be. Let me explain, because virtualenvs are not the same as virtual machines: Python has the notion of virtualenvs, or isolated Python environments which allow you to install Python modules and utilities such that they aren't available to the entire system, just the context of a single application. This lets you easily run applications which are written using Python 2 and 3 and even conflicting versions of Python modules simultaneously. Here's how you set one up: First, install virtualenv and pip (which you'll use to install Python modules): cd into the speedcomplainer/ repository and create a virtualenv: virtualenv will set up a directory structure inside of the repo called env/ and make a bunch of symlinks. Now activate it: Now your shell is using the Python virtual environment you just created and not the systemwide one. Install the Twitter module (which goes into the virtualenv): Try running speedcomplainer.py again. |
So do I need to pull the entire git repository down to the raspberry to make it work or is the zip enough? And if the entire repo how would I do that - again not a git expert here. George R. Kasica
|
For thoses who cant install, is my tutorial to run. sudo pip install daemon |
Have the latest code I believe from the GitHub download and have tried both methods of running the program here after configuration:
python speedcomplainer.py
Or to run in the background:
python speedcomplainer.py > /dev/null &
and both yield
@mercury:
/speedcomplainer# python speedcomplainer.py/speedcomplainer# python speedcomplainer.py > /dev/null &Traceback (most recent call last):
File "speedcomplainer.py", line 5, in
import daemon
ImportError: No module named daemon
@mercury:
[1] 22184
@mercury:~/speedcomplainer# Traceback (most recent call last):
File "speedcomplainer.py", line 5, in
import daemon
ImportError: No module named daemon
[1]+ Exit 1 python speedcomplainer.py >
I.m not a python programmer so I have no idea how to fix this issue can you assist?
Attached is my config.json file.
I have AT&T Uverse at 18MB/sec inbound.
Thank you very much for you help.
George Kasica
[email protected]
config.zip
The text was updated successfully, but these errors were encountered: