kwally Posted March 29, 2014 at 06:33 AM Share Posted March 29, 2014 at 06:33 AM Recently published instructions in a PC mag. pointed to http://tinyurl.com/mxw8omx. This download was to employ a completed script, to run the TF weatherstation i.e download and dump data to Drop Box. Sounded very useful indeed. Problem is the script will not run successfully in Gene the recommended compiler for this exercise. Situation is: RPi "B" Raspibien, Gene running, file (downloaded unzipped as described above) First few lines of script read: #!/usr/bin/env python import pygame, csv,os from pygame.locals import * from datetime import datetime import pytz import upload from Today import * Result: Traceback (blah blah blah) Import error: No module named pytz. program exited blah blah. As one would have reasonable confidence that this script was tested before publication, one is somewhat startled by this result??? Any ideas? Quote Link to comment Share on other sites More sharing options...
photron Posted March 31, 2014 at 08:53 AM Share Posted March 31, 2014 at 08:53 AM Ah, this script is from a PC magazine. This information was missing in your German post. As stated in the other thread, you're just missing the pytz module. On Debian/Ubuntu you can install it like this: sudo apt-get install python-tz Quote Link to comment Share on other sites More sharing options...
kwally Posted March 31, 2014 at 10:01 PM Author Share Posted March 31, 2014 at 10:01 PM Thank you photron. This was indeed the solution. I also received a reply from Raspibian who suggested: "easy_install --upgrade pytz" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.