kwally Geschrieben March 29, 2014 at 06:33 Geschrieben March 29, 2014 at 06:33 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? Zitieren
photron Geschrieben March 31, 2014 at 08:53 Geschrieben March 31, 2014 at 08:53 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 Zitieren
kwally Geschrieben March 31, 2014 at 22:01 Autor Geschrieben March 31, 2014 at 22:01 Thank you photron. This was indeed the solution. I also received a reply from Raspibian who suggested: "easy_install --upgrade pytz" Zitieren
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.