django-livereload-server icon indicating copy to clipboard operation
django-livereload-server copied to clipboard

Exception in callback - TypeError: expected string or bytes-like object

Open derekkinzo opened this issue 4 years ago • 3 comments

[E 210824 12:02:32 ioloop:907] Exception in callback <bound method LiveReloadHandler.poll_tasks of <class 'livereload.handlers.LiveReloadHandler'>>
    Traceback (most recent call last):
      File "...\lib\site-packages\tornado\ioloop.py", line 905, in _run
        return self.callback()
      File "...\lib\site-packages\livereload\handlers.py", line 66, in poll_tasks
        filepath, delay = cls.watcher.examine()
      File "...\lib\site-packages\livereload\watcher.py", line 71, in examine
        if self.is_changed(path, item['ignore']):
      File "...\lib\site-packages\livereload\watcher.py", line 91, in is_changed
        return self.is_glob_changed(path, ignore)
      File "...\lib\site-packages\livereload\watcher.py", line 135, in is_glob_changed
        for f in glob.glob(path):
      File "...\lib\glob.py", line 22, in glob
        return list(iglob(pathname, recursive=recursive))
      File "...\lib\glob.py", line 44, in _iglob
        if not has_magic(pathname):
      File "...\lib\glob.py", line 156, in has_magic
        match = magic_check.search(s)
    TypeError: expected string or bytes-like object

derekkinzo avatar Aug 24 '21 18:08 derekkinzo

did you create a templates and static directory in project root directory?

hndr91 avatar Sep 20 '21 05:09 hndr91

I have the same issue ! and my static directory is at the same level as manage.py

imak-h avatar Sep 28 '21 20:09 imak-h

I have resolve this error by adding a templates folder where manage.py was. thanks hndr91

imak-h avatar Sep 28 '21 21:09 imak-h