This is because you have a newer version of psutil on your system than the one the master branch was written for.
I have two pull requests ready for merging develop (which has this fixed) into master. Will merge later today.
This is because you have a newer version of psutil on your system than the one the master branch was written for.
I have two pull requests ready for merging develop (which has this fixed) into master. Will merge later today.
Even using the updated develop branch it is not working.
I will merge into develop when I get back home for both the script and the web interface. The latest version of the script checks your psutil version and tells you how to update it via pip. If it did not for you, did you use develop for both the script and the web interface? I will update the installer to take care of the updating via pip later this week.
Elco,
I followed the update process as per your post on the Spark version thread which showed that I was already running the latest psutil etc. I updated both the develop first and then master branch and still no joy getting the script to run, either after a syatem reboot and --kill command. If I try to run it manually in the terminal I get the following:
pi@raspberrypi ~ $ python /home/brewpi/brewpi.py
Mar 12 2015 08:04:44 Error opening serial port: [Errno 2] No such file or directory: ‘/dev/ttyACM0’. Trying alternative serial port /dev/ttyACM1.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 332, in
ser, conn = util.setupSerial(config)
File “/home/brewpi/BrewPiUtil.py”, line 117, in setupSerial
ser = serial.Serial(port, 57600, timeout=0.1) # use non blocking serial.
File “/usr/local/lib/python2.7/dist-packages/serial/serialutil.py”, line 282, in init
self.open()
File “/usr/local/lib/python2.7/dist-packages/serial/serialposix.py”, line 289, in open
self.fd = os.open(self.portstr, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK)
OSError: [Errno 2] No such file or directory: ‘/dev/ttyACM1’
I am not sure what could be causing this as it was a completely fresh install of the Rasbian OS and Brewpi.
I got this error when I started the log on the BrewPi when I connected it to the Spark. I did a complete reboot on the Pi and it fixed the issue. I did use fix permissions before the reboot.
I got this error when I started the log on the BrewPi when I connected it to the Spark. I did a complete reboot on the Pi and it fixed the issue. I did use fix permissions before the reboot.
I tried a full reboot, will do one again with the fix permissions beforehand.
I updated the master branch yesterday.
Did you run updater.py recently? You can use the master branch in both repositories.
Yes I have run the latest updater, see below:
pi@raspberrypi ~ $ sudo python ~/brewpi-tools/updater.py
######################################################Welcome to the BrewPi Updater!
######################################################
Checking whether the update script is up to date
/home/pi/brewpi-tools is up-to-date.
Most users will want to select the ‘master’ choice at each of the following menus.
Press enter to continue…
*** Updating BrewPi script repository ***
You are currently on branch master
Available branches on the remote ‘origin’ for /home/brewpi:
[0] develop
[1] master
[2] Skip updating this repository
Enter the number of the branch you wish to update [master]:
Keeping current branch master
The latest commit in /home/brewpi is aa3735c3a6ecabe3b04abacd35789226b80fba34 on Thu, 12 Mar 2015 00:29:23
The latest commit on origin/master is aa3735c3a6ecabe3b04abacd35789226b80fba34 on Thu, 12 Mar 2015 00:29:23
Your local version of /home/brewpi is up to date!
*** Updating BrewPi web interface repository ***
You are currently on branch master
Available branches on the remote ‘origin’ for /var/www:
[0] develop
[1] master
[2] Skip updating this repository
Enter the number of the branch you wish to update [master]:
Keeping current branch master
The latest commit in /var/www is d44c03e786d0bde0dc43f86a8bd655659f3f3d2b on Wed, 11 Mar 2015 21:59:39
The latest commit on origin/master is d44c03e786d0bde0dc43f86a8bd655659f3f3d2b on Wed, 11 Mar 2015 21:59:39
Your local version of /var/www is up to date!
No changes were made, skipping runAfterUpdate.sh.
If you encounter problems, you can start it manually with:
sudo /home/brewpi/utils/runAfterUpdate.sh
The update script can automatically check your Arduino version and program it with the latest hex file from the BrewPi server, would you like to do this now? [Y/n]:n
Skipping Arduino update
*** Done updating BrewPi! ***
After this I ran the runafterupdate.sh
pi@raspberrypi ~ $ sudo /home/brewpi/utils/runAfterUpdate.sh
***** Installing/updating required packages… *****
Reading package lists… Done
Building dependency tree
Reading state information… Done
apache2 is already the newest version.
arduino-core is already the newest version.
git-core is already the newest version.
libapache2-mod-php5 is already the newest version.
php5 is already the newest version.
php5-cgi is already the newest version.
php5-cli is already the newest version.
php5-common is already the newest version.
python-configobj is already the newest version.
python-git is already the newest version.
python-psutil is already the newest version.
python-serial is already the newest version.
python-simplejson is already the newest version.
rpi-update is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
***** Done processing BrewPi dependencies *****
***** Updating cron for the brewpi user… *****
no crontab for brewpi
Checking entry for brewpi …
Done checking entry brewpi …
Checking entry for wifichecker …
Done checking entry wifichecker …
Restarting cron
[…] Restarting periodic command scheduler: cron[…] Stopping periodic comma[ ok heduler: cron.
[ ok ] Starting periodic command scheduler: cron.
***** Fixing file permissions for /var/www *****
***** Fixing file permissions for /home/brewpi *****
After a reboot etc still no joy and the same errors as above if I try to run the script through the terminal.
You are getting that error because it cannot find your controller on serial port ACM0 or ACM1.
Did you connect the BrewPi Spark via USB? (WiFi support will come soon, but for now you need to connect it via USB).
I just released a hotfix to print a better error message and work around the exception (caused by a bug in PySerial 2.7).
Thanks for the help, I now have it up and running. For reference the problem was the micro USB connection into the Spark. The cable supplied seemed to push up against the case meaning that whilst it was connected enough for the power pins it was not pushed in far enough for the data pins. I had to lever the socket up a bit as I connected the cable to get the correct connection and it then solved the issues with the script.
Just got to set up the sensors etc and I can get a test on the go with some water.
I also had issues with the script unable to find my core on ACM0 or ACM1, and the WebUI would also display unable to detect version of board. It turned out to be a crappy 12v power supply. Once I changed this over it all sprung into life. I will be wiring up the SSR’s and sensors in the next few hours and hopefully start a water test run.
I has similar issues today, which ended up with me running a fresh install from noobs running RPI updates etc and then ran brewpi automatic install, answering yes to all.
once the Arduino was plugged in it wouldn’t allow me to start script, and when i tried to reprogramme the arduino it pulled up these two errors.
BrewPi requires pyserial 2.7, you have version 2.5 installed.
Please upgrade pyserial via pip, by running:
sudo pip install pyserial --upgrade
If you do not have pip installed, install it with:
sudo apt-get install build-essential python-dev python-pip
Your version of pstuil is 0.5.0
BrewPi requires psutil 2.0 or higher, please upgrade your version of psutil.
This can best be done via pip, please run:
sudo apt-get install build-essential python-dev python-pip
sudo pip install psutil --upgrade
having installed these two options it now seems to work, but interestingly when i ran them before a clean install it flagged up some issues with Apache and a load of other files.
it works now so all is OK for me, but anyone else having issues updating those to files seemed to help me.
I will modify the installer to use pip for installing the packages, just built in these warnings first with instructions to fix.
I am also having trouble getting the script started on my second brewpi with spark. I have attached a picture of what the web interface shows. Thanks!
Looks like that’s not the only issue. Please check the javascript console (F12) for errors.
Is this an unmodified install of BrewPi?
Elco - I just used Firefox this time to open the web application and all is working. My previous install of an on older brew pi displays in Safari correctly. Is there a preferred browser?
Safari - Older Brew Pi Software
Firefox - New Brew Pi Software
I’m working to update two separate brewpi/ spark units after I had the scared on one get corrupted with an fs ext4 type error. Whenever I plugged in the USB from the spark controller to the rpi usb port it would reset the rpi.
Yesterday, on the one good image I ran the updater.py script answering yes to all questions. I have had intermittent success in getting the script to run, most often not getting the temp readings to appear at the top of the web UI. I have a couple times and was able to get the unit to recognize 3 one wire connections and assign them to Log1, 2, 3 respectively.
I am not using the brewpi units to control heating or cooling at this point, just monitoring and reporting so there are no ‘external’ issues.
I can’t seem to get the scripts to run correctly. Clicking on the maintenance panel works but clicking the start script does nothing.
On the ‘bad’ image I re-imaged the sd card from an old image, ran the updater script and based on some suggestions in the forums also ran apt-get --update and apt-get upgrade. That image now seems to be running fine. All three one-wire connections are responding with valid data and one or two reboots of the rpi has not impacted this.
Tonight, on the ‘good’ image noted above I ran the apt-get update & upgrade scripts.
On the good image I’ve checked that the pyserial is 2.7. The firmware is updated to 5.2
ON the ‘bad’ image redone, I have checked that pyserial is 2.7 and the firmware on the controller is also 5.2
I am logging into the web UI using Safari.
Based on the steps I’ve followed although not in the same sequence, both units should be the same. One setup works fine (the ‘good’ unit) but the other does not (corrupted sd card re-imaged and upgraded).
Suggestions on what to check?
Using the older version on both units I had no issues and a screen that mirrored the first image posted by s65m3. The ‘bad’ setup after all software changes looks like the 2nd image. The ‘good’ setup after all changes shows a graph based on data that was initially recorded but I can’t get to record new data and the readings are not appearing in the ‘header’ section.
Going to the maintenance panel and clicking the refresh device list returns the message ‘SyntaxError: JSON Parse error: Unexpected identifier “Couldn”’
Thet last error is just “Couldn’t connect to script” which cannot be parsed as JSON.
It would be helpful to know if there are errors in the JavaScript console (F12).
I also recommend using Docker to install now, as described on our Wiki. This will also make it easier to deploy a new image or to run multiple brewpi servers from one pi.
Also check the log files for an error.
s65m3 - I also got the same screen after moving to Docker. Tried different browsers (chrome, explorer, mobile chrome) as well but not firefox. This resulted in a lot of troubles for me and a complete reinstallation whith the result of brewpi currently not working.