Python TIFF文件错误

Python TIFF文件错误,python,pygame,tiff,Python,Pygame,Tiff,TIFFReadDirectory:警告,遇到标签为37724(0x935c)的未知字段 TIFFFetchNormalTag:警告,“RichTIFFIPTC”的类型不兼容;已忽略标记 当我运行我的程序时,即使我不使用任何TIFF文件,我也会遇到这个错误,我不知道标记代码的意思(我已经用谷歌搜索过了) 我不是要求某人只是“修复它”,我想知道它为什么会发生,以及如何预防它 这是我的程序,我认为这是一个模块(可能是pygame)中涉及的东西,因为我没有加载TIFF文件 import random

TIFFReadDirectory:警告,遇到标签为37724(0x935c)的未知字段
TIFFFetchNormalTag:警告,“RichTIFFIPTC”的类型不兼容;已忽略标记

当我运行我的程序时,即使我不使用任何TIFF文件,我也会遇到这个错误,我不知道标记代码的意思(我已经用谷歌搜索过了)

我不是要求某人只是“修复它”,我想知道它为什么会发生,以及如何预防它

这是我的程序,我认为这是一个模块(可能是pygame)中涉及的东西,因为我没有加载TIFF文件

import random
import sys
import time
from pygame import *
import pygame
pygame.init()

 #------Easy-Change Variables
mouse_visibility = False
turtlespeed = 4

 #------Font
font = pygame.font.SysFont("C:/Python34/TurtleFont.ttf", 48)

 #------Theme Music & Sound Effects
pygame.mixer.music.load('C:/Python34/Jumpshot.mp3')
pygame.mixer.music.play(1, 0.0)

chomp = pygame.mixer.Sound("C:/Python34/chomp.wav")
 #------BG, Screen & Caption
pygame.display.set_caption('Turtle Trouble!')
screen = pygame.display.set_mode((1024, 616))
bg_img = pygame.image.load("C:/Python34/icebackground.png")
screen.blit(bg_img,(0,0))
pygame.display.flip()

 #------Image Preparation
turtle = pygame.image.load("C:/Python34/turtle.png")
fish = pygame.image.load("C:/Python34/fish.png")
endgame_turtle = pygame.image.load("C:/Python34/endgame_turtle.png")

 #------Movement, Coords, Collisions & Fish
turtlepos = pygame.mouse.get_pos()
pygame.mouse.set_visible(mouse_visibility)

turtle_rect = turtle.get_rect()
fish_rect = fish.get_rect()


points = 0
fish_pos_list = []

while pygame.mouse.get_pressed()[1] == False:
    time.wait(1)

while elapsed_time <= 45== True:
    elapsed_time = time.time() - game_time
    mousepos = pygame.mouse.get_pos()

    text = font.render("Points: %s" % points, True, (0, 128, 0))
    screen.blit(text, (0, 0))

    new_fish = random.randint(0, 6)
    fish_x = random.randint(0, 943)
    fish_y = random.randint(0, 552)

    if mousepos[1] - turtlepos[1] < 0:
        turtlepos[1] -= turtlespeed
    else:
        turtlepos[1] += turtlespeed

    if mousepos[2] - turtlepos[2] < 0:
        turtlepos[2] -= turtlespeed
    else:
        turtlepos[2] += turtlespeed

    screen.blit(turtle_rect,(turtlepos[1],turtlepos[2]))
    pygame.display.flip()

    if new_fish == 0:
        screen.blit(fish_rect,(fish_x, fish_y))
        start_time = time.time()
        positions = {'x':fish_x, 'y':fish_y, 'fishtimer':start_time}
        fish_pos_list.append(positions)

    for position in fish_pos_list:
        if position['fishtimer'] >= 6:
            screen.blit(bg_img, (position['x'], position['y']), pygame.Rect(position['x'], position['y'], 81, 62))
            del fish_pos_list[0]
        else:
            break

    for position in fish_pos_list:
        if turtle_rect.colliderect(fish_rect):
            screen.blit(bg_img, (position['x'], position['y']), pygame.Rect(position['x'], position['y'], 81, 62))
            chomp.play()
            fish_pos_list.remove(position)
            points += 1

    pygame.display.update()
    mainClock.tick(40)

screen.blit(endgame_turtle,(150, 0))
pygame.display.flip()
time.sleep(2.5)
sys.exit()
随机导入
导入系统
导入时间
从pygame导入*
导入pygame
pygame.init()
#------易变变量
鼠标可见性=False
turtlespeed=4
#------字体
font=pygame.font.SysFont(“C:/Python34/TurtleFont.ttf”,48)
#------主题音乐与音效
pygame.mixer.music.load('C:/Python34/Jumpshot.mp3')
pygame.mixer.music.play(1,0.0)
chomp=pygame.mixer.Sound(“C:/Python34/chomp.wav”)
#------背景、屏幕和标题
pygame.display.set_标题('海龟麻烦!')
screen=pygame.display.set_模式((1024616))
bg_img=pygame.image.load(“C:/Python34/icebackground.png”)
屏幕亮度(bg_img,(0,0))
pygame.display.flip()
#------图像准备
turtle=pygame.image.load(“C:/Python34/turtle.png”)
fish=pygame.image.load(“C:/Python34/fish.png”)
endgame\u turtle=pygame.image.load(“C:/Python34/endgame\u turtle.png”)
#------运动、协调、碰撞和钓鱼
turtlepos=pygame.mouse.get_pos()
pygame.mouse.set_visible(鼠标可见性)
turtle\u rect=turtle.get\u rect()
fish\u rect=fish.get\u rect()
分数=0
鱼位置列表=[]
当pygame.mouse.get_pressed()时[1]==False:
时间,等等(1)
当经过时间=6时:
screen.blit(bg_img,(位置['x'],位置['y']),pygame.Rect(位置['x'],位置['y'],81,62))
del fish_pos_列表[0]
其他:
打破
对于鱼位置列表中的位置:
如果海龟正确碰撞(鱼正确):
screen.blit(bg_img,(位置['x'],位置['y']),pygame.Rect(位置['x'],位置['y'],81,62))
吃,玩
鱼尾位置列表。移除(位置)
点数+=1
pygame.display.update()
主时钟滴答(40)
画面。布利特(终局乌龟,(150,0))
pygame.display.flip()
时间。睡眠(2.5)
sys.exit()

pygame我以前从来没有这样做过。为什么突然有必要这么做?我是否在程序中执行了某些操作或意外删除了一个文件@Stuartdha你给你的程序添加了新代码吗?自从我发布后就没有了。你为什么这么问?(如果这是一个有点愚蠢的问题,请道歉)@stuartdFWIW:(这是一个Adobe扩展)。