Problem to start HA from today... yesterday worked well

Hello to everyone,

I use HA in a raspberry pi 2 b+, till today, all worked well. Just now when i want start HA by instruction hass on raspbian jessie like:

pi@raspberrypi:/ $ hass

Appears these errors, than not execute HA:

Traceback (most recent call last):
  File "/usr/local/bin/hass", line 7, in <module>
    from homeassistant.__main__ import main
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 19, in <module>
    from homeassistant.util.async import run_callback_threadsafe
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/util/__init__.py", line 17, in <module>
    from .dt import as_local, utcnow
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/util/dt.py", line 8, in <module>
    import pytz
  File "/usr/local/lib/python3.4/dist-packages/pytz/__init__.py", line 33, in <module>
    from pytz.tzinfo import unpickler
TypeError: source code string cannot contain null bytes

please can someone help me?

There was a breaking change with time strings; are you using them anywhere like an automation or template?

The template methods now and utcnow have been changed from variables to methods. To get the current time replace now with now().

This happened in 0.29.x:

Could this be related since the error mentions time and pytz which is a list of timezones?

Hi rpitera,

First thanks for reply.

In my configuration sensors i had something like this:

- platform: time_date
_ display_options:_
_ - ‘time_date’_

but already i comment it in configuration file, but continue the same error. I tried other options, but always the same… this one is my configuration.yaml now:

homeassistant:
_ name: Flat_
_ latitude: XXXX_
_ longitude: XXXX_
_ elevation: XX_
_ unit_system: metric_
_ time_zone: XXXX_

“comment” Enables the frontend
frontend:

“comment” Enables support for tracking state changes over time.
history:

“comment” View all events in a logbook
logbook:

“comment” Allows you to issue voice commands from the frontend
"comment"conversation:

“comment” Checks for available updates
updater:

“comment” Discover some devices automatically
discovery:

“comment” Show links to resources in log and frontend
"comment"introduction:

"comment"Track the sun
sun:

recorder:
_ purge_days: 3_

http:
_ api_password: XXX_

mqtt:
_ broker: 192.168.1.25_
_ port: 1883_
_ keepalive: 60_

"comment"sensor: !include sensors.yaml

"comment"light: !include lights.yaml

"comment"cover: !include persianas.yaml

"comment"camera: !include camara.yaml

"comment"alarm_control_panel: !include alarma.yaml

"comment"zone: !include zones.yaml

"comment"device_tracker: !include device_tracker.yaml

"comment"automation: !include automation.yaml

"comment"notify: !include notify.yaml

"comment"group: !include grupos.yaml

"comment"media_player: !include media_player.yaml

but always i have the same error.