[Support]: ValueError: month must be in 1..12 #11496
-
Describe the problem you are havingI keep getting this error (please see log output) in my log. I'm pretty sure it's down to the order of date / month that we use in my country (Denmark), but haven't been able to make it go away. Thought the devs might want to see this Version0.13.2-6476F8A Frigate config filemqtt:
enabled: true
host: 192.168.x.xx
port: 1883
topic_prefix: frigate
client_id: frigate
user: frigate_xx
password: xxx
stats_interval: 60
ui:
# Optional: Set the default live mode for cameras in the UI (default: shown below)
live_mode: webrtc
# Optional: Set a timezone to use in the UI (default: use browser local time)
timezone: Europe/Copenhagen
# Optional: Use an experimental recordings / camera view UI (default: shown below)
use_experimental: False
# Optional: Set the time format used.
# Options are browser, 12hour, or 24hour (default: shown below)
time_format: 24hour
# Optional: Set the date style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 2/11/23
# medium: Feb 11, 2023
# full: Saturday, February 11, 2023
# (default: shown below).
date_style: short
# Optional: Set the time style for a specified length.
# Options are: full, long, medium, short
# Examples:
# short: 8:14 PM
# medium: 8:15:22 PM
# full: 8:15:22 PM Mountain Standard Time
# (default: shown below).
time_style: medium
#logger:
# Optional: Default log verbosity (default: shown below)
#default: debug
detectors:
ov:
type: openvino
device: AUTO
model:
path: /openvino-model/ssdlite_mobilenet_v2.xml
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
go2rtc:
streams:
ptzzz: "ffmpeg:rtsp://xxxx:[email protected]:554/videoMain#audio=copy#audio=aac#video=h264#hardware#raw=-r 22 -ar 8000"
webrtc:
listen: ":8555"
candidates:
- 192.168.x.xx:8555
- 172.24.x.xx:8555
- 172.19.x.xx:8555
- stun:8555
record:
enabled: True
#expire_interval: 3
#sync_recordings: True
retain:
days: 5
#days: 0
mode: motion
#export:
# timelapse_args: "-vf setpts=PTS/120 -r 25"
events:
post_capture: 8
retain:
default: 10
#default: 0
mode: active_objects
cameras:
ptzzz:
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://127.0.0.1:8554/ptzzz # <--- the name here must match the name of the camera in restream
input_args: preset-rtsp-restream
roles:
- record
- detect
onvif:
host: 192.168.x.xx
port: 888
user: xxxx
password: xxxx
detect:
width: 1280
height: 720
fps: 5
#annotation_offset: 82
motion:
threshold: 38
mask:
- 234,0,0,0,0,26,234,26
lightning_threshold: 0.8
frame_alpha: 0.06
objects:
track:
- person
filters:
person:
min_area: 4000
max_area: 300000
#threshold:0.6 Relevant log output2024-05-23 20:56:52.700598059 [2024-05-23 20:56:52] zeep.xsd.types.simple ERROR : Error during xml -> python translation
2024-05-23 20:56:52.700601814 Traceback (most recent call last):
2024-05-23 20:56:52.700603578 File "/usr/local/lib/python3.9/dist-packages/zeep/xsd/types/simple.py", line 79, in parse_xmlelement
2024-05-23 20:56:52.700607716 return self.pythonvalue(xmlelement.text)
2024-05-23 20:56:52.700609377 File "/usr/local/lib/python3.9/dist-packages/zeep/xsd/types/builtins.py", line 44, in _wrapper
2024-05-23 20:56:52.700632673 return func(self, re.sub(r"[\n\r\t ]", " ", value).strip())
2024-05-23 20:56:52.700635141 File "/usr/local/lib/python3.9/dist-packages/zeep/xsd/types/builtins.py", line 180, in pythonvalue
2024-05-23 20:56:52.700636429 return isodate.parse_datetime(value)
2024-05-23 20:56:52.700637852 File "/usr/local/lib/python3.9/dist-packages/isodate/isodatetime.py", line 55, in parse_datetime
2024-05-23 20:56:52.700661618 tmpdate = parse_date(datestring)
2024-05-23 20:56:52.700663459 File "/usr/local/lib/python3.9/dist-packages/isodate/isodates.py", line 201, in parse_date
2024-05-23 20:56:52.700665239 return date(sign * int(groups['year']),
2024-05-23 20:56:52.700666366 ValueError: month must be in 1..12 FFprobe output from your camera[{"return_code":0,"stderr":"","stdout":{"programs":[],"streams":[{"avg_frame_rate":"22/1","codec_long_name":"H.264/AVC/MPEG-4AVC/MPEG-4part10","height":720,"width":1280},{"avg_frame_rate":"0/0","codec_long_name":"AAC(AdvancedAudioCoding)"}]}}] Frigate statsNo response Operating systemHassOS Install methodDocker Compose Coral versionCPU (no coral) Network connectionWired Camera make and modelFoscam FI9816p v2 Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
unfortunately the log doesn't show anything pointing to this happening in frigate's code, not sure there is anything that can be done |
Beta Was this translation helpful? Give feedback.
-
This is caused by a bug in the A possible workaround might be to change the way the time/date is displayed or set in your camera's firmware to a MM-DD format, but that's a total guess and may not actually have any effect. In any case, I think this is an error that you should be able to safely ignore as Frigate doesn't utilize anything with dates through your camera's ONVIF capabilities. |
Beta Was this translation helpful? Give feedback.
This is caused by a bug in the
zeep
package (mvantellingen/python-zeep#1240), a bit of code used to communicate to your ONVIF cameras. It's actually fixed by a later version of thezeep
package, but because of other necessary dependencies in Frigate, we can't upgrade to that version.A possible workaround might be to change the way the time/date is displayed or set in your camera's firmware to a MM-DD format, but that's a total guess and may not actually have any effect.
In any case, I think this is an error that you should be able to safely ignore as Frigate doesn't utilize anything with dates through your camera's ONVIF capabilities.