django and python manage.py runserver execution error -
when execute python manage.py runserver command django_test projects following error:
system check identified no issues (0 silenced). june 14, 2015 - 20:43:03 django version 1.8.2, using settings 'django_test.settings' starting development server @ http://127.0.0.1:8000/ quit server control-c. traceback (most recent call last): file "manage.py", line 10, in <module> execute_from_command_line(sys.argv) file "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 338, in execute_from_command_line utility.execute() file "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 330, in execute self.fetch_command(subcommand).run_from_argv(self.argv) file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 390, in run_from_argv self.execute(*args, **cmd_options) file "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 49, in execute super(command, self).execute(*args, **options) file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 441, in execute output = self.handle(*args, **options) file "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 88, in handle self.run(**options) file "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 97, in run autoreload.main(self.inner_run, none, options) file "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 323, in main reloader(wrapped_main_func, args, kwargs) file "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 289, in python_reloader reloader_thread() file "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 265, in reloader_thread change = fn() file "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 190, in inotify_code_changed update_watch() file "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 184, in update_watch wm.add_watch(path, mask) file "/usr/lib/python2.7/dist-packages/pyinotify.py", line 1903, in add_watch exclude_filter) file "/usr/lib/python2.7/dist-packages/pyinotify.py", line 1822, in __add_watch wd = self._inotify_wrapper.inotify_add_watch(self._fd, path, mask) file "/usr/lib/python2.7/dist-packages/pyinotify.py", line 150, in inotify_add_watch return self._inotify_add_watch(fd, pathname, mask) file "/usr/lib/python2.7/dist-packages/pyinotify.py", line 245, in _inotify_add_watch return self._libc.inotify_add_watch(fd, pathname, mask) ctypes.argumenterror: argument 2: <type 'exceptions.typeerror'>: expected cstring instance instead of c_char_array_64
i have never had problem before , code worked fine until moved project 1 laptop other , can not execute here.
originaly, worked fine system crashed , first time when trying run code on new machine. use virtualenv expect work smoothly not ...
is problem python ?
it looks you're running against system version of python on new laptop, rather virtualenv, different version. can check looking @ version of python on virtualenv in old laptop , new laptop python --version
- i've seen error happen in case people before.
your best bet create new virtualenv on new laptop, , reinstall packages (hopefully, have requirements.txt handy). if need same version of python on new laptop, you'll have explore getting version installed on new laptop (do not overwrite system version!), , pointing virtualenv install. luck.
Comments
Post a Comment