![AttributeError: '모듈' 개체에 'INotifyWrapper' 속성이 없습니다.](https://linux55.com/image/105099/AttributeError%3A%20'%EB%AA%A8%EB%93%88'%20%EA%B0%9C%EC%B2%B4%EC%97%90%20'INotifyWrapper'%20%EC%86%8D%EC%84%B1%EC%9D%B4%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
Python(2.7.9)과 Django 패키지(1.10.5)를 설치했습니다. 하지만 Django 명령을 실행하면 다음 오류가 발생합니다.
Command: python -m django --version
Error:
Traceback (most recent call last): File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals File "/usr/local/lib/python2.7/site-packages/django/__main__.py", line 6, in <module>
from django.core import management File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 17, in <module>
from django.utils import autoreload, lru_cache, six File "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 61, in <module>
fd = pyinotify.INotifyWrapper.create().inotify_init() AttributeError: 'module' object has no attribute 'INotifyWrapper'
Command: /usr/local/bin/django-admin
Error:
Traceback (most recent call last): File "/usr/local/bin/django-admin", line 7, in <module>
from django.core.management import execute_from_command_line File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 17, in <module>
from django.utils import autoreload, lru_cache, six File "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 61, in <module>
fd = pyinotify.INotifyWrapper.create().inotify_init() AttributeError: 'module' object has no attribute 'INotifyWrapper'