[Tutor] ImportError
Tino Dai
oberoc at gmail.com
Tue Jul 31 16:32:05 CEST 2012
Hi All,
I have been banging my head against a wall trying to figure it out.
I'm getting a ImportError on a
class that I know exists. I'm wondering if there is some dark corner of the
import mechanism that
I don't understand.
-Tino
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/management/__init__.py",
line 459, in execute_manager
utility.execute()
File
"/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/management/__init__.py",
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/management/__init__.py",
line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/management/__init__.py",
line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File
"/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/importlib.py",
line 35, in import_module
__import__(name)
File
"/home/tdai/ProjectOne-TNT/leg_apps/../leg_apps/etl/management/commands/driver.py",
line 22, in <module>
from etl.transfers.bill_subject import Bill_Subject
File "/home/tdai/ProjectOne-TNT/leg_apps/etl/transfers/__init__.py", line
8, in <module>
from api import models
File "/home/tdai/ProjectOne-TNT/leg_apps/api/models.py", line 20, in
<module>
from etl.transfers import eastern
ImportError: cannot import name eastern
< etl/transfers/__init__.py >
existing_pending_items = {}
new_pending_items = []
class eastern(object):
@staticmethod
def localize(theDate):
if theDate:
return easternTz.localize(theDate)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120731/3beb6180/attachment-0001.html>
More information about the Tutor
mailing list