Irondiver
New Member
Posts: 2
Raspberry Pi: Yes
Other Device: PC...
|
Post by Irondiver on Jun 3, 2013 14:34:10 GMT -8
I have it installed and configured the RasPiConnectServer by using the 'Getting startet Dokumentation'. When the Raspberry starts the RasPiConnectServer on boot there ist an error in the Logfile.
The Logfile says:
Mon Jun 3 23:51:00 CEST 2013 numid=3,iface=MIXER,Name='PCM Playback Route' ; type=INTEGER,access=rw------,value=1,min=0,max=2,step=0 : values=1 Traceback (most recent call last): File "RasPiConnectServer.py", line 22, in <module> import web ImportError: No module named web
Why is there an import error? Is the Web module a part of pyton or RasPiConnectServer? And how can i fix it?
|
|
|
Post by SDL on Jun 4, 2013 7:32:29 GMT -8
Hi IronDiver, Sorry you had problems. web.py is a module that is preloaded on most python packages. Make sure that your Raspberry Pi is up to date. Get the latest packages and kernel for your Raspberry Pi (Assuming you are using the Raspian distribution) Updating Packages sudo apt-get -y update && sudo apt-get -y upgrade If you still don't have web.py installed, do this: sudo easy_install web.py If you aren't running Raspian, then take a look at additional installation options at webpy.orgLet us know if we can help! We will add the web.py installation to the getting started directions. Best regards, BP
|
|
Irondiver
New Member
Posts: 2
Raspberry Pi: Yes
Other Device: PC...
|
Post by Irondiver on Jun 4, 2013 12:46:03 GMT -8
Okay so i fixed one problem but there are more...
Here my Log:
Mon Jun 3 23:51:00 CEST 2013 numid=3,iface=MIXER,name='PCM Playback Route' ; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0 : values=1 Traceback (most recent call last): File "RasPiConnectServer.py", line 22, in <module> import web ImportError: No module named web Tue Jun 4 00:39:37 CEST 2013 numid=3,iface=MIXER,name='PCM Playback Route' ; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0 : values=1 Traceback (most recent call last): File "RasPiConnectServer.py", line 22, in <module> import web ImportError: No module named web - - - - - - - - - - - - - - - - - - - - - - - - - - -
I FIXED THE WEB PROBLEM WITH: easy_install web.py
------------------------------------------------------
Tue Jun 4 22:06:38 CEST 2013 numid=3,iface=MIXER,name='PCM Playback Route' ; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0 : values=1 Traceback (most recent call last): File "RasPiConnectServer.py", line 27, in <module> import ExecuteServerStatus File "./ExecuteFiles/ExecuteServerStatus.py", line 14, in <module> from pyblinkm import BlinkM, Scripts ImportError: No module named pyblinkm
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I FIXED THE PYBLINKM PROBLEM WITH: easy_install pyblinkm
------------------------------------------------------------
Tue Jun 4 22:25:41 CEST 2013 numid=3,iface=MIXER,name='PCM Playback Route' ; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0 : values=1 Traceback (most recent call last): File "RasPiConnectServer.py", line 27, in <module> import ExecuteServerStatus File "./ExecuteFiles/ExecuteServerStatus.py", line 14, in <module> from pyblinkm import BlinkM, Scripts File "/usr/local/lib/python2.7/dist-packages/pyblinkm-0.1.0-py2.7.egg/pyblinkm.py", line 2, in <module> import smbus ImportError: No module named smbus
- - - - - - - - - - - - - - - - - - - - - - - -
THE SMBUS PROBLEM IS OPEN TO FIX...
I try easy_install smbus and easy_install smbus.py but it is not the fix for this problem...
I use the original Raspian OS from 2013 and the apt-get update/upgrade fix no pyton problems...
* * * * * Okay i fix the smbus Problem now...
i used:
apt-get install python-smbus
So another problem fixed, lets go to the next.... ----------------------------------------------------------------------------------------------------------------------------------------
Tue Jun 4 23:02:41 CEST 2013 numid=3,iface=MIXER,name='PCM Playback Route' ; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0 : values=1 Traceback (most recent call last): File "RasPiConnectServer.py", line 29, in <module> import ExecuteRemoteWebView File "./ExecuteFiles/ExecuteRemoteWebView.py", line 10, in <module> from Adafruit_BMP085 import * File "./Adafruit/Adafruit_BMP085.py", line 4, in <module> from Adafruit_I2C import Adafruit_I2C File "./Adafruit/Adafruit_I2C.py", line 9, in <module> class Adafruit_I2C : File "./Adafruit/Adafruit_I2C.py", line 11, in Adafruit_I2C def __init__(self, address, bus=smbus.SMBus(1), debug=False): IOError: [Errno 2] No such file or directory
- - - - - - - - - - - - - - - - - - - - - - - -
Now i'm looking for a fix for this problem...
So now i have a fix for the problem with Adafruit.
Its not the best fix but my RasPiConnectServer works...
I have not connect an I2C Module to my Raspberry Pi and i think the RasPiConnectServer wants to communicate with one.
So i take a loot into the ExecuteRemoteWebView.py File and there i comment out line 10. You can find it in /RasPiConnectServer/ExecuteFiles
I edit the ExecuteRemoteWebView.py file with nano on line 10 as root user (sudo su).
Line 10 before: from Adafruit_BMP085 import *
Line 10 after edit: #from Adafruit_BMP085 import *
then save the file and restart the RasPiConnectServer or reboot your raspberry Pi
The RasPiConnectServer will now not communicate with I2C but the Server runs and i can test the RasPiConnect App on my iPad.
If some one have a better fix, please post it here...
thx for help...
|
|
|
Post by SDL on Jun 4, 2013 15:40:19 GMT -8
Iron diver, There is a value in the config file (see documentation) that turns the i2c bus code in RasPiConnect off. If you want the i2c bus you have some configuration to do. It looks like you haven't set up your i2c bus drivers in the Pi. Even without devices on the i2c bus the server will work. Take a look at this thread: raspiconnect.boards.net/thread/4/i2c-talk-serverBP
|
|
|
Post by SDL on Jul 29, 2013 11:29:26 GMT -8
Folks,
We think we have fixed the documentation for the installation (specifically easy_install problems) now on the Wiki. No question about it, some installations would fail.
The easiest way to install easy_install is to execute this command:
sudo apt-get install python-setuptools
Best regards,
BP
|
|