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

Trying to run speed complainer here on RaspberryPi and receiving error on start #12

Open
gkasica opened this issue Apr 17, 2016 · 11 comments

Comments

@gkasica
Copy link

gkasica commented Apr 17, 2016

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
Traceback (most recent call last):
File "speedcomplainer.py", line 5, in
import daemon
ImportError: No module named daemon
@mercury:
/speedcomplainer# python speedcomplainer.py > /dev/null &
[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
gkasica@netwrx1.com

config.zip

@DarthKeizer
Copy link

DarthKeizer commented Apr 23, 2016

use the following codes first:
sudo pip install daemon
sudo pip install python-twitter

Your error is that you do not have the daemon package installed

@gkasica
Copy link
Author

gkasica commented Apr 23, 2016

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:notifications@github.com]
Sent: Saturday, 23 April, 2016 04:58
To: james-atkinson/speedcomplainer speedcomplainer@noreply.github.com
Cc: George R. Kasica gkasica@netwrx1.com; Author author@noreply.github.com
Subject: Re: [james-atkinson/speedcomplainer] Trying to run speed complainer here on RaspberryPi and receiving error on start (#12)

use the following codes first:
pip install daemon

Your error is that you do not have the daemon package installed


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #12 (comment) https://github.com/notifications/beacon/AFAd4KMcZW2oSrARk9Ec4g2z0VV4blVqks5p6e0LgaJpZM4IJK93.gif

@DarthKeizer
Copy link

It is a package, so run it it another terminal. What happens?

also did you do: sudo apt-get install daemon ?

@gkasica
Copy link
Author

gkasica commented Apr 24, 2016

I installed daemon but still get similar results as shown below - install of dEmon and result all shown:

root@mercury:/speedcomplainer# apt-get install daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
daemon
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 80.9 kB of archives.
After this operation, 218 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main daemon armhf 0.6.4-1 [80.9 kB]
Fetched 80.9 kB in 0s (92.2 kB/s)
Selecting previously unselected package daemon.
(Reading database ... 90314 files and directories currently installed.)
Unpacking daemon (from .../daemon_0.6.4-1_armhf.deb) ...
Processing triggers for man-db ...
Setting up daemon (0.6.4-1) ...
root@mercury:
/speedcomplainer# python speedcomplainer.py > /dev/null &
[1] 5597
root@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 > /dev/null


George R. Kasica
Sent from my iPad 2 air

On Apr 23, 2016, at 09:34, DarthKeizer notifications@github.com wrote:

It is a package, so run it it another terminal. What happens?

also did you do: sudo apt-get install daemon ?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@virtadpt
Copy link

You need to install Python's daemon module:

sudo apt-get install -y python-daemon

@gkasica
Copy link
Author

gkasica commented May 23, 2016

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

import twitter

ImportError: No module named twitter

From: The Doctor [mailto:notifications@github.com]
Sent: Sunday, May 22, 2016 18:35
To: james-atkinson/speedcomplainer speedcomplainer@noreply.github.com
Cc: George R. Kasica gkasica@netwrx1.com; Author author@noreply.github.com
Subject: Re: [james-atkinson/speedcomplainer] Trying to run speed complainer here on RaspberryPi and receiving error on start (#12)

You need to install Python's daemon module:

sudo apt-get install -y python-daemon


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #12 (comment) https://github.com/notifications/beacon/AFAd4NwSdwPk5cWriQBAptfZVoMd-6Q-ks5qEOgMgaJpZM4IJK93.gif

@virtadpt
Copy link

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.

@gkasica
Copy link
Author

gkasica commented May 23, 2016

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:notifications@github.com]
Sent: Monday, May 23, 2016 16:42
To: james-atkinson/speedcomplainer speedcomplainer@noreply.github.com
Cc: George R. Kasica gkasica@netwrx1.com; Author author@noreply.github.com
Subject: Re: [james-atkinson/speedcomplainer] Trying to run speed complainer here on RaspberryPi and receiving error on start (#12)

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.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #12 (comment) https://github.com/notifications/beacon/AFAd4AukBSEvIGTQz8ARJQPcCUtZVfiqks5qEh8VgaJpZM4IJK93.gif

@virtadpt
Copy link

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): sudo apt-get install -y python-virtualenv python-pip

cd into the speedcomplainer/ repository and create a virtualenv: virtualenv env

virtualenv will set up a directory structure inside of the repo called env/ and make a bunch of symlinks. Now activate it: . env/bin/activate

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): pip install twitter

Try running speedcomplainer.py again.

@gkasica
Copy link
Author

gkasica commented May 23, 2016

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
Sent from my iPhone6 plus

On May 23, 2016, at 18:21, The Doctor notifications@github.com wrote:

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): sudo apt-get install -y python-virtualenv python-pip

cd into the speedcomplainer/ repository and create a virtualenv: virtualenv env

virtualenv will set up a directory structure inside of the repo called env/ and make a bunch of symlinks. Now activate it: . env/bin/activate

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): pip install twitter

Try running speedcomplainer.py again.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@engFelipeMonteiro
Copy link

For thoses who cant install, is my tutorial to run.

sudo pip install daemon
sudo pip install twitter
sudo apt-get install speedtest-cli
sudo ln -s /usr/bin/speedtest-cli /usr/local/bin/speedtest-cli

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

No branches or pull requests

4 participants