Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
derekkinzo opened this issue Aug 24, 2021 · 3 comments

Comments

@derekkinzo
Copy link

[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
@hndr91
Copy link

hndr91 commented Sep 20, 2021

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

@imak-h
Copy link

imak-h commented Sep 28, 2021

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

@imak-h
Copy link

imak-h commented Sep 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants