Hi guys
i'm new to python as well as django. Seeking help for this problem when im running the command "python manage.py runserver" in Terminal for tutorial in https://docs.djangoproject.com/en/1.6/intro/tutorial01/
The development server¶
Let’s verify this worked. Change into the outer mysite directory, if you haven’t already, and run the command python manage.py runserver. You’ll see the following output on the command line:
i got this error message in Terminal
Traceback (most recent call last):File "manage.py", line 8, in <module>from django.core.management import execute_from_command_lineFile "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 7, in <module>from django.core.exceptions import ImproperlyConfiguredFile "/Library/Python/2.7/site-packages/django/core/exceptions.py", line 7, in <module>from django.utils.encoding import force_textFile "/Library/Python/2.7/site-packages/django/utils/encoding.py", line 11, in <module>from django.utils.six.moves.urllib.parse import quoteFile "/Library/Python/2.7/site-packages/django/utils/six.py", line 86, in __get__result = self._resolve()File "/Library/Python/2.7/site-packages/django/utils/six.py", line 129, in _resolvemodule = _import_module(self.mod)File "/Library/Python/2.7/site-packages/django/utils/six.py", line 76, in _import_module__import__(name)File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 26, in <module>import socketFile "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 47, in <module>import _socketImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so, 2): Symbol not found: __PyInt_AsIntReferenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.soExpected in: flat namespacein /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
Manage to bypass error to continue the tutorial by typing
sudo python manage.py runserver
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so, 2): Symbol not found: __PyInt_AsIntReferenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so