-
-
Save zt9/e31546189244445a0dc7 to your computer and use it in GitHub Desktop.
the real reason behind the error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pr2)[myapp] python worker.py 11:41:12 ☁ waze ☂ ⚡ ✭ | |
--------------------------------------------------------------------------- | |
ImportError Traceback (most recent call last) | |
/Users/zt9/code/pr2/myapp/worker.py in <module>() | |
20 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myapp.settings") | |
21 #ipdb.set_trace() | |
---> 22 import quicken | |
23 if __name__ == '__main__': | |
24 with Connection(conn): | |
/Users/zt9/code/pr2/myapp/quicken/__init__.py in <module>() | |
1 import jinja2 | |
----> 2 from models import PhoneRecord | |
3 from quicken.appointment import ConfirmAppointments | |
4 from quicken.models import CommunicationRecord | |
5 #from sprint.models import SmsRecord | |
/Users/zt9/code/pr2/myapp/quicken/models.py in <module>() | |
1 from django.utils.dateformat import DateFormat | |
2 import ipdb | |
----> 3 from sprint.models import SmsRecord | |
4 from att.models import PhoneRecord | |
5 from pytz import timezone | |
/Users/zt9/code/pr2/myapp/sprint/models.py in <module>() | |
4 | |
5 | |
----> 6 class SmsRecord(models.Model): | |
7 OUTGOING = 'OUTGOING' | |
8 INCOMING = 'INCOMING' | |
/Users/zt9/code/pr2/myapp/sprint/models.py in SmsRecord() | |
12 (INCOMING,'INCOMING'), | |
13 ) | |
---> 14 fromnumber = models.CharField(max_length=200,blank=True, null=True) | |
15 tonumber = models.CharField(max_length=200,blank=True, null=True) | |
16 body = models.CharField(max_length=200,blank=True, null=True) | |
/Users/zt9/.virtualenvs/pr2/lib/python2.7/site-packages/django/db/models/fields/__init__.pyc in __init__(self, *args, **kwargs) | |
1079 | |
1080 def __init__(self, *args, **kwargs): | |
-> 1081 super(CharField, self).__init__(*args, **kwargs) | |
1082 self.validators.append(validators.MaxLengthValidator(self.max_length)) | |
1083 | |
/Users/zt9/.virtualenvs/pr2/lib/python2.7/site-packages/django/db/models/fields/__init__.pyc in __init__(self, verbose_name, name, primary_key, max_length, unique, blank, null, db_index, rel, default, editable, serialize, unique_for_date, unique_for_month, unique_for_year, choices, help_text, db_column, db_tablespace, auto_created, validators, error_messages) | |
159 self.help_text = help_text | |
160 self.db_column = db_column | |
--> 161 self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE | |
162 self.auto_created = auto_created | |
163 | |
/Users/zt9/.virtualenvs/pr2/lib/python2.7/site-packages/django/conf/__init__.pyc in __getattr__(self, name) | |
46 def __getattr__(self, name): | |
47 if self._wrapped is empty: | |
---> 48 self._setup(name) | |
49 return getattr(self._wrapped, name) | |
50 | |
/Users/zt9/.virtualenvs/pr2/lib/python2.7/site-packages/django/conf/__init__.pyc in _setup(self, name) | |
42 % (desc, ENVIRONMENT_VARIABLE)) | |
43 | |
---> 44 self._wrapped = Settings(settings_module) | |
45 | |
46 def __getattr__(self, name): | |
/Users/zt9/.virtualenvs/pr2/lib/python2.7/site-packages/django/conf/__init__.pyc in __init__(self, settings_module) | |
90 self.SETTINGS_MODULE = settings_module | |
91 | |
---> 92 mod = importlib.import_module(self.SETTINGS_MODULE) | |
93 | |
94 tuple_settings = ( | |
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py in import_module(name, package) | |
35 level += 1 | |
36 name = _resolve_name(name[level:], package, level) | |
---> 37 __import__(name) | |
38 return sys.modules[name] | |
/Users/zt9/code/pr2/myapp/myapp/__init__.py in <module>() | |
6 import miscutils | |
7 import ipdb | |
----> 8 import waze | |
9 #import quicken | |
10 #from utils.utilcommands import convert_e164_to_human | |
/Users/zt9/code/pr2/myapp/waze/__init__.py in <module>() | |
3 | |
4 #from att.models import PhoneRecord | |
----> 5 from waze.appointment import ConfirmAppointments | |
6 from waze.models import CommunicationRecord | |
7 from django.utils import timezone | |
/Users/zt9/code/pr2/myapp/waze/appointment.py in <module>() | |
----> 1 from sprint.models import SmsRecord | |
2 import logging | |
3 import requests | |
4 import pickle | |
5 from redis import Redis | |
ImportError: cannot import name SmsRecord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment