NameError:名称'ni7MessageESt5dequeIS2_SaIS2_EEE5frontEvrames6resizeEjj'未定义

时间:2018-01-20 12:29:18

标签: python raspberry-pi

我正在使用我的覆盆子pi零w从我的Android设备制作照片。它已经工作了几个月了,今天当我试图拍照时我收到以下错误信息:

Traceback (most recent call last):
  File "main.py", line 282, in make_raw
    take_pix(raw_file_name)
  File "main.py", line 262, in take_pi_pix
    import picamera
  File "/usr/lib/python2.7/dist-packages/picamera/__init__.py", line 88, in <module>
    from picamera.mmalobj import PiResolution, PiFramerateRange
  File "/usr/lib/python2.7/dist-packages/picamera/mmalobj.py", line 50, in <module>
    from fractions import Fraction
  File "/usr/lib/python2.7/fractions.py", line 7, in <module>
    from decimal import Decimal
  File "/usr/lib/python2.7/decimal.py", line 140, in <module>
    import numbers as _numbers
  File "/usr/lib/python2.7/numbers.py", line 1, in <module>
    Vector_implC2Ev
NameError: name 'ni7MessageESt5dequeIS2_SaIS2_EEE5frontEvrames6resizeEjj' is not defined

导入picamera的功能:

def take_pix(file_name):
        import picamera
        print("About to take a picture")
        with picamera.PiCamera() as camera:
                # camera.resolution = (640,360)
                camera.resolution = (1280, 720)
                # camera.resolution = (2592, 1944)
                #camera.rotation = 180
                camera.capture(file_name)
        print("Picture taken")

我正在搜索此消息的类似错误,但我发现没有类似的东西。有没有人有想法?

由于

0 个答案:

没有答案