Guest User

Untitled

a guest
Nov 19th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. (venv)dyn-160-39-161-214:proj Bren$ python manage.py
  2. Traceback (most recent call last):
  3. File "manage.py", line 10, in <module>
  4. execute_from_command_line(sys.argv)
  5. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
  6. utility.execute()
  7. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
  8. django.setup()
  9. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
  10. apps.populate(settings.INSTALLED_APPS)
  11. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
  12. app_config.import_models(all_models)
  13. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
  14. self.models_module = import_module(models_module_name)
  15. File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
  16. __import__(name)
  17. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/contrib/auth/models.py", line 41, in <module>
  18. class Permission(models.Model):
  19. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/db/models/base.py", line 139, in __new__
  20. new_class.add_to_class('_meta', Options(meta, **kwargs))
  21. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/db/models/base.py", line 324, in add_to_class
  22. value.contribute_to_class(cls, name)
  23. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/db/models/options.py", line 250, in contribute_to_class
  24. self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
  25. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/db/__init__.py", line 36, in __getattr__
  26. return getattr(connections[DEFAULT_DB_ALIAS], item)
  27. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/db/utils.py", line 241, in __getitem__
  28. backend = load_backend(db['ENGINE'])
  29. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/db/utils.py", line 112, in load_backend
  30. return import_module('%s.base' % backend_name)
  31. File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
  32. __import__(name)
  33. File "/Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 27, in <module>
  34. raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
  35. django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
  36.  
  37. Collecting MySQLdb
  38. Could not find a version that satisfies the requirement MySQLdb (from versions: )
  39. No matching distribution found for MySQLdb
  40.  
  41. DATABASES = {
  42. 'default': {
  43. 'ENGINE': 'django.db.backends.mysql',
  44.  
  45. }
  46. }
  47.  
  48. Collecting MySQL-python Using cached MySQL-python-1.2.5.zip
  49. Complete output from command python setup.py egg_info:
  50. sh: mysql_config: command not found
  51. Traceback (most recent call last):
  52. File "<string>", line 20, in <module>
  53. File "/private/var/folders/m3/11zknyw55zxbw6zqh58rwq580000gn/T/pip-build-DC9tSL/MySQL-python/setup.py", line 17, in <module>
  54. metadata, options = get_config()
  55. File "setup_posix.py", line 43, in get_config
  56. libs = mysql_config("libs_r")
  57. File "setup_posix.py", line 25, in mysql_config
  58. raise EnvironmentError("%s not found" % (mysql_config.path,))
  59. EnvironmentError: mysql_config not found
  60.  
  61. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/m3/11zknyw55zxbw6zqh58rwq580000gn/T/pip-build-DC9tSL/MySQL-python
  62.  
  63. [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
  64. Type "help", "copyright", "credits" or "license" for more information.
  65. >>> import MySQLdb
  66. Traceback (most recent call last):
  67. File "<stdin>", line 1, in <module>
  68. ImportError: No module named MySQLdb
  69.  
  70. pip install pip --upgrade
  71.  
  72. Requirement already up-to-date: pip in /Users/Bren/Desktop/fss/venv/lib/python2.7/site-packages
Add Comment
Please, Sign In to add comment