Closed greg121 closed 10 years ago
Delete the plugin folders for the plugins you don't want to use. Move to the folder containing default.py and run that file python default.py
pi@raspberrypi ~/RPI-Info-Screen $ sudo python default.py Traceback (most recent call last): File "default.py", line 109, in getScreens loadedscreen = plugin.myScreen(size, userevents=piscreenevents) File "/home/pi/RPI-Info-Screen/displayscreen.py", line 349, in init self.readConfig() File "/home/pi/RPI-Info-Screen/displayscreen.py", line 64, in readConfig self.setPluginVariables() File "./plugins/clock/screen.py", line 13, in setPluginVariables self.myfont = pygame.font.Font(self.clockfont, 240) NameError: global name 'pygame' is not defined
Traceback (most recent call last):
File "default.py", line 301, in
Well that's weird! I assume the clock is the only plugin you're running? Try adding an import pygame
line in screen.py
in the clock folder and see if that works.
Thank you! And yes clock is the only plugin in the folder.
It is working now with adding the line.
Hi elParaguayo,
I wanted to run the clock plugin but got this error: "ImportError: No module name displayscreen" at line 3 in screen.py.
greg121